diff --git a/components/Cards/ticketCards.js b/components/Cards/ticketCards.js deleted file mode 100644 index 7589c054..00000000 --- a/components/Cards/ticketCards.js +++ /dev/null @@ -1,16 +0,0 @@ -import React from 'react' -import Button from '../Buttons/button' - -function TicketCards({className, city}) { - return ( -
-
-
{city.name}, {city.country}
-
{city.date}
-
-
-
- ) -} - -export default TicketCards \ No newline at end of file diff --git a/components/Header/header.js b/components/Header/header.js index 08d55b4d..9f077bf9 100644 --- a/components/Header/header.js +++ b/components/Header/header.js @@ -33,9 +33,9 @@ function Header() {
- +
diff --git a/components/Tickets/ticketCards.js b/components/Tickets/ticketCards.js new file mode 100644 index 00000000..e88e72c7 --- /dev/null +++ b/components/Tickets/ticketCards.js @@ -0,0 +1,32 @@ +import React from 'react'; +import Button from '../Buttons/button'; + +function TicketCards({ className, city }) { + // Determine card style based on event status + const isEndedOrUpcoming = city.ended || !city.ticket; + const cardOpacity = isEndedOrUpcoming ? 'opacity-40' : 'opacity-100'; + const buttonText = city.isFree ? 'Get Your Ticket' : 'Buy Now'; + + return ( +
+
+
{city.name}, {city.country}
+
{city.date}
+
+
+ {/* Show a button based on the event status */} + {isEndedOrUpcoming ? ( + + ) : ( + + + + )} +
+
+ ); +} + +export default TicketCards; diff --git a/config/city-lists.json b/config/city-lists.json index 0a564927..4f03a80b 100644 --- a/config/city-lists.json +++ b/config/city-lists.json @@ -11,8 +11,8 @@ "/img/apidays.png" ], "ticket": false, - "isFree": true, - "ended": false + "isFree": false, + "ended": true }, { "name": "London", diff --git a/config/links.json b/config/links.json index 155bb309..4627249e 100644 --- a/config/links.json +++ b/config/links.json @@ -25,6 +25,10 @@ "title": "Speakers", "ref": "/#speakers" }, + { + "title": "Tickets", + "ref": "/#tickets" + }, { "title": "Sponsors", "ref": "/#sponsors" diff --git a/pages/index.js b/pages/index.js index d418853a..7830810b 100644 --- a/pages/index.js +++ b/pages/index.js @@ -7,7 +7,7 @@ import Header from '../components/Header/header'; import cities from '../config/city-lists.json'; import Sponsors from '../components/Sponsors/sponsors'; import About from '../components/About/about'; -import TicketCards from '../components/Cards/ticketCards'; +import TicketCards from '../components/Tickets/ticketCards'; import Heading from '../components/Typography/heading'; import Paragraph from '../components/Typography/paragraph'; import Subscription from '../components/Form/subscription'; @@ -156,16 +156,16 @@ export default function Home() { -
+
Tickets
- Tickets Sale [Coming Soon] + Get Tickets
- Experience the Future of Asynchronous Communication: Tickets for Sale for the AsyncAPI Conference on Tour! + Experience the Future of Asynchronous Communication: Get Tickets for the AsyncAPI Conference on Tour!
diff --git a/styles/globals.css b/styles/globals.css index 6d1d8e73..8cbe22f1 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -205,6 +205,10 @@ mix-blend-mode: lighten; transition: transform 0.3s ease-in-out; /* Add a smooth transition effect */ } +.card-opacity:hover{ + opacity: 100; +} + .hoverEffect:hover { transform: scale(1.1); /* Scale the image by 10% on hover */ } \ No newline at end of file