From 75491f75d9708ae5a3b2876d2dd44ef1699e0d46 Mon Sep 17 00:00:00 2001 From: Vedant Damedhar Date: Fri, 10 Jan 2025 14:50:28 +0530 Subject: [PATCH 1/2] fix: align 'Get Tickets' section and improve design --- pages/index.js | 270 +++++++++++++++++++++++++------------------------ 1 file changed, 138 insertions(+), 132 deletions(-) diff --git a/pages/index.js b/pages/index.js index 78c8de64..e225cd3c 100644 --- a/pages/index.js +++ b/pages/index.js @@ -28,14 +28,14 @@ export default function Home() { } }); const list = speakers[0].lists.filter((obj, index) => { - return index === speakers[0].lists.findIndex(o => obj.name=== o.name); + return index === speakers[0].lists.findIndex(o => obj.name === o.name); }); - speakers[0].lists =[...list]; - + speakers[0].lists = [...list]; + useEffect(() => { setCity(speakers[0]); setSpeakersList(speakers[0].lists); - },[]); + }, []); return (
@@ -49,148 +49,154 @@ export default function Home() {
-
-
-
-
-
Speakers
-
-
- - Meet The Speakers - -
- - Discover the inspiring voices shaping our event, each bringing unique insights and expertise to the forefront of their respective fields. - -
-
-
- {isTablet ? ( -
- +
+
+
+
+
Speakers
+
- ) : ( -
-
- {speakers.map((speaker) => { - return ( -
{ - setCity(speaker); - setSpeakersList(speaker.lists); - }} - > - -
- ); - })} + +
+ ); + })} +
-
- )} -
+ )} +
-
- {typeof speakersList === 'string' ? ( -
-
- - {city.city} Speakers To Be Announced Soon - Stay Tuned! - +
+ {typeof speakersList === 'string' ? ( +
+
+ + {city.city} Speakers To Be Announced Soon - Stay Tuned! + +
-
- ) : Object.keys(speakersList).length > 0 ? ( -
- {speakersList.map((speaker, i) => { - return ( - - ); - })} -
- ) : ( -
-
- - {city.city} Speakers Coming Soon - Stay Tuned! - - - We are actively accepting speaker applications, and you - can start your journey by clicking the button below. Join - us on stage and share your valuable insights with our - enthusiastic audience! - - - - - - + ) : Object.keys(speakersList).length > 0 ? ( +
+ {speakersList.map((speaker, i) => { + return ( + + ); + })}
+ ) : ( +
+
+ + {city.city} Speakers Coming Soon - Stay Tuned! + + + We are actively accepting speaker applications, and you + can start your journey by clicking the button below. Join + us on stage and share your valuable insights with our + enthusiastic audience! + + + + + + +
+
+ )} +
+
+
+
+
Tickets
+
+
+
+
+

+ Get Tickets +

+

+ Experience the Future of Asynchronous Communication: Get Tickets for the
AsyncAPI Conference on Tour! +

+
+
- )} +
+
+
+ {cities.map((city) => { + if (city.ended === false) { + return + } + })}
-
-
Tickets
-
-
- - Get Tickets - -
- - Experience the Future of Asynchronous Communication: Get Tickets for the AsyncAPI Conference on Tour! - -
-
- {cities.map((city) => { - if(city.ended === false){ - return - } - })}
-
-
-
- +
- +
); From f87e7136db9495694aae603e44dea4b2a5fd9a73 Mon Sep 17 00:00:00 2001 From: Vedant Damedhar Date: Fri, 17 Jan 2025 14:41:11 +0530 Subject: [PATCH 2/2] Removed 'Buy Tickets' button and fixed alignment in 'Get Tickets' section as per feedback --- pages/index.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/pages/index.js b/pages/index.js index e225cd3c..8ebc3cad 100644 --- a/pages/index.js +++ b/pages/index.js @@ -167,19 +167,14 @@ export default function Home() {
Tickets
-
+
-

+

Get Tickets

-

- Experience the Future of Asynchronous Communication: Get Tickets for the
AsyncAPI Conference on Tour! +

+ Experience the Future of Asynchronous Communication: Get Tickets for the AsyncAPI Conference on Tour!

-
- -