Skip to content

Commit af6bd2e

Browse files
authored
ups (#127)
1 parent c7fa941 commit af6bd2e

File tree

2 files changed

+28
-26
lines changed

2 files changed

+28
-26
lines changed

components/NavBar.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const Links = [
77
{ href: '/', label: 'Home' },
88
{ href: '/about', label: 'About' },
99
{ href: '/committee', label: 'Committee' },
10-
{ href: '/speakers', label : 'Speakers'},
10+
{ href: '/speakers', label: 'Speakers' },
1111
{ href: '/papers', label: 'Call for Papers' },
1212
{ href: '/awards', label: 'Awards' },
1313
{ href: '/registration', label: 'Registration' },
@@ -119,6 +119,9 @@ const NavBar = () => {
119119
</div>
120120
<Marquee className="marquee bg-blue-300">
121121
<div className="content1">
122+
<span className="ml-80 font-bold text-yellow-300">
123+
Registrations are closed{' '}
124+
</span>{' '}
122125
<span className="ml-80 font-bold text-yellow-300">
123126
Notification of Acceptance
124127
</span>{' '}

components/TimeLine.tsx

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Text, Timeline } from '@mantine/core';
2-
import { AnnotationIcon } from '@heroicons/react/solid';
3-
import { useEffect, useState } from 'react';
1+
import { Text, Timeline } from '@mantine/core'
2+
import { AnnotationIcon } from '@heroicons/react/solid'
3+
import { useEffect, useState } from 'react'
44
const data = [
55
{
66
label: 'Submission of Full-length Manuscript (opens from)',
@@ -9,25 +9,23 @@ const data = [
99
{
1010
label: 'Last date to submit Full-length Manuscript',
1111
date: '14th August 2024',
12-
1312
},
1413
{
1514
label: 'Notification of Acceptance',
1615
oldDate: '28th August 2024',
17-
newDate:'7th September 2024',
16+
newDate: '7th September 2024',
1817
},
1918
{
2019
label: 'Early Bird Registration',
21-
date:'Before 18th September 2024',
20+
date: 'Before 18th September 2024',
2221
},
23-
{
22+
{
2423
label: 'Last Date for Registration',
25-
date: '3rd October 2024',
26-
24+
oldDate: '3rd October 2024',
2725
},
2826
{
2927
label: 'Submission of Camera-ready Manuscript and Copyright Form',
30-
date:'7th October 2024',
28+
date: '10th October 2024',
3129
},
3230

3331
{
@@ -38,29 +36,27 @@ const data = [
3836
label: 'Conference Dates',
3937
date: '8th and 9th November 2024',
4038
},
41-
];
39+
]
4240

4341
export default function CustomTimeLine() {
44-
const [isVisible, setIsVisible] = useState(false);
42+
const [isVisible, setIsVisible] = useState(false)
4543

4644
useEffect(() => {
4745
const handleScroll = () => {
4846
if (window.scrollY > 100) {
49-
setIsVisible(true);
47+
setIsVisible(true)
5048
} else {
51-
setIsVisible(false);
49+
setIsVisible(false)
5250
}
53-
};
51+
}
5452

55-
window.addEventListener('scroll', handleScroll);
56-
return () => window.removeEventListener('scroll', handleScroll);
57-
}, []);
53+
window.addEventListener('scroll', handleScroll)
54+
return () => window.removeEventListener('scroll', handleScroll)
55+
}, [])
5856

5957
return (
6058
<div className={`timeline-container ${isVisible ? 'fade-in' : ''}`}>
61-
<h1 className="timeline-title">
62-
Important Dates
63-
</h1>
59+
<h1 className="timeline-title">Important Dates</h1>
6460
<Timeline active={0} bulletSize={28} lineWidth={4} color="teal">
6561
{data.map((item, index) => (
6662
<Timeline.Item
@@ -72,9 +68,12 @@ export default function CustomTimeLine() {
7268
<Text size="lg" mt={2} className="timeline-item-text">
7369
{item.oldDate ? (
7470
<>
75-
<span className="line-through text-gray-500">{item.oldDate}</span>
76-
{' '}
77-
<span className="font-bold text-gray-900">{item.newDate}</span>
71+
<span className="text-gray-500 line-through">
72+
{item.oldDate}
73+
</span>{' '}
74+
<span className="font-bold text-gray-900">
75+
{item.newDate}
76+
</span>
7877
</>
7978
) : (
8079
item.date
@@ -84,5 +83,5 @@ export default function CustomTimeLine() {
8483
))}
8584
</Timeline>
8685
</div>
87-
);
86+
)
8887
}

0 commit comments

Comments
 (0)