Skip to content

Commit 672b900

Browse files
Merge pull request #20 from Nyasa-Roy/nyasa/statistics
Feat: Dashboard page added
2 parents f998820 + 56bfc94 commit 672b900

File tree

4 files changed

+259
-2
lines changed

4 files changed

+259
-2
lines changed

components/Dashboard/Dashboard.tsx

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import Image from "next/image";
2+
import Statistics from "./Statistics/statistics";
3+
export default function Dashboard() {
4+
return (
5+
<div className="relative min-h-screen">
6+
<div className="absolute inset-0 -z-10 bg-black">
7+
<Image src="/dashboard/background.svg" alt="Background" fill className="absolute -top-[136px]" />
8+
</div>
9+
{/* Page container */}
10+
<div className="flex flex-col gap-[34px] w-[1440px] mx-auto">
11+
12+
<header className="flex items-center justify-between h-[150px] w-full">
13+
14+
<Image src="/ccLogo.svg" alt="Logo" width={75} height={75} className="opacity-100" priority />
15+
16+
<h1 className="text-[90px] font-bold text-center font-[Nulshock] flex items-center justify-center gap-4">
17+
<span className="text-[#B7AB98] px-2 py-1">COOK OFF</span>
18+
<span className="bg-[linear-gradient(90deg,#32CA67_83.17%,#0A8A36_92.79%)] bg-clip-text text-transparent px-2 py-1">10.0</span>
19+
</h1>
20+
21+
<div className="w-[128px] h-[45px] rounded-[10px] opacity-80 flex items-center justify-center bg-[#070E0A] border border-[#B7AB98] border-[1.5px]">
22+
<span className="font-brunoace font-normal text-[16px] leading-[33.96px] tracking-[0.1em] text-center align-middle capitalize text-[#1BA94C]">
23+
Sponsor
24+
</span>
25+
26+
</div>
27+
<div className="absolute left-0 right-0 top-[145px] border-t-2 border-[#B7AB98]"></div>
28+
</header>
29+
30+
<section className="h-[120px] w-full rounded-2xl flex items-center justify-center text-white border border-gray-500 text-lg">
31+
Timeline
32+
</section>
33+
34+
<div className="flex gap-[56px]">
35+
<div className="w-[325px] h-[618px] rounded-2xl flex items-center justify-center text-white border border-gray-500">Profile</div>
36+
<div className="w-[692px] h-[618px] rounded-2xl flex items-center justify-center text-white">
37+
<Statistics/>
38+
</div>
39+
<div className="w-[325px] h-[618px] rounded-2xl flex items-center justify-center text-white border border-gray-500">Details</div>
40+
</div>
41+
</div>
42+
</div>
43+
);
44+
}

components/Statistics.tsx renamed to components/Dashboard/Statistics/statistics.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ const Statistics: React.FC = () => {
139139
];
140140

141141
return (
142-
<div className="fixed inset-0 w-screen min-h-screen bg-[#041009] text-[#ccc] font-[Nulshock,monospace] overflow-auto">
143-
<div className="relative w-[673px] h-[612px] left-[419px] top-[318px]">
142+
<div className="w-full h-full text-[#ccc] font-[Nulshock,monospace]">
143+
<div className="relative w-[673px] h-[612px] mx-auto">
144144
{/* Rectangle behind */}
145145
<div className="absolute top-0 left-0 w-[673px] h-[56px] bg-[#1F2622] rounded-t-[10px]" />
146146

public/ccLogo.svg

Lines changed: 9 additions & 0 deletions
Loading

public/dashboard/background.svg

Lines changed: 204 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)