diff --git a/src/components/RoundedButton/index.jsx b/src/components/RoundedButton/index.jsx index 5b2498444..d9b9f681e 100644 --- a/src/components/RoundedButton/index.jsx +++ b/src/components/RoundedButton/index.jsx @@ -14,20 +14,20 @@ const RoundedButton = ({ link, text, className, hasArrowIcon = true, arrowColor const arrowIcon = (color) => { return ( - - - - + + + + ) } const arrowHoverIcon = (color) => { return ( - - - - + + + + ) } diff --git a/src/components/SummitCard/index.jsx b/src/components/SummitCard/index.jsx index b3039fcd3..8b3945b62 100644 --- a/src/components/SummitCard/index.jsx +++ b/src/components/SummitCard/index.jsx @@ -11,45 +11,51 @@ const SummitCard = ({ background, summit, cardStyles, - link = "https://www.lfopensource.cn/kubecon-cloudnativecon-openinfra-summit-pytorch-conference-china/", }) => { if (!summit) return null; - const { date, location, notification } = summit; + const { date, location, notification, imageLink } = summit; return ( - -
+
+ {imageLink ? + +
+ + :
-
-
- - {date} - - - {location} - -
+ } +
+
+ + {date} + + + {location} + +
+
+ {notification?.text && ( +
+ + {notification?.button.text && ( + + )}
- {notification?.text && ( -
- - {notification?.button.text && ( - - )} -
- )} - - + )} + ); }; diff --git a/src/content/upcoming-summits.json b/src/content/upcoming-summits.json index dd96913f2..917661fda 100644 --- a/src/content/upcoming-summits.json +++ b/src/content/upcoming-summits.json @@ -6,6 +6,7 @@ "background": "/img/summit-landing/cards/summit-asia-26.png", "date": "September 8-9, 2026", "location": "Shanghai International Convention Center Oriental Riverside Hotel", + "imageLink": "https://www.lfopensource.cn/kubecon-cloudnativecon-openinfra-summit-pytorch-conference-china/", "notification": { "text": " ", "button": { diff --git a/src/pages/summit/index.md b/src/pages/summit/index.md index 251eeb184..bd6f78607 100644 --- a/src/pages/summit/index.md +++ b/src/pages/summit/index.md @@ -59,6 +59,7 @@ pastSummits: background: /img/summit-landing/cards/summit-europe-25-2.png date: October 17-19, 2025 location: École Polytechnique, Paris-Saclay, France + imageLink: https://youtube.com/playlist?list=PLKqaoAnDyfgr91wN_12nwY321504Ctw1s&si=7IRIo_YUv4U0yBnD notification: text: " " button: @@ -68,6 +69,7 @@ pastSummits: background: /img/summit-landing/cards/summit-asia.png date: September 3 & 4, 2024 location: Suwon Convention Center, Suwon, South Korea + imageLink: https://youtube.com/playlist?list=PLKqaoAnDyfgqjY-vzt45oayXLa4aLpMRU&feature=shared notification: text: " " button: diff --git a/src/templates/summit-landing-page.js b/src/templates/summit-landing-page.js index 2a323e489..137d99111 100644 --- a/src/templates/summit-landing-page.js +++ b/src/templates/summit-landing-page.js @@ -216,6 +216,7 @@ export const SummitLandingPageQuery = graphql` } date location + imageLink notification { text button { diff --git a/static/admin/config.yml b/static/admin/config.yml index 9188a6fc7..598998255 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -1273,6 +1273,7 @@ collections: { label: "Background", name: background, widget: image }, { label: "Date", name: date, widget: string }, { label: "Location", name: location, widget: string }, + { label: "Image Link", name: imageLink, widget: string }, { label: "Notification", name: notification, widget: object, fields: [ { label: "Text", name: text, widget: string }, { label: "Button", name: button, widget: object, fields: [ @@ -1346,6 +1347,7 @@ collections: { label: "Background Image", name: background, widget: image }, { label: "Date", name: date, widget: string }, { label: "Location", name: location, widget: string }, + { label: "Image Link", name: imageLink, widget: string }, { label: "Notification", name: notification, widget: object, fields: [ { label: "Text", name: text, widget: string }, { label: "Button", name: button, widget: object, fields: [