Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: get ticket button added #186

Merged
merged 10 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 27 additions & 5 deletions config/city-lists.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
"description": "Join us in London for the AsyncAPI Conference and unlock the API of opportunities! Let's bridge the messaging gap and create a tech buzz you will want to experience!",
"img": "/img/london.jpeg",
"address": "IBM UK Limited 20 York Road London SE1 7ND",
"sponsors": ["/img/IBM.png"]
"sponsors": [
"/img/IBM.png"
],
"ticket": "https://opencollective.com/asyncapi/events/asyncapi-conference-on-tour-6b3c0aa1/contribute/aacot-london-edition-61313",
"freeTicket":"https://docs.google.com/forms/d/e/1FAIpQLSdKxKvHGqmCmFJ7ldJJcAJNnmuie057vYrEh219gCXRDMZU5g/viewform",
"buttonText":"Get your Tickets",
"freeTicketTxt":"Tickets Form"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"freeTicketTxt":"Tickets Form"
"freeTicketTxt":"Free Tickets Form"

},
{
"name": "Madrid",
Expand All @@ -15,7 +21,13 @@
"description": "Join us in Madrid for AsyncAPI Conference and learn how to speak fluent API! Let's taco about messaging and have a fiesta you will remember!",
"img": "https://images.unsplash.com/photo-1539037116277-4db20889f2d4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80",
"address": "Sngular Madrid, C. de Labastida, 1, 28034 Madrid, Spain",
"sponsors": ["/img/sngular.png"]
"sponsors": [
"/img/sngular.png"
],
"ticket": "",
"freeTicket":"https://docs.google.com/forms/d/e/1FAIpQLSdwqi27LpsIi8tKQoQBcUWDUJZi0be0cHpWnDtWhhHVn00hFA/viewform",
"buttonText":"Get your Tickets",
"freeTicketTxt":"Tickets Form"
},
{
"name": "Bangalore",
Expand All @@ -24,14 +36,24 @@
"description": "Join us in Bengaluru for the AsyncAPI Conference and decode the language of APIs! Let's crack the language of APIs and ignite a tech revolution with some spice you'll remember!",
"img": "https://images.unsplash.com/photo-1596176530529-78163a4f7af2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2454&q=80",
"address": "310, 6th Main Rd, HAL 2nd Stage, Indiranagar, Bengaluru, Karnataka 560038, India",
"sponsors": ["/img/postman.png"]
"sponsors": [
"/img/postman.png"
],
"ticket": "",
"freeTicket":"",
"buttonText":"Get your Tickets",
"freeTicketTxt":"Tickets Form"
},
{
"name": "Paris",
"country": "France",
"date": "TBA",
"description": "Join us in Paris for the AsyncAPI Conference and experience the art of API perfection! Let's craft a symphony of messaging and celebrate tech in style!",
"img": "https://images.unsplash.com/photo-1508050919630-b135583b29ab?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2306&q=80",
"address": "TBA"
"address": "TBA",
"ticket": "",
"freeTicket":"",
"buttonText":"Get your Tickets",
"freeTicketTxt":"Tickets Form"
}
]
]
45 changes: 14 additions & 31 deletions pages/venue/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -66,38 +66,21 @@ function Venue({ city }) {
<Heading typeStyle='lg' className='text-white mt-[24px]'>
{city.date}
</Heading>
</div>
<div className='kinda-dark py-[10px] w-full'>
<div className='sm:hidden container'>
<div className='flex justify-center'>
<div className='w-[600px] lg:w-full flex justify-between'>
{tabs.map((tab) => {
return (
<div
key={tab.title}
onClick={() => {
setActive(tab.title);
}}
>
<Button
onClick={() =>
router.push(`#${tab.title.toLowerCase()}`)
}
className={`w-[154px] h-[48px] ${
active === tab.title
? 'card-bg'
: 'border border-gray'
}`}
overlay={true}
>
{tab.title}
</Button>
</div>
);
})}
</div>
{city.ticket === "" && city.freeTicket === "" ? null : (
<div className='m-[30px]'>
{city.ticket !== "" && (
<a href={city.ticket} target='_blank' rel='noreferrer'>
<Button className="px-8 m-2">{city.buttonText}</Button>
</a>
)}
{city.freeTicket !== "" && (
<a href={city.freeTicket} target='_blank' rel='noreferrer'>
<Button className="px-8 m-2">{city.freeTicketTxt}</Button>
</a>
)}
</div>
</div>
)}

</div>
</div>
</div>
Expand Down