Skip to content

Commit d96ecf0

Browse files
committed
add simple timeline info
1 parent c27a576 commit d96ecf0

2 files changed

Lines changed: 40 additions & 4 deletions

File tree

frontend/src/components/partials/intro.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Codesandbox, Cpu } from "lucide-react";
1+
import { Cpu } from "lucide-react";
22

33
const Intro = () => {
44
const data = [

frontend/src/components/partials/timeline.tsx

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"use client"
1+
"use client";
22

33
import { useRef } from "react";
44
import Spacer from "./spacer";
@@ -29,6 +29,29 @@ const Timeline = ({
2929
images?: string[];
3030
className?: string;
3131
}) => {
32+
const timelines = [
33+
{
34+
date: "02/06",
35+
title: "Khởi động",
36+
},
37+
{
38+
date: "03/06 - 15/06",
39+
title: "Mở cổng đăng ký",
40+
},
41+
{
42+
date: "16/06 - 20/07",
43+
title: "Tiến hành ôn luyện",
44+
},
45+
{
46+
date: "21/07 - 27/07",
47+
title: "Ôn luyện tăng cường",
48+
},
49+
{
50+
date: "03/08",
51+
title: "Thi đấu",
52+
},
53+
];
54+
3255
const gridRef = useRef<any>(null);
3356
const { scrollYProgress } = useScroll({
3457
container: gridRef, // remove this if your container is not fixed height
@@ -47,8 +70,21 @@ const Timeline = ({
4770

4871
return (
4972
<div className="">
50-
<h1 className="gradient-text text-3xl font-medium">TIMELINE CUỘC THI</h1>
51-
<h2 className="text-xl mt-4">Thời gian thi đấu sẽ sớm được công bố. Vui lòng đợi.</h2>
73+
<h1 className="text-3xl font-medium mb-1">TIMELINE CUỘC THI</h1>
74+
<div className="max-w-[60rem] w-full mx-auto">
75+
{timelines.map((item, index) => (
76+
<div
77+
key={index}
78+
className={cn(
79+
"flex items-center justify-between text-lg font-medium p-2 rounded hover:bg-[#a6efff] hover:text-gray-900 transition-colors duration-300",
80+
index % 2 === 0 ? "text-[#a6efff]" : "text-[#d8d8d8]"
81+
)}
82+
>
83+
<span>{item.date}</span>
84+
<span>{item.title}</span>
85+
</div>
86+
))}
87+
</div>
5288
<Spacer count={4} />
5389
</div>
5490
);

0 commit comments

Comments
 (0)