Skip to content

Commit 8d640a6

Browse files
Major frontend changes
1 parent 1c0df81 commit 8d640a6

38 files changed

Lines changed: 1830 additions & 1564 deletions

‎client/src/app/about/page.tsx‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
import AboutMe from "@/components/AboutMe/AboutMe"
1+
import AboutMe from "@/components/AboutMe/AboutMe";
22

3-
export default function About(){
4-
return(
5-
<main>
6-
<AboutMe />
7-
</main>
8-
)
9-
}
3+
export default function AboutPage() {
4+
return <AboutMe />;
5+
}

‎client/src/app/globals.css‎

Lines changed: 58 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,59 @@
1-
:root {
2-
--bg-color: #111;
3-
--text-color: #eee;
4-
--sidebar-bg: #000;
5-
--sidebar-border: #333;
6-
--accent-color: #fff;
7-
}
1+
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
82

9-
* {
10-
box-sizing: border-box;
11-
padding: 0;
12-
margin: 0;
13-
}
14-
15-
body{
16-
background-color: var(--bg-color);
17-
color: var(--text-color);
18-
font-family: Arial, Helvetica, sans-serif;
19-
overflow: hidden;
20-
}
21-
22-
a {
23-
text-decoration: none;
24-
color: inherit;
25-
}
26-
27-
::--webkit-scrollbar {
28-
width: 10px;
29-
height: 10px;
30-
}
31-
32-
::--webkit-scrollbar-track {
33-
background: #111;
34-
}
35-
36-
::--webkit-scrollbar-thumb {
37-
background: #333;
38-
border-radius: 5px;
39-
border: 2px solid #111;
40-
}
41-
42-
::--webkit-scrollbar-thumb:hover {
43-
background: #555;
44-
}
45-
46-
html {
47-
scrollbar-width: thin;
48-
scrollbar-color: #333 #111;
49-
}
3+
:root {
4+
/* Old theme colours, mapped to the variables the new components expect */
5+
--bg: #111;
6+
--surface: #1a1a1a;
7+
--surface-2: #222;
8+
--border: #333;
9+
--border-hover: #555;
10+
--text: #eee;
11+
--text-muted: #888;
12+
--text-mid: #aaa;
13+
--accent: #fff; /* old accent was white */
14+
--accent-dim: rgba(255,255,255,0.1);
15+
--accent-glow: rgba(255,255,255,0.18);
16+
--nav-h: 0px; /* no top navbar */
17+
--ff-display: Arial, sans-serif;
18+
--ff-mono: monospace;
19+
--ff-body: Arial, sans-serif;
20+
}
21+
22+
html { font-size: 16px; }
23+
24+
body {
25+
background: var(--bg);
26+
color: var(--text);
27+
font-family: var(--ff-body);
28+
font-weight: 300;
29+
line-height: 1.65;
30+
overflow-x: hidden;
31+
}
32+
33+
/* Scrollbar (fixed from old) */
34+
::-webkit-scrollbar { width: 3px; }
35+
::-webkit-scrollbar-track { background: var(--bg); }
36+
::-webkit-scrollbar-thumb { background: var(--text-muted); }
37+
38+
a { color: inherit; text-decoration: none; }
39+
40+
/* Reveal animation classes (needed by RevealObserver) */
41+
.reveal {
42+
opacity: 0;
43+
transform: translateY(32px);
44+
transition:
45+
opacity 0.9s cubic-bezier(0.16,1,0.3,1),
46+
transform 0.9s cubic-bezier(0.16,1,0.3,1);
47+
}
48+
.reveal.visible {
49+
opacity: 1;
50+
transform: none;
51+
}
52+
.reveal-delay-1 { transition-delay: 0.10s; }
53+
.reveal-delay-2 { transition-delay: 0.22s; }
54+
.reveal-delay-3 { transition-delay: 0.35s; }
55+
.reveal-delay-4 { transition-delay: 0.50s; }
56+
.reveal-delay-5 { transition-delay: 0.65s; }
57+
58+
/* Page wrapper (used by new components) */
59+
.page { padding-top: var(--nav-h); min-height: 100vh; }

‎client/src/app/layout.module.css‎

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,20 @@
1313
color: var(--text-primary);
1414
}
1515

16-
.main{
16+
.main {
1717
flex: 1;
1818
display: flex;
1919
flex-direction: column;
2020
overflow-y: auto;
2121
position: relative;
22-
padding: 16px 64px 48px 64px;
22+
padding: 2rem; /* let each page control its own padding */
2323
}
2424

25-
.content {
26-
width: 100%;
27-
max-width: 672px;
28-
margin: 0 auto;
29-
}
30-
31-
32-
3325
@media (max-width: 768px) {
3426
.container {
3527
flex-direction: column;
3628
}
37-
3829
.main {
39-
padding: 24px 20px 120px 20px;
40-
}
41-
42-
.safePaddingBottom {
43-
padding-bottom: calc(env(safe-area-inset-bottom) + 20px);
30+
padding: 0;
4431
}
45-
}
32+
}

‎client/src/app/layout.tsx‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { Metadata } from "next";
22
import styles from "./layout.module.css";
33
import Sidebar from "@/components/Sidebar/Sidebar";
4-
import CursorGlow from "@/components/CursorGlow/CursorGlow";
54
import "./globals.css";
65

76
export const metadata: Metadata = {
@@ -17,13 +16,10 @@ export default function RootLayout({
1716
return (
1817
<html lang="en">
1918
<body>
20-
<CursorGlow />
2119
<div className={styles.container}>
2220
<Sidebar />
2321
<main className={styles.main}>
24-
<div className={`${styles.content} ${styles.safePaddingBottom}`}>
25-
{children}
26-
</div>
22+
{children}
2723
</main>
2824
</div>
2925
</body>

‎client/src/app/page.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import Hero from "@/components/Hero/Hero";
2-
import Skills from "@/components/Skills/Skills";
2+
import SquadHostFeature from "@/components/SquadHostFeature/SquadHostFeature";
33

44
export default function Home() {
55
return (
6-
<main>
7-
<Hero />
8-
<Skills />
6+
<main className="page" style={{ paddingTop: 0 }}>
7+
<Hero />
8+
<SquadHostFeature />
99
</main>
1010
);
1111
}

‎client/src/app/projects/page.tsx‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
import ProjectsMe from "@/components/ProjectsMe/ProjectsMe"
1+
import ProjectsMe from "@/components/ProjectsMe/ProjectsMe";
22

3-
export default function Projects(){
4-
return(
5-
<main>
6-
<ProjectsMe />
7-
</main>
8-
)
9-
}
3+
export default function ProjectsPage() {
4+
return <ProjectsMe />;
5+
}

‎client/src/app/template.tsx‎

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
"use client";
1+
import RevealObserver from "@/components/RevealObserver/RevealObserver";
22

3-
import { motion } from "framer-motion";
4-
5-
export default function Template({ children }: { children: React.ReactNode}) {
6-
return(
7-
<>
8-
{children}
9-
</>
10-
);
11-
};
3+
export default function Template({ children }: { children: React.ReactNode }) {
4+
return (
5+
<>
6+
<RevealObserver />
7+
{children}
8+
</>
9+
);
10+
}

0 commit comments

Comments
 (0)