Skip to content

Commit 9dae518

Browse files
authored
Merge branch 'master' into add/feat-add-render
2 parents 744bcc9 + 1ab3848 commit 9dae518

File tree

9 files changed

+38
-26
lines changed

9 files changed

+38
-26
lines changed

components/Form/Cfp/stepThree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function StepThree({ setStep, setForm, data }) {
3333
const [value, setValue] = useState({});
3434
useEffect(() => {
3535
setForm({ ...data, ...value});
36-
}, [value]);
36+
}, [value, data, setForm]);
3737
return (
3838
<form className="mt-3 w-[30rem] lg:w-[auto]" onSubmit={(e) => setStep(e, 4)}>
3939
<h1 className="text-white font-bold text-4xl lg:text-3xl">

components/Form/select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function Dropdown({ options, title, setValue, multi ,dataTest}) {
4545
} else {
4646
setValue(selectedOption.value);
4747
}
48-
}, [selectedOption]);
48+
}, [selectedOption, multi, setValue]);
4949
return (
5050
<div className="relative inline-block w-full">
5151
<Select

components/Navbar/navDrop.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const NavDrop = forwardRef((props, ref)=> {
88
const {setDrop}=props;
99
const [show, setShow] = useState(null);
1010
return (
11-
<div ref ={ref} className='absolute ml-[-20px] top-16 w-full bg-[#1B1130]'>
11+
<div ref ={ref} className='z-[99] absolute left-0 top-[74px] w-full h-screen bg-[#1B1130]/90 backdrop-filter backdrop-blur-md'>
1212
<div className='flex flex-col p-5 pb-8 w-full'>
1313
{links.map((link) => {
1414
return (
@@ -22,13 +22,10 @@ const NavDrop = forwardRef((props, ref)=> {
2222
>
2323
{link.subMenu ? (
2424
<div>
25-
<div className='flex items-center justify-between'
26-
>
25+
<div className='flex'>
2726
<div className='text-white'>{link.title}</div>
2827
<Dropdown
29-
className={`transition-transform duration-700 ${
30-
show === link.title ? 'rotate-0' : 'rotate-[-90deg]'
31-
}`}
28+
className={`transition-transform duration-700`}
3229
/>
3330
</div>
3431
{show && show === link.title && (

components/Navbar/navbar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function Navbar() {
6969
};
7070

7171
return (
72-
<div className='flex justify-center items-center sticky top-0 z-[99] text-white'>
72+
<div className={`flex justify-center items-center fixed w-full backdrop-blur ${ drop && 'bg-[#1B1130]/90'} top-0 z-[99] text-white`}>
7373
<div className='w-[1131px]'>
7474
<div className='p-5 flex justify-between h-[75px] w-full items-center'>
7575
<div className='flex items-center sm:justify-between sm:w-full' data-test="nav-Home">
@@ -86,7 +86,7 @@ function Navbar() {
8686
<Cancel />
8787
</button>
8888
) : (
89-
<button >
89+
<button>
9090
<Hamburger ref={svg} />
9191
</button>
9292
)}

components/Venue/venue.js

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,28 @@ import React from 'react';
33
import Link from 'next/link';
44
import Image from 'next/image';
55

6-
export function isEventEnded(date){
7-
const eventDate = date.split(" ");
8-
const month = eventDate[0];
9-
const year = eventDate[eventDate.length-1];
10-
const startDay = eventDate[1].split("-")[0];
11-
return new Date(`${startDay} ${month} ${year}`) < Date.now()
6+
export function getEventStatus(date){
7+
const today = new Date();
8+
const event = new Date(date);
9+
10+
if (event.toDateString() === today.toDateString()) {
11+
return "Ongoing";
12+
} else if (event > today) {
13+
return "Upcoming";
14+
} else {
15+
return "Ended";
16+
}
1217
}
1318

19+
export function isEventEnded(date){
20+
return getEventStatus(date) === "Ended";
21+
}
1422

1523
function Venue({ className, city }) {
1624

1725
const eventEnded = isEventEnded(city.date);
1826
const textColor = eventEnded ? "text-white": "text-white";
27+
const eventStatus = getEventStatus(city.date);
1928

2029
return (
2130
<Link href={`/venue/${city.name}`}>
@@ -37,8 +46,8 @@ function Venue({ className, city }) {
3746
{city.name=='Online'?<span className='text-lg font-bold'>{city.name} {city.country}</span>:<span className='text-lg font-bold'>{city.country}, {city.name}</span>}
3847
</div>
3948
<div className='flex align-end flex-row justify-between pt-2'>
40-
<div className='inline-block border border-gray-400 rounded-lg py-1 px-2 text-center'>{city.date}</div>
41-
<span className=' text-white flex align-middle pt-2' style={{ fontSize: ".9em" }}>{eventEnded ? "ENDED" : ""}</span>
49+
<div className='inline-block border border-gray-400 rounded-lg py-1 px-2 text-center sm:text-sm text-base'>{city.date}</div>
50+
<span className=' text-white flex align-middle pt-2 sm:text-[0.8rem] sm:leading-4 text-base'>{eventStatus}</span>
4251
</div>
4352
</div>
4453
</div>

config/city-lists.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
{
33
"name": "Online",
44
"country": " Edition",
5-
"date": "30th October 2024",
5+
"date": "October 30, 2024",
66
"cfpdate":"Not announced yet",
77
"description": "Join us for the AsyncAPI Online Conference Edition as the community unites across the globe to share experiences, collaborate, and foster meaningful connections.",
88
"img": "/img/testMic.webp",
99
"address": "AsyncAPI YouTube Channel",
10-
"map": "https://www.youtube.com/live/F9wHxd-v2f0?si=PT8BuAUKNmoLHRiM",
10+
"map": "https://www.youtube.com/playlist?list=PLbi1gRlP7pijItMBmw9SeeyWxuEa3jLR2",
1111
"sponsors": [
1212
"/img/apidays.png"
1313
],
@@ -21,7 +21,7 @@
2121
{
2222
"name": "Helsinki",
2323
"country": "Finland",
24-
"date": "May 29 2024",
24+
"date": "May 29, 2024",
2525
"cfpdate":"Not announced yet",
2626
"description": "Join us in Helsinki for the AsyncAPI Conference, where we will explore all things AsyncAPI and connect physical and digital worlds. Get excited as we delve into sustainable APIs for the Era of AI, Data Platforms, and Quantum Computing!.",
2727
"img": "/img/finland.webp",
@@ -67,6 +67,6 @@
6767
"ticket": "https://ticket.apidays.global/event/apidays-paris-2024/f8f61349-4f78-4bba-a162-68d598833116/cart?coupon=ASYNCAPICONF",
6868
"isFree": true,
6969
"cfp": false,
70-
"ended": false
70+
"ended": true
7171
}
7272
]

config/links.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,15 @@
6565
"title": "Online Conf Slides",
6666
"ref": "https://drive.google.com/drive/folders/1gw_kr6mLX5lITe_DHG94pGUOVYYS0DjY?usp=drive_link",
6767
"target": "_blank"
68+
},
69+
{
70+
"title": "Paris Slides",
71+
"ref": "https://drive.google.com/drive/folders/1MBqecV7Q__tLIciF2vaPvwG5gV4RxcI_?usp=drive_link",
72+
"target": "_blank"
6873
}
6974

7075

7176
]
7277
}
7378

74-
]
79+
]

package-lock.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pages/venue/[id].js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function Venue({ city }) {
5353

5454
<Paragraph className='mt-[24px]' textColor={textColor}>{city.description}</Paragraph>
5555

56-
<Heading typeStyle='lg' className={`${textColor} mt-[24px] hover:underline`}>
56+
<Heading typeStyle='lg' className={`${textColor} mt-[24px] underline`}>
5757
<a href={city.map} target='_blank' rel="noreferrer">
5858
{city.address}
5959
</a>

0 commit comments

Comments
 (0)