Skip to content

Commit a1308dd

Browse files
committed
Add TimeLine
1 parent 54a620b commit a1308dd

File tree

5 files changed

+81
-9
lines changed

5 files changed

+81
-9
lines changed

Diff for: frontend/public/timeline1.webp

367 KB
Binary file not shown.

Diff for: frontend/public/timeline2.webp

630 KB
Binary file not shown.

Diff for: frontend/src/app/timeline/TimeLine.tsx

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
import React from 'react';
2+
import Footer from '../../ui/components/Footer';
3+
import Navbar, { NavbarPlaceholder } from '../../ui/components/Navbar';
4+
import Timer from '../../ui/components/Timer';
5+
import { isAuthenticated } from '../../lib/auth';
6+
import path from 'path';
7+
import fs from 'fs';
8+
9+
export default async function TimeLine() {
10+
const authenticated = await isAuthenticated();
11+
12+
const markdownContent = fs.readFileSync(
13+
path.join(process.cwd(), 'public', 'posterSessionDescription.md'),
14+
'utf-8',
15+
);
16+
17+
return (
18+
<>
19+
<Navbar isAuthenticated={authenticated} />
20+
<NavbarPlaceholder />
21+
<div
22+
style={{ backgroundImage: 'url(/source/Rectangle.png)' }}
23+
className="absolute left-0 right-0 top-0 -z-10 h-[400px] w-full bg-cover bg-center bg-no-repeat"
24+
></div>
25+
<div className="mx-auto max-w-[1200px] rounded-2xl bg-white shadow-[0px_30px_60px_0px_rgba(189,192,199,0.10)]">
26+
<div className="flex max-w-[1199px] flex-col items-start justify-center gap-0 px-[72px] py-[60px] shadow-2xl">
27+
<div className="ml-18 flex h-fit flex-col items-start justify-between self-stretch lg:max-w-[1055px]">
28+
<p className="text-[20px] font-medium uppercase not-italic leading-[normal] tracking-[0.8px] text-[#8A8998]">
29+
April 10th, 2025 - April 11th, 2025
30+
</p>
31+
<p className="text-[64px] font-bold not-italic leading-[76px] tracking-[-1.52px] text-[#1F2B3D]">
32+
TimeLine
33+
</p>
34+
</div>
35+
36+
<div className="flex w-full items-center justify-center ">
37+
<hr className="mr-6 flex-grow border-neutral-300" />
38+
<span className="text-[40px] font-bold text-slate-600 ">
39+
First Day
40+
</span>
41+
<hr className="ml-6 flex-grow border-neutral-300 " />
42+
</div>
43+
<img src={'timeline1.webp'} className={' mt-4'} />
44+
45+
<div className="mt-8 flex w-full items-center justify-center">
46+
<hr className="mr-6 flex-grow border-neutral-300" />
47+
<span className="text-[40px] font-bold text-slate-600 ">
48+
Second Day
49+
</span>
50+
<hr className="ml-6 flex-grow border-neutral-300 " />
51+
</div>
52+
<img src={'timeline2.webp'} className={' mt-4'} />
53+
</div>
54+
</div>
55+
<Timer />
56+
<Footer />
57+
</>
58+
);
59+
}

Diff for: frontend/src/app/timeline/page.jsx

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import TimeLine from './TimeLine';
2+
3+
export default function TimeLinePage() {
4+
return <TimeLine />;
5+
}

Diff for: frontend/src/ui/components/Navbar.jsx

+17-9
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ const links = [
99
{ href: '/', label: 'Home' },
1010
{ href: '/seminars', label: 'Seminars' },
1111
{ href: '/round-tables', label: 'Round Tables' },
12+
{ href: '/poster-session', label: 'Poster Session' },
13+
{ href: '/timeline', label: 'TimeLine' },
1214
{ href: '/about', label: 'About Us' },
1315
];
1416

@@ -51,23 +53,29 @@ export default function Navbar({ fixed = true, isAuthenticated = false }) {
5153
</Link>
5254
</div>
5355
<div className="hidden items-center justify-center gap-8 max-lg:gap-4 md:flex">
54-
<Link href="/" className="block px-4 py-3">
55-
Home
56-
</Link>
56+
{/*<Link href="/" className="block px-4 py-3">*/}
57+
{/* Home*/}
58+
{/*</Link>*/}
5759
<Link href="/seminars" className="block px-4 py-3">
5860
Seminars
5961
</Link>
6062
<Link href="/round-tables" className="block px-4 py-3">
6163
Round Tables
6264
</Link>
63-
<Link href="/about" className="block px-4 py-3">
64-
About Us
65-
</Link>
6665
<Link href="/poster-session" className="relative block px-4 py-3">
6766
Poster Session
68-
<span className="absolute -right-2 -top-1 animate-pulse rounded-full border-2 bg-secondary px-1.5 py-0.5 text-[10px] font-bold text-white">
69-
NEW
70-
</span>
67+
{/*<span className="absolute -right-2 -top-1 animate-pulse rounded-full border-2 bg-secondary px-1.5 py-0.5 text-[10px] font-bold text-white">*/}
68+
{/* NEW*/}
69+
{/*</span>*/}
70+
</Link>
71+
<Link href="/timeline" className="relative block px-4 py-3">
72+
TimeLine
73+
{/*<span className="absolute -right-2 -top-1 animate-pulse rounded-full border-2 bg-secondary px-1.5 py-0.5 text-[10px] font-bold text-white">*/}
74+
{/* NEW*/}
75+
{/*</span>*/}
76+
</Link>
77+
<Link href="/about" className="block px-4 py-3">
78+
About Us
7179
</Link>
7280
</div>
7381
{isAuthenticated ? (

0 commit comments

Comments
 (0)