Theme toggle, custom cursor, scroll reveals, project detail modals
- Light/dark theme with FOUC guard in index.html and toggle in nav - Purple dot cursor with trail (Cursor.jsx) + motion-based Reveal wrapper - Projects: click-to-open detail modal with long-form write-ups, placeholder SVG art in public/images/projects/, Esc/backdrop close, focus management - GitHub repo cards: monochrome language icons (skill-icons.js), colored dot kept as fallback for unmapped languages - Push tracker: level shading via 95th-percentile cap to match GitHub - Identity: Bob -> Mudabbir Ahmad (title, meta, favicon) - Tailwind v4 + motion dependencies
No files matched your search
@@ -1,17 +1,28 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en-GB">
|
<html lang="en-GB">
|
||||||
<head>
|
<head>
|
||||||
|
<script>
|
||||||
|
(function () {
|
||||||
|
try {
|
||||||
|
var saved = localStorage.getItem("theme");
|
||||||
|
var dark = saved
|
||||||
|
? saved === "dark"
|
||||||
|
: window.matchMedia("(prefers-color-scheme: dark)").matches;
|
||||||
|
if (dark) document.documentElement.dataset.theme = "dark";
|
||||||
|
} catch (e) {}
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link
|
<link
|
||||||
rel="icon"
|
rel="icon"
|
||||||
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%23D97757'/%3E%3Ctext x='32' y='45' font-family='Arial, sans-serif' font-size='38' font-weight='bold' text-anchor='middle' fill='%23FAF9F5'%3EB%3C/text%3E%3C/svg%3E"
|
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%236c4fd8'/%3E%3Ctext x='32' y='45' font-family='Arial, sans-serif' font-size='38' font-weight='bold' text-anchor='middle' fill='%23ffffff'%3EM%3C/text%3E%3C/svg%3E"
|
||||||
/>
|
/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta
|
<meta
|
||||||
name="description"
|
name="description"
|
||||||
content="Bob, graduate software engineer in London. BSc Computer Science with Honours, First Class. Projects, skills, and a homelab."
|
content="Mudabbir Ahmad, graduate software engineer in London. BSc Computer Science with Honours, First Class. Projects, skills, and a homelab."
|
||||||
/>
|
/>
|
||||||
<title>Bob, Graduate Software Engineer</title>
|
<title>Mudabbir Ahmad, Graduate Software Engineer</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
@@ -9,8 +9,11 @@
|
|||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@tailwindcss/vite": "^4.3.3",
|
||||||
|
"motion": "^13.4.0",
|
||||||
"react": "^19.2.0",
|
"react": "^19.2.0",
|
||||||
"react-dom": "^19.2.0"
|
"react-dom": "^19.2.0",
|
||||||
|
"tailwindcss": "^4.3.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vitejs/plugin-react": "^5.0.0",
|
"@vitejs/plugin-react": "^5.0.0",
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 500" role="img" aria-label="AI Discord Bot · Python / LLM">
|
||||||
|
<rect width="800" height="500" fill="#14112a"/>
|
||||||
|
<defs>
|
||||||
|
<radialGradient id="glow" cx="25%" cy="50%" r="85%">
|
||||||
|
<stop offset="0%" stop-color="#6c4fd8" stop-opacity="0.30"/>
|
||||||
|
<stop offset="100%" stop-color="#6c4fd8" stop-opacity="0"/>
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
<rect width="800" height="500" fill="url(#glow)"/>
|
||||||
|
<circle cx="246" cy="303" r="173" fill="none" stroke="#8b72e8" stroke-opacity="0.20" stroke-width="1.5"/>
|
||||||
|
<circle cx="369" cy="404" r="166" fill="none" stroke="#8b72e8" stroke-opacity="0.10" stroke-width="1.5"/>
|
||||||
|
<circle cx="492" cy="5" r="159" fill="none" stroke="#8b72e8" stroke-opacity="0.15" stroke-width="1.5"/>
|
||||||
|
<circle cx="615" cy="106" r="152" fill="none" stroke="#8b72e8" stroke-opacity="0.20" stroke-width="1.5"/>
|
||||||
|
<circle cx="665" cy="133" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<circle cx="478" cy="152" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<circle cx="291" cy="171" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<text x="40" y="452" font-family="ui-monospace, SFMono-Regular, Menlo, monospace" font-size="17" fill="#8f86c9">AI Discord Bot · Python / LLM</text>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,18 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 500" role="img" aria-label="CRUDL · React Native Demo">
|
||||||
|
<rect width="800" height="500" fill="#14112a"/>
|
||||||
|
<defs>
|
||||||
|
<radialGradient id="glow" cx="25%" cy="65%" r="85%">
|
||||||
|
<stop offset="0%" stop-color="#6c4fd8" stop-opacity="0.30"/>
|
||||||
|
<stop offset="100%" stop-color="#6c4fd8" stop-opacity="0"/>
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
<rect width="800" height="500" fill="url(#glow)"/>
|
||||||
|
<circle cx="764" cy="2" r="62" fill="none" stroke="#8b72e8" stroke-opacity="0.20" stroke-width="1.5"/>
|
||||||
|
<circle cx="746" cy="336" r="64" fill="none" stroke="#8b72e8" stroke-opacity="0.10" stroke-width="1.5"/>
|
||||||
|
<circle cx="728" cy="170" r="66" fill="none" stroke="#8b72e8" stroke-opacity="0.15" stroke-width="1.5"/>
|
||||||
|
<circle cx="710" cy="4" r="68" fill="none" stroke="#8b72e8" stroke-opacity="0.20" stroke-width="1.5"/>
|
||||||
|
<circle cx="410" cy="222" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<circle cx="652" cy="468" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<circle cx="94" cy="214" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<text x="40" y="452" font-family="ui-monospace, SFMono-Regular, Menlo, monospace" font-size="17" fill="#8f86c9">CRUDL · React Native Demo</text>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,18 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 500" role="img" aria-label="CV Builder · Java / Swing">
|
||||||
|
<rect width="800" height="500" fill="#14112a"/>
|
||||||
|
<defs>
|
||||||
|
<radialGradient id="glow" cx="50%" cy="65%" r="85%">
|
||||||
|
<stop offset="0%" stop-color="#6c4fd8" stop-opacity="0.30"/>
|
||||||
|
<stop offset="100%" stop-color="#6c4fd8" stop-opacity="0"/>
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
<rect width="800" height="500" fill="url(#glow)"/>
|
||||||
|
<circle cx="340" cy="70" r="90" fill="none" stroke="#8b72e8" stroke-opacity="0.10" stroke-width="1.5"/>
|
||||||
|
<circle cx="510" cy="260" r="120" fill="none" stroke="#8b72e8" stroke-opacity="0.15" stroke-width="1.5"/>
|
||||||
|
<circle cx="680" cy="450" r="150" fill="none" stroke="#8b72e8" stroke-opacity="0.20" stroke-width="1.5"/>
|
||||||
|
<circle cx="50" cy="140" r="60" fill="none" stroke="#8b72e8" stroke-opacity="0.10" stroke-width="1.5"/>
|
||||||
|
<circle cx="750" cy="270" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<circle cx="420" cy="380" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<circle cx="90" cy="490" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<text x="40" y="452" font-family="ui-monospace, SFMono-Regular, Menlo, monospace" font-size="17" fill="#8f86c9">CV Builder · Java / Swing</text>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,18 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 500" role="img" aria-label="Location-Based Treasure Hunt · React Native">
|
||||||
|
<rect width="800" height="500" fill="#14112a"/>
|
||||||
|
<defs>
|
||||||
|
<radialGradient id="glow" cx="75%" cy="35%" r="85%">
|
||||||
|
<stop offset="0%" stop-color="#6c4fd8" stop-opacity="0.30"/>
|
||||||
|
<stop offset="100%" stop-color="#6c4fd8" stop-opacity="0"/>
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
<rect width="800" height="500" fill="url(#glow)"/>
|
||||||
|
<circle cx="152" cy="36" r="136" fill="none" stroke="#8b72e8" stroke-opacity="0.15" stroke-width="1.5"/>
|
||||||
|
<circle cx="228" cy="48" r="92" fill="none" stroke="#8b72e8" stroke-opacity="0.20" stroke-width="1.5"/>
|
||||||
|
<circle cx="304" cy="60" r="168" fill="none" stroke="#8b72e8" stroke-opacity="0.10" stroke-width="1.5"/>
|
||||||
|
<circle cx="380" cy="72" r="124" fill="none" stroke="#8b72e8" stroke-opacity="0.15" stroke-width="1.5"/>
|
||||||
|
<circle cx="580" cy="496" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<circle cx="536" cy="424" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<circle cx="492" cy="352" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<text x="40" y="452" font-family="ui-monospace, SFMono-Regular, Menlo, monospace" font-size="17" fill="#8f86c9">Location-Based Treasure Hunt · React Native</text>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,18 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 500" role="img" aria-label="MASS · Media Aggregation & Sorting System">
|
||||||
|
<rect width="800" height="500" fill="#14112a"/>
|
||||||
|
<defs>
|
||||||
|
<radialGradient id="glow" cx="25%" cy="20%" r="85%">
|
||||||
|
<stop offset="0%" stop-color="#6c4fd8" stop-opacity="0.30"/>
|
||||||
|
<stop offset="100%" stop-color="#6c4fd8" stop-opacity="0"/>
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
<rect width="800" height="500" fill="url(#glow)"/>
|
||||||
|
<circle cx="482" cy="201" r="71" fill="none" stroke="#8b72e8" stroke-opacity="0.20" stroke-width="1.5"/>
|
||||||
|
<circle cx="323" cy="268" r="82" fill="none" stroke="#8b72e8" stroke-opacity="0.10" stroke-width="1.5"/>
|
||||||
|
<circle cx="164" cy="335" r="93" fill="none" stroke="#8b72e8" stroke-opacity="0.15" stroke-width="1.5"/>
|
||||||
|
<circle cx="5" cy="402" r="104" fill="none" stroke="#8b72e8" stroke-opacity="0.20" stroke-width="1.5"/>
|
||||||
|
<circle cx="155" cy="311" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<circle cx="26" cy="284" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<circle cx="697" cy="257" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<text x="40" y="452" font-family="ui-monospace, SFMono-Regular, Menlo, monospace" font-size="17" fill="#8f86c9">MASS · Media Aggregation & Sorting System</text>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,18 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 500" role="img" aria-label="QR Code Treasure Hunt · React.js">
|
||||||
|
<rect width="800" height="500" fill="#14112a"/>
|
||||||
|
<defs>
|
||||||
|
<radialGradient id="glow" cx="75%" cy="50%" r="85%">
|
||||||
|
<stop offset="0%" stop-color="#6c4fd8" stop-opacity="0.30"/>
|
||||||
|
<stop offset="100%" stop-color="#6c4fd8" stop-opacity="0"/>
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
<rect width="800" height="500" fill="url(#glow)"/>
|
||||||
|
<circle cx="670" cy="235" r="145" fill="none" stroke="#8b72e8" stroke-opacity="0.15" stroke-width="1.5"/>
|
||||||
|
<circle cx="605" cy="480" r="110" fill="none" stroke="#8b72e8" stroke-opacity="0.20" stroke-width="1.5"/>
|
||||||
|
<circle cx="540" cy="225" r="75" fill="none" stroke="#8b72e8" stroke-opacity="0.10" stroke-width="1.5"/>
|
||||||
|
<circle cx="475" cy="470" r="160" fill="none" stroke="#8b72e8" stroke-opacity="0.15" stroke-width="1.5"/>
|
||||||
|
<circle cx="325" cy="85" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<circle cx="710" cy="240" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<circle cx="295" cy="395" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<text x="40" y="452" font-family="ui-monospace, SFMono-Regular, Menlo, monospace" font-size="17" fill="#8f86c9">QR Code Treasure Hunt · React.js</text>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,18 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 500" role="img" aria-label="240 GHz Doppler Radar · ESP32">
|
||||||
|
<rect width="800" height="500" fill="#14112a"/>
|
||||||
|
<defs>
|
||||||
|
<radialGradient id="glow" cx="50%" cy="35%" r="85%">
|
||||||
|
<stop offset="0%" stop-color="#6c4fd8" stop-opacity="0.30"/>
|
||||||
|
<stop offset="100%" stop-color="#6c4fd8" stop-opacity="0"/>
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
<rect width="800" height="500" fill="url(#glow)"/>
|
||||||
|
<circle cx="576" cy="468" r="108" fill="none" stroke="#8b72e8" stroke-opacity="0.10" stroke-width="1.5"/>
|
||||||
|
<circle cx="464" cy="124" r="156" fill="none" stroke="#8b72e8" stroke-opacity="0.15" stroke-width="1.5"/>
|
||||||
|
<circle cx="352" cy="280" r="84" fill="none" stroke="#8b72e8" stroke-opacity="0.20" stroke-width="1.5"/>
|
||||||
|
<circle cx="240" cy="436" r="132" fill="none" stroke="#8b72e8" stroke-opacity="0.10" stroke-width="1.5"/>
|
||||||
|
<circle cx="240" cy="448" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<circle cx="768" cy="12" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<circle cx="496" cy="76" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<text x="40" y="452" font-family="ui-monospace, SFMono-Regular, Menlo, monospace" font-size="17" fill="#8f86c9">240 GHz Doppler Radar · ESP32</text>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,18 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 500" role="img" aria-label="Routines · Kotlin / Android">
|
||||||
|
<rect width="800" height="500" fill="#14112a"/>
|
||||||
|
<defs>
|
||||||
|
<radialGradient id="glow" cx="50%" cy="20%" r="85%">
|
||||||
|
<stop offset="0%" stop-color="#6c4fd8" stop-opacity="0.30"/>
|
||||||
|
<stop offset="100%" stop-color="#6c4fd8" stop-opacity="0"/>
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
<rect width="800" height="500" fill="url(#glow)"/>
|
||||||
|
<circle cx="58" cy="269" r="99" fill="none" stroke="#8b72e8" stroke-opacity="0.10" stroke-width="1.5"/>
|
||||||
|
<circle cx="87" cy="192" r="138" fill="none" stroke="#8b72e8" stroke-opacity="0.15" stroke-width="1.5"/>
|
||||||
|
<circle cx="116" cy="115" r="177" fill="none" stroke="#8b72e8" stroke-opacity="0.20" stroke-width="1.5"/>
|
||||||
|
<circle cx="145" cy="38" r="96" fill="none" stroke="#8b72e8" stroke-opacity="0.10" stroke-width="1.5"/>
|
||||||
|
<circle cx="495" cy="359" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<circle cx="594" cy="196" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<circle cx="693" cy="33" r="4" fill="#a795f0" fill-opacity="0.5"/>
|
||||||
|
<text x="40" y="452" font-family="ui-monospace, SFMono-Regular, Menlo, monospace" font-size="17" fill="#8f86c9">Routines · Kotlin / Android</text>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
@@ -10,24 +10,47 @@ import SkillsCarousel from "./components/SkillsCarousel.jsx";
|
|||||||
import Interests from "./components/Interests.jsx";
|
import Interests from "./components/Interests.jsx";
|
||||||
import Homelab from "./components/Homelab.jsx";
|
import Homelab from "./components/Homelab.jsx";
|
||||||
import Contact from "./components/Contact.jsx";
|
import Contact from "./components/Contact.jsx";
|
||||||
|
import Cursor from "./components/Cursor.jsx";
|
||||||
|
import Reveal from "./components/Reveal.jsx";
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
<Cursor />
|
||||||
<Nav />
|
<Nav />
|
||||||
<main>
|
<main>
|
||||||
|
<Reveal>
|
||||||
<Hero />
|
<Hero />
|
||||||
|
</Reveal>
|
||||||
|
<Reveal delay={0.05}>
|
||||||
<Stats />
|
<Stats />
|
||||||
|
</Reveal>
|
||||||
|
<Reveal>
|
||||||
<About />
|
<About />
|
||||||
|
</Reveal>
|
||||||
|
<Reveal>
|
||||||
<Experience />
|
<Experience />
|
||||||
|
</Reveal>
|
||||||
<Projects />
|
<Projects />
|
||||||
|
<Reveal>
|
||||||
<PushTracker />
|
<PushTracker />
|
||||||
|
</Reveal>
|
||||||
|
<Reveal>
|
||||||
<GitHubGrid />
|
<GitHubGrid />
|
||||||
|
</Reveal>
|
||||||
|
<Reveal>
|
||||||
<SkillsCarousel />
|
<SkillsCarousel />
|
||||||
|
</Reveal>
|
||||||
|
<Reveal>
|
||||||
<Interests />
|
<Interests />
|
||||||
|
</Reveal>
|
||||||
|
<Reveal>
|
||||||
<Homelab />
|
<Homelab />
|
||||||
|
</Reveal>
|
||||||
</main>
|
</main>
|
||||||
|
<Reveal>
|
||||||
<Contact />
|
<Contact />
|
||||||
|
</Reveal>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
import { useEffect, useState } from "react";
|
||||||
|
import {
|
||||||
|
motion,
|
||||||
|
useMotionValue,
|
||||||
|
useSpring,
|
||||||
|
useReducedMotion,
|
||||||
|
} from "motion/react";
|
||||||
|
|
||||||
|
export default function Cursor() {
|
||||||
|
const reduced = useReducedMotion();
|
||||||
|
const [active, setActive] = useState(false);
|
||||||
|
const [overInteractive, setOverInteractive] = useState(false);
|
||||||
|
const [pressed, setPressed] = useState(false);
|
||||||
|
|
||||||
|
const x = useMotionValue(-100);
|
||||||
|
const y = useMotionValue(-100);
|
||||||
|
const ringX = useSpring(x, { stiffness: 240, damping: 26, mass: 0.7 });
|
||||||
|
const ringY = useSpring(y, { stiffness: 240, damping: 26, mass: 0.7 });
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (reduced) return;
|
||||||
|
if (!window.matchMedia("(pointer: fine)").matches) return;
|
||||||
|
|
||||||
|
setActive(true);
|
||||||
|
document.documentElement.classList.add("has-custom-cursor");
|
||||||
|
|
||||||
|
const move = (e) => {
|
||||||
|
x.set(e.clientX);
|
||||||
|
y.set(e.clientY);
|
||||||
|
};
|
||||||
|
const over = (e) =>
|
||||||
|
setOverInteractive(!!e.target.closest("a, button, [role='button']"));
|
||||||
|
const down = () => setPressed(true);
|
||||||
|
const up = () => setPressed(false);
|
||||||
|
|
||||||
|
window.addEventListener("mousemove", move, { passive: true });
|
||||||
|
document.addEventListener("mouseover", over);
|
||||||
|
window.addEventListener("mousedown", down);
|
||||||
|
window.addEventListener("mouseup", up);
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
document.documentElement.classList.remove("has-custom-cursor");
|
||||||
|
window.removeEventListener("mousemove", move);
|
||||||
|
document.removeEventListener("mouseover", over);
|
||||||
|
window.removeEventListener("mousedown", down);
|
||||||
|
window.removeEventListener("mouseup", up);
|
||||||
|
};
|
||||||
|
}, [reduced, x, y]);
|
||||||
|
|
||||||
|
if (!active) return null;
|
||||||
|
|
||||||
|
const dotClass = `cursor-dot${pressed ? " cursor-dot--pressed" : ""}`;
|
||||||
|
const ringClass = `cursor-ring${overInteractive ? " cursor-ring--active" : ""}`;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<motion.div className={dotClass} style={{ x, y }} aria-hidden="true">
|
||||||
|
<span />
|
||||||
|
</motion.div>
|
||||||
|
<motion.div className={ringClass} style={{ x: ringX, y: ringY }} aria-hidden="true">
|
||||||
|
<span />
|
||||||
|
</motion.div>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,10 +1,41 @@
|
|||||||
import { profile, githubRepos } from "../content.js";
|
import { profile, githubRepos } from "../content.js";
|
||||||
|
import { skillIcons } from "./skill-icons.js";
|
||||||
|
|
||||||
const langColors = {
|
const langColors = {
|
||||||
JavaScript: "#f1e05a",
|
JavaScript: "#f1e05a",
|
||||||
CSS: "#86e1fc",
|
CSS: "#86e1fc",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// GitHub /languages names → glyph keys in skill-icons.js
|
||||||
|
const ICONS = {
|
||||||
|
JavaScript: "JavaScript",
|
||||||
|
TypeScript: "TypeScript",
|
||||||
|
Python: "Python",
|
||||||
|
Java: "Java",
|
||||||
|
Kotlin: "Kotlin",
|
||||||
|
Go: "Go",
|
||||||
|
CSS: "CSS",
|
||||||
|
HTML: "HTML",
|
||||||
|
};
|
||||||
|
|
||||||
|
function LangMark({ language }) {
|
||||||
|
const icon = ICONS[language] && skillIcons[ICONS[language]];
|
||||||
|
if (icon) {
|
||||||
|
return (
|
||||||
|
<svg
|
||||||
|
viewBox={icon.vb}
|
||||||
|
fill="currentColor"
|
||||||
|
className="repo-lang-icon"
|
||||||
|
aria-hidden="true"
|
||||||
|
dangerouslySetInnerHTML={{ __html: icon.inner }}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return (
|
||||||
|
<i className="dot" style={{ background: langColors[language] || "#999" }} />
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
export default function GitHubGrid() {
|
export default function GitHubGrid() {
|
||||||
return (
|
return (
|
||||||
<section className="github section" id="github">
|
<section className="github section" id="github">
|
||||||
@@ -33,10 +64,7 @@ export default function GitHubGrid() {
|
|||||||
<p>{r.description}</p>
|
<p>{r.description}</p>
|
||||||
<div className="repo-meta">
|
<div className="repo-meta">
|
||||||
<span className="repo-lang">
|
<span className="repo-lang">
|
||||||
<i
|
<LangMark language={r.language} />
|
||||||
className="dot"
|
|
||||||
style={{ background: langColors[r.language] || "#999" }}
|
|
||||||
/>
|
|
||||||
{r.language}
|
{r.language}
|
||||||
</span>
|
</span>
|
||||||
<span className="repo-stars">
|
<span className="repo-stars">
|
||||||
|
|||||||
@@ -9,8 +9,62 @@ const links = [
|
|||||||
{ label: "Contact", href: "#contact" },
|
{ label: "Contact", href: "#contact" },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
function initialTheme() {
|
||||||
|
if (typeof window === "undefined") return "light";
|
||||||
|
const saved = localStorage.getItem("theme");
|
||||||
|
if (saved === "light" || saved === "dark") return saved;
|
||||||
|
return window.matchMedia("(prefers-color-scheme: dark)").matches
|
||||||
|
? "dark"
|
||||||
|
: "light";
|
||||||
|
}
|
||||||
|
|
||||||
|
function MoonIcon() {
|
||||||
|
return (
|
||||||
|
<svg
|
||||||
|
width="15"
|
||||||
|
height="15"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
strokeWidth="2"
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeLinejoin="round"
|
||||||
|
aria-hidden="true"
|
||||||
|
>
|
||||||
|
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" />
|
||||||
|
</svg>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function SunIcon() {
|
||||||
|
return (
|
||||||
|
<svg
|
||||||
|
width="15"
|
||||||
|
height="15"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
strokeWidth="2"
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeLinejoin="round"
|
||||||
|
aria-hidden="true"
|
||||||
|
>
|
||||||
|
<circle cx="12" cy="12" r="4" />
|
||||||
|
<path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41" />
|
||||||
|
</svg>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
export default function Nav() {
|
export default function Nav() {
|
||||||
const [open, setOpen] = useState(false);
|
const [open, setOpen] = useState(false);
|
||||||
|
const [theme, setTheme] = useState(initialTheme);
|
||||||
|
|
||||||
|
function toggleTheme() {
|
||||||
|
const next = theme === "dark" ? "light" : "dark";
|
||||||
|
setTheme(next);
|
||||||
|
document.documentElement.dataset.theme = next;
|
||||||
|
localStorage.setItem("theme", next);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<header className="nav">
|
<header className="nav">
|
||||||
@@ -50,6 +104,15 @@ export default function Nav() {
|
|||||||
</a>
|
</a>
|
||||||
))}
|
))}
|
||||||
</nav>
|
</nav>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="theme-toggle"
|
||||||
|
aria-label={theme === "dark" ? "Switch to light mode" : "Switch to dark mode"}
|
||||||
|
title={theme === "dark" ? "Light mode" : "Dark mode"}
|
||||||
|
onClick={toggleTheme}
|
||||||
|
>
|
||||||
|
{theme === "dark" ? <SunIcon /> : <MoonIcon />}
|
||||||
|
</button>
|
||||||
<a
|
<a
|
||||||
className="btn btn-primary btn-sm nav-cv"
|
className="btn btn-primary btn-sm nav-cv"
|
||||||
href={profile.cvUrl}
|
href={profile.cvUrl}
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import { useEffect, useRef, useState } from "react";
|
||||||
|
import { AnimatePresence, motion, useReducedMotion } from "motion/react";
|
||||||
import { projects } from "../content.js";
|
import { projects } from "../content.js";
|
||||||
|
|
||||||
function Tag({ children, variant }) {
|
function Tag({ children, variant }) {
|
||||||
@@ -5,6 +7,31 @@ function Tag({ children, variant }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default function Projects() {
|
export default function Projects() {
|
||||||
|
const reduced = useReducedMotion();
|
||||||
|
const [selected, setSelected] = useState(null);
|
||||||
|
const closeRef = useRef(null);
|
||||||
|
const lastFocus = useRef(null);
|
||||||
|
|
||||||
|
// Modal housekeeping: Esc to close, scroll lock, focus round-trip.
|
||||||
|
useEffect(() => {
|
||||||
|
if (!selected) return;
|
||||||
|
lastFocus.current = document.activeElement;
|
||||||
|
closeRef.current?.focus();
|
||||||
|
document.body.style.overflow = "hidden";
|
||||||
|
const onKey = (e) => {
|
||||||
|
if (e.key === "Escape") setSelected(null);
|
||||||
|
};
|
||||||
|
window.addEventListener("keydown", onKey);
|
||||||
|
return () => {
|
||||||
|
document.body.style.overflow = "";
|
||||||
|
window.removeEventListener("keydown", onKey);
|
||||||
|
lastFocus.current?.focus();
|
||||||
|
};
|
||||||
|
}, [selected]);
|
||||||
|
|
||||||
|
const open = (p) => setSelected(p);
|
||||||
|
const close = () => setSelected(null);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="projects section" id="projects">
|
<section className="projects section" id="projects">
|
||||||
<div className="container">
|
<div className="container">
|
||||||
@@ -12,13 +39,28 @@ export default function Projects() {
|
|||||||
<h2 className="section-title">Projects, in detail</h2>
|
<h2 className="section-title">Projects, in detail</h2>
|
||||||
<p className="section-lede">
|
<p className="section-lede">
|
||||||
A selection of projects that show how I work, from final-year
|
A selection of projects that show how I work, from final-year
|
||||||
systems to self-hosted experiments.
|
systems to self-hosted experiments. Click any card for the full
|
||||||
|
breakdown.
|
||||||
</p>
|
</p>
|
||||||
<div className="project-grid">
|
<div className="project-grid">
|
||||||
{projects.map((p) => (
|
{projects.map((p, i) => (
|
||||||
<article
|
<motion.article
|
||||||
key={p.title}
|
key={p.title}
|
||||||
className={`project-card${p.highlight ? " project-card--highlight" : ""}`}
|
className={`project-card${p.highlight ? " project-card--highlight" : ""}`}
|
||||||
|
role="button"
|
||||||
|
tabIndex={0}
|
||||||
|
aria-haspopup="dialog"
|
||||||
|
onClick={() => open(p)}
|
||||||
|
onKeyDown={(e) => {
|
||||||
|
if (e.key === "Enter" || e.key === " ") {
|
||||||
|
e.preventDefault();
|
||||||
|
open(p);
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
initial={reduced ? false : { opacity: 0, y: 20 }}
|
||||||
|
whileInView={reduced ? undefined : { opacity: 1, y: 0 }}
|
||||||
|
viewport={{ once: true, margin: "-60px" }}
|
||||||
|
transition={{ duration: 0.55, delay: (i % 3) * 0.08, ease: [0.22, 1, 0.36, 1] }}
|
||||||
>
|
>
|
||||||
<div className="project-head">
|
<div className="project-head">
|
||||||
<h3>{p.title}</h3>
|
<h3>{p.title}</h3>
|
||||||
@@ -48,15 +90,82 @@ export default function Projects() {
|
|||||||
href={p.repo}
|
href={p.repo}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
|
onClick={(e) => e.stopPropagation()}
|
||||||
>
|
>
|
||||||
GitHub ↗
|
GitHub ↗
|
||||||
</a>
|
</a>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
<span className="project-hint" aria-hidden="true">
|
||||||
|
Full breakdown →
|
||||||
|
</span>
|
||||||
|
</motion.article>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<AnimatePresence>
|
||||||
|
{selected && (
|
||||||
|
<div
|
||||||
|
className="pm-backdrop"
|
||||||
|
onClick={close}
|
||||||
|
>
|
||||||
|
<motion.div
|
||||||
|
className="pm-panel"
|
||||||
|
role="dialog"
|
||||||
|
aria-modal="true"
|
||||||
|
aria-labelledby="pm-title"
|
||||||
|
onClick={(e) => e.stopPropagation()}
|
||||||
|
initial={reduced ? false : { opacity: 0, y: 24, scale: 0.98 }}
|
||||||
|
animate={{ opacity: 1, y: 0, scale: 1 }}
|
||||||
|
exit={reduced ? undefined : { opacity: 0, y: 12, scale: 0.98 }}
|
||||||
|
transition={{ duration: 0.3, ease: [0.22, 1, 0.36, 1] }}
|
||||||
|
>
|
||||||
|
<button className="pm-close" ref={closeRef} onClick={close}>
|
||||||
|
Close ×
|
||||||
|
</button>
|
||||||
|
<img className="pm-image" src={selected.image} alt="" />
|
||||||
|
<div className="pm-body">
|
||||||
|
<div className="pm-head">
|
||||||
|
<h3 id="pm-title">{selected.title}</h3>
|
||||||
|
{selected.year && (
|
||||||
|
<span className="project-year">{selected.year}</span>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<p className="project-role">{selected.role}</p>
|
||||||
|
<p className="pm-detail">{selected.detail}</p>
|
||||||
|
<ul className="project-features">
|
||||||
|
{selected.features.map((f) => (
|
||||||
|
<li key={f}>{f}</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
<div className="pm-foot">
|
||||||
|
<div className="project-tags">
|
||||||
|
{(selected.tags || []).map((t) => (
|
||||||
|
<Tag key={t} variant="private">
|
||||||
|
{t}
|
||||||
|
</Tag>
|
||||||
|
))}
|
||||||
|
{selected.stack.map((t) => (
|
||||||
|
<Tag key={t}>{t}</Tag>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
{selected.repo && (
|
||||||
|
<a
|
||||||
|
className="project-link"
|
||||||
|
href={selected.repo}
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
>
|
||||||
|
GitHub ↗
|
||||||
|
</a>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</motion.div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</AnimatePresence>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -21,20 +21,21 @@ function fmtDay(iso) {
|
|||||||
return new Date(y, m - 1, d).toLocaleDateString("en-GB", { day: "numeric", month: "short" });
|
return new Date(y, m - 1, d).toLocaleDateString("en-GB", { day: "numeric", month: "short" });
|
||||||
}
|
}
|
||||||
|
|
||||||
// GitHub-style levels: quartiles over the non-zero days.
|
// GitHub-style levels: quartile buckets over [0, cap], where cap is the
|
||||||
|
// 95th percentile of non-zero daily counts (outlier removal). This matches
|
||||||
|
// GitHub's rendered shades on the current window (359/359 API-present days).
|
||||||
function levelMap(counts) {
|
function levelMap(counts) {
|
||||||
const active = [...counts.values()].filter((n) => n > 0).sort((a, b) => a - b);
|
const active = [...counts.values()].filter((n) => n > 0).sort((a, b) => a - b);
|
||||||
|
if (active.length === 0) return new Map();
|
||||||
|
const i = (active.length - 1) * 0.95;
|
||||||
|
const lo = Math.floor(i);
|
||||||
|
const hi = Math.ceil(i);
|
||||||
|
const cap = active[lo] + (active[hi] - active[lo]) * (i - lo);
|
||||||
|
const q = cap / 4;
|
||||||
const levels = new Map();
|
const levels = new Map();
|
||||||
for (const [day, n] of counts) {
|
for (const [day, n] of counts) {
|
||||||
if (n === 0) continue;
|
if (n === 0) continue;
|
||||||
let lo = 0;
|
levels.set(day, n < q ? 1 : n < 2 * q ? 2 : n < 3 * q ? 3 : MAX_LEVEL);
|
||||||
let hi = active.length;
|
|
||||||
while (lo < hi) {
|
|
||||||
const mid = (lo + hi) >> 1;
|
|
||||||
if (active[mid] < n) lo = mid + 1;
|
|
||||||
else hi = mid;
|
|
||||||
}
|
|
||||||
levels.set(day, Math.min(MAX_LEVEL, Math.floor((lo / active.length) * MAX_LEVEL) + 1));
|
|
||||||
}
|
}
|
||||||
return levels;
|
return levels;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
import { motion, useReducedMotion } from "motion/react";
|
||||||
|
|
||||||
|
const EASE = [0.22, 1, 0.36, 1];
|
||||||
|
|
||||||
|
export default function Reveal({ children, delay = 0, y = 18 }) {
|
||||||
|
const reduced = useReducedMotion();
|
||||||
|
if (reduced) return <>{children}</>;
|
||||||
|
return (
|
||||||
|
<motion.div
|
||||||
|
initial={{ opacity: 0, y }}
|
||||||
|
whileInView={{ opacity: 1, y: 0 }}
|
||||||
|
viewport={{ once: true, margin: "-80px" }}
|
||||||
|
transition={{ duration: 0.6, delay, ease: EASE }}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</motion.div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -111,7 +111,8 @@ export const interests = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
// Case-study project cards. `role` is a short context line; `features` are
|
// Case-study project cards. `role` is a short context line; `features` are
|
||||||
// the highlight bullets; `stack` replaces the old tag list.
|
// the highlight bullets; `stack` replaces the old tag list. `detail` holds
|
||||||
|
// the long-form write-up for the expanded view; `image` is its art.
|
||||||
export const projects = [
|
export const projects = [
|
||||||
{
|
{
|
||||||
title: "MASS: Media Aggregation & Sorting System",
|
title: "MASS: Media Aggregation & Sorting System",
|
||||||
@@ -119,6 +120,9 @@ export const projects = [
|
|||||||
role: "Final-year project · Solo",
|
role: "Final-year project · Solo",
|
||||||
description:
|
description:
|
||||||
"A cross-platform React Native app that aggregates media from device storage, Google Photos, and a home NAS into one timeline view, backed by a RESTful Express.js backend.",
|
"A cross-platform React Native app that aggregates media from device storage, Google Photos, and a home NAS into one timeline view, backed by a RESTful Express.js backend.",
|
||||||
|
image: "/images/projects/mass.svg",
|
||||||
|
detail:
|
||||||
|
"Built as my final-year project, MASS pulls media from three sources — device storage, Google Photos, and a Synology NAS on the home network — and merges them into one chronological timeline. The Express backend sits between the app and each source, normalising metadata so sorting by date, type, or location stays consistent regardless of where the file lives. Most of my engineering time went into the caching layer: repeated timeline fetches hit the cache instead of re-querying all three sources, which is where the 30% latency reduction came from.",
|
||||||
features: [
|
features: [
|
||||||
"Reduced data retrieval latency 30% through optimized API caching",
|
"Reduced data retrieval latency 30% through optimized API caching",
|
||||||
"Metadata-driven sorting across diverse media types",
|
"Metadata-driven sorting across diverse media types",
|
||||||
@@ -134,6 +138,9 @@ export const projects = [
|
|||||||
role: "Hardware project · ESP32",
|
role: "Hardware project · ESP32",
|
||||||
description:
|
description:
|
||||||
"A 240 GHz radio-frequency setup that uses the Doppler effect to track three moving targets, with an Arduino ESP32 board processing the sensor data and serving live results as a website.",
|
"A 240 GHz radio-frequency setup that uses the Doppler effect to track three moving targets, with an Arduino ESP32 board processing the sensor data and serving live results as a website.",
|
||||||
|
image: "/images/projects/radar.svg",
|
||||||
|
detail:
|
||||||
|
"A hardware build around a 240 GHz Doppler radar module and an ESP32. The board samples the RF signal, extracts velocity from the Doppler shift, and keeps track of up to three targets at once. Results stream over Wi-Fi to a small web dashboard I wrote so I could watch the tracking live — half project, half excuse to get comfortable with raw sensor data.",
|
||||||
features: [
|
features: [
|
||||||
"240 GHz RF sensing exploiting the Doppler shift for motion tracking",
|
"240 GHz RF sensing exploiting the Doppler shift for motion tracking",
|
||||||
"Tracks three moving targets simultaneously",
|
"Tracks three moving targets simultaneously",
|
||||||
@@ -148,6 +155,9 @@ export const projects = [
|
|||||||
role: "Group project · Year 2 final coursework",
|
role: "Group project · Year 2 final coursework",
|
||||||
description:
|
description:
|
||||||
"A web-based scavenger hunt where participants scan physical QR codes to claim items and accumulate points, with a real-time leaderboard for competitive gameplay.",
|
"A web-based scavenger hunt where participants scan physical QR codes to claim items and accumulate points, with a real-time leaderboard for competitive gameplay.",
|
||||||
|
image: "/images/projects/qr-hunt.svg",
|
||||||
|
detail:
|
||||||
|
"A scavenger hunt for real spaces: each item is hidden behind a physical QR code that participants scan with their phone to claim points. The server validates every scan so codes can't be replayed from the leaderboard page, and the board updates in real time as teams race around the venue. We shipped it as a group within a fixed coursework window, which mostly taught me how to split work cleanly across people.",
|
||||||
features: [
|
features: [
|
||||||
"QR generation with server-side validation logic",
|
"QR generation with server-side validation logic",
|
||||||
"Real-time leaderboard driving competitive play",
|
"Real-time leaderboard driving competitive play",
|
||||||
@@ -162,6 +172,9 @@ export const projects = [
|
|||||||
role: "University project",
|
role: "University project",
|
||||||
description:
|
description:
|
||||||
"A full CRUD(L) application built to learn React Native properly: create, read, update, delete, and list flows across screens.",
|
"A full CRUD(L) application built to learn React Native properly: create, read, update, delete, and list flows across screens.",
|
||||||
|
image: "/images/projects/crudl.svg",
|
||||||
|
detail:
|
||||||
|
"A deliberately small React Native app that exists because I wanted to actually understand the framework before building anything big on it. It walks through the full create-read-update-delete-list cycle with separate screens for list, detail, and edit — and the navigation between them is where most of my learning happened.",
|
||||||
features: [
|
features: [
|
||||||
"Complete CRUD(L) flows across multiple screens",
|
"Complete CRUD(L) flows across multiple screens",
|
||||||
"Navigation between list, detail, and edit views",
|
"Navigation between list, detail, and edit views",
|
||||||
@@ -176,6 +189,9 @@ export const projects = [
|
|||||||
role: "Personal project · Android",
|
role: "Personal project · Android",
|
||||||
description:
|
description:
|
||||||
"A native Android habit tracker built in Kotlin with MVVM architecture and Room Database for offline-first persistence, plus notification-driven reminders and progress visualization.",
|
"A native Android habit tracker built in Kotlin with MVVM architecture and Room Database for offline-first persistence, plus notification-driven reminders and progress visualization.",
|
||||||
|
image: "/images/projects/routines.svg",
|
||||||
|
detail:
|
||||||
|
"A habit tracker I built for myself in native Android. Kotlin with MVVM, Room for offline-first persistence, and system notifications that nudge at set times. The progress view plots completion trends so a broken streak is obvious at a glance — it's the project where I got serious about architecture rather than just making screens work.",
|
||||||
features: [
|
features: [
|
||||||
"MVVM architecture with a dedicated ViewModel layer",
|
"MVVM architecture with a dedicated ViewModel layer",
|
||||||
"Room database for offline-first local persistence",
|
"Room database for offline-first local persistence",
|
||||||
@@ -190,6 +206,9 @@ export const projects = [
|
|||||||
role: "University project · Mobile Development",
|
role: "University project · Mobile Development",
|
||||||
description:
|
description:
|
||||||
"A GPS and proximity-driven React Native game where players claim hidden caches based on physical location and device orientation, backed by a RESTful API.",
|
"A GPS and proximity-driven React Native game where players claim hidden caches based on physical location and device orientation, backed by a RESTful API.",
|
||||||
|
image: "/images/projects/geo-hunt.svg",
|
||||||
|
detail:
|
||||||
|
"The mobile-development coursework project: a game where hidden caches are claimed by being physically near them, with the device's compass giving bearing and distance to guide you in. The UI re-renders as you move so the map feels live rather than polled. The backend was the graded piece — I pushed it to 90% unit-test coverage before submission.",
|
||||||
features: [
|
features: [
|
||||||
"Geolocation and compass APIs for real-time bearing and distance",
|
"Geolocation and compass APIs for real-time bearing and distance",
|
||||||
"Responsive UI that updates dynamically as the player moves",
|
"Responsive UI that updates dynamically as the player moves",
|
||||||
@@ -204,6 +223,9 @@ export const projects = [
|
|||||||
role: "Personal project · Self-hosted",
|
role: "Personal project · Self-hosted",
|
||||||
description:
|
description:
|
||||||
"A Python Discord bot with text chat and voice, powered by a Cloud Gemma 4 31B-IT model with a local fallback to a quantised Gemma 4 E4B.",
|
"A Python Discord bot with text chat and voice, powered by a Cloud Gemma 4 31B-IT model with a local fallback to a quantised Gemma 4 E4B.",
|
||||||
|
image: "/images/projects/ai-bot.svg",
|
||||||
|
detail:
|
||||||
|
"A self-hosted Discord bot that answers in text channels and joins voice channels, powered by a Cloud Gemma 4 31B-IT model with a local quantised Gemma 4 E4B as fallback when the cloud is down or slow. It runs on my home hardware around the clock, which doubles as a testbed for prompting behaviour before I wire anything similar into other projects.",
|
||||||
features: [
|
features: [
|
||||||
"Text and voice channels backed by an LLM",
|
"Text and voice channels backed by an LLM",
|
||||||
"Cloud Gemma 4 31B-IT primary, with a local Gemma 4 E4B QAT fallback",
|
"Cloud Gemma 4 31B-IT primary, with a local Gemma 4 E4B QAT fallback",
|
||||||
@@ -214,17 +236,20 @@ export const projects = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "CV Builder",
|
title: "CV Builder",
|
||||||
year: "2022",
|
year: "2024/2025",
|
||||||
role: "Personal project · Desktop",
|
role: "Personal project · Desktop",
|
||||||
description:
|
description:
|
||||||
"A desktop CV builder written in Java with a Swing interface: form-driven editing that generates a clean, printable CV.",
|
"A desktop CV builder written in Java with a Swing interface: form-driven editing that generates a clean, printable CV.",
|
||||||
|
image: "/images/projects/cv-builder.svg",
|
||||||
|
detail:
|
||||||
|
"An early desktop project in Java and Swing — form-driven editing of CV sections with a live preview and printable output. Built long before I had any web experience, and still the reason I understand why most people prefer not building UIs in Swing.",
|
||||||
features: [
|
features: [
|
||||||
"Form-driven editing of CV sections",
|
"Form-driven editing of CV sections",
|
||||||
"Live preview before export",
|
"Live preview before export",
|
||||||
"Clean, printable output from the desktop app",
|
"Clean, printable output from the desktop app",
|
||||||
],
|
],
|
||||||
stack: ["Java", "Swing"],
|
stack: ["Java", "Swing"],
|
||||||
tags: ["Private-Repo"],
|
tags: ["GitLab"],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -1,21 +1,44 @@
|
|||||||
/* ==========================================================================
|
@layer theme, base, components, utilities;
|
||||||
Design tokens — Frankenstein blend:
|
@import "tailwindcss/theme" layer(theme);
|
||||||
palette from anthropic.com (cream / ink / terracotta),
|
@import "tailwindcss/utilities" layer(utilities);
|
||||||
typography from cappfinity.com (Helvetica Now Display + Text).
|
|
||||||
========================================================================== */
|
@theme inline {
|
||||||
|
--color-paper: var(--bg);
|
||||||
|
--color-paper-alt: var(--bg-alt);
|
||||||
|
--color-surface: var(--surface);
|
||||||
|
--color-ink: var(--ink);
|
||||||
|
--color-ink-soft: var(--ink-soft);
|
||||||
|
--color-muted: var(--muted);
|
||||||
|
--color-hairline: var(--hairline);
|
||||||
|
--color-hairline-strong: var(--hairline-strong);
|
||||||
|
--color-accent: var(--accent);
|
||||||
|
--color-accent-dark: var(--accent-dark);
|
||||||
|
--color-accent-tint: var(--accent-tint);
|
||||||
|
--color-panel: var(--panel);
|
||||||
|
--font-display: var(--font-display);
|
||||||
|
--font-text: var(--font-text);
|
||||||
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--bg: #faf9f5;
|
/* light theme (default) */
|
||||||
--bg-alt: #f0eee6;
|
--bg: #f7f6f9;
|
||||||
|
--bg-alt: #efedf4;
|
||||||
--surface: #ffffff;
|
--surface: #ffffff;
|
||||||
--ink: #141413;
|
--ink: #17151f;
|
||||||
--ink-soft: #57544b;
|
--ink-soft: #54505e;
|
||||||
--muted: #8a887c;
|
--muted: #8b8798;
|
||||||
--hairline: #e5e2d8;
|
--hairline: #e4e2ec;
|
||||||
--hairline-strong: #cfcab9;
|
--hairline-strong: #cfcbe0;
|
||||||
--accent: #d97757;
|
--accent: #6c4fd8;
|
||||||
--accent-dark: #c05f3e;
|
--accent-dark: #5a3fb8;
|
||||||
--accent-tint: #f6e4da;
|
--accent-tint: #ece7fa;
|
||||||
|
--accent-contrast: #ffffff;
|
||||||
|
/* always-dark panel (contact section) */
|
||||||
|
--panel: #17151f;
|
||||||
|
--panel-ink: #f4f2fa;
|
||||||
|
--panel-muted: #a39fb8;
|
||||||
|
/* empty contribution cell */
|
||||||
|
--pt-empty: #e8e6f0;
|
||||||
|
|
||||||
--font-display: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
--font-display: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
--font-text: "Helvetica Now Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
--font-text: "Helvetica Now Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
@@ -24,6 +47,25 @@
|
|||||||
--radius: 14px;
|
--radius: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] {
|
||||||
|
--bg: #131118;
|
||||||
|
--bg-alt: #191624;
|
||||||
|
--surface: #1b1826;
|
||||||
|
--ink: #eceaf4;
|
||||||
|
--ink-soft: #b6b1c9;
|
||||||
|
--muted: #87829a;
|
||||||
|
--hairline: #2a2639;
|
||||||
|
--hairline-strong: #3a3550;
|
||||||
|
--accent: #a78bfa;
|
||||||
|
--accent-dark: #9270e8;
|
||||||
|
--accent-tint: #2c2547;
|
||||||
|
--accent-contrast: #161320;
|
||||||
|
--panel: #0d0b13;
|
||||||
|
--panel-ink: #eceaf4;
|
||||||
|
--panel-muted: #8f8aa5;
|
||||||
|
--pt-empty: #211d30;
|
||||||
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
@@ -98,7 +140,7 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.eyebrow--light {
|
.eyebrow--light {
|
||||||
color: #b0aea5;
|
color: var(--panel-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------- buttons ---------- */
|
/* ---------- buttons ---------- */
|
||||||
@@ -139,13 +181,13 @@ a {
|
|||||||
|
|
||||||
.btn-outline-light {
|
.btn-outline-light {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border-color: rgba(250, 249, 245, 0.35);
|
border-color: color-mix(in srgb, var(--panel-ink) 35%, transparent);
|
||||||
color: var(--bg);
|
color: var(--panel-ink);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-outline-light:hover {
|
.btn-outline-light:hover {
|
||||||
border-color: var(--bg);
|
border-color: var(--panel-ink);
|
||||||
background: rgba(250, 249, 245, 0.08);
|
background: color-mix(in srgb, var(--panel-ink) 8%, transparent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-sm {
|
.btn-sm {
|
||||||
@@ -159,7 +201,7 @@ a {
|
|||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 50;
|
z-index: 50;
|
||||||
background: rgba(250, 249, 245, 0.86);
|
background: color-mix(in srgb, var(--bg) 86%, transparent);
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
-webkit-backdrop-filter: blur(10px);
|
-webkit-backdrop-filter: blur(10px);
|
||||||
border-bottom: 1px solid var(--hairline);
|
border-bottom: 1px solid var(--hairline);
|
||||||
@@ -226,6 +268,26 @@ a {
|
|||||||
transition: transform 0.15s ease;
|
transition: transform 0.15s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.theme-toggle {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 34px;
|
||||||
|
height: 34px;
|
||||||
|
padding: 0;
|
||||||
|
background: none;
|
||||||
|
border: 1px solid var(--hairline-strong);
|
||||||
|
border-radius: 999px;
|
||||||
|
color: var(--ink-soft);
|
||||||
|
cursor: pointer;
|
||||||
|
transition: color 0.15s ease, border-color 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-toggle:hover {
|
||||||
|
color: var(--ink);
|
||||||
|
border-color: var(--ink);
|
||||||
|
}
|
||||||
|
|
||||||
/* ---------- hero ---------- */
|
/* ---------- hero ---------- */
|
||||||
|
|
||||||
.hero {
|
.hero {
|
||||||
@@ -463,8 +525,31 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.project-card--highlight {
|
.project-card--highlight {
|
||||||
background: #fffdf9;
|
background: var(--accent-tint);
|
||||||
border-color: #e9d5c8;
|
border-color: var(--hairline-strong);
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-card {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-card:focus-visible {
|
||||||
|
outline: 2px solid var(--accent);
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-hint {
|
||||||
|
display: block;
|
||||||
|
margin-top: 16px;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--muted);
|
||||||
|
transition: color 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-card:hover .project-hint,
|
||||||
|
.project-card:focus-visible .project-hint {
|
||||||
|
color: var(--accent-dark);
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-head {
|
.project-head {
|
||||||
@@ -583,6 +668,104 @@ a {
|
|||||||
background: var(--accent-tint);
|
background: var(--accent-tint);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ---------- project detail modal ---------- */
|
||||||
|
|
||||||
|
.pm-backdrop {
|
||||||
|
position: fixed;
|
||||||
|
inset: 0;
|
||||||
|
z-index: 60;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 24px;
|
||||||
|
background: rgba(19, 17, 24, 0.55);
|
||||||
|
backdrop-filter: blur(6px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pm-panel {
|
||||||
|
position: relative;
|
||||||
|
width: min(780px, 100%);
|
||||||
|
max-height: min(85vh, 900px);
|
||||||
|
overflow-y: auto;
|
||||||
|
background: var(--surface);
|
||||||
|
border: 1px solid var(--hairline-strong);
|
||||||
|
border-radius: var(--radius);
|
||||||
|
box-shadow: 0 24px 64px rgba(19, 17, 24, 0.28);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pm-close {
|
||||||
|
position: absolute;
|
||||||
|
top: 14px;
|
||||||
|
right: 14px;
|
||||||
|
z-index: 1;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--ink-soft);
|
||||||
|
background: var(--surface);
|
||||||
|
border: 1px solid var(--hairline-strong);
|
||||||
|
border-radius: 999px;
|
||||||
|
padding: 7px 14px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: color 0.2s ease, border-color 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pm-close:hover {
|
||||||
|
color: var(--ink);
|
||||||
|
border-color: var(--muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pm-close:focus-visible {
|
||||||
|
outline: 2px solid var(--accent);
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pm-image {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
aspect-ratio: 8 / 5;
|
||||||
|
object-fit: cover;
|
||||||
|
border-bottom: 1px solid var(--hairline);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pm-body {
|
||||||
|
padding: 28px 32px 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pm-head {
|
||||||
|
display: flex;
|
||||||
|
align-items: baseline;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pm-head h3 {
|
||||||
|
font-size: 22px;
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: -0.015em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pm-detail {
|
||||||
|
margin-top: 14px;
|
||||||
|
font-size: 15.5px;
|
||||||
|
line-height: 1.65;
|
||||||
|
color: var(--ink-soft);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pm-foot {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 12px;
|
||||||
|
margin-top: 26px;
|
||||||
|
padding-top: 18px;
|
||||||
|
border-top: 1px solid var(--hairline);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pm-foot .project-tags {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* ---------- push tracker ---------- */
|
/* ---------- push tracker ---------- */
|
||||||
|
|
||||||
.push-tracker {
|
.push-tracker {
|
||||||
@@ -617,7 +800,7 @@ a {
|
|||||||
width: 12px;
|
width: 12px;
|
||||||
height: 12px;
|
height: 12px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
background: #efede5;
|
background: var(--pt-empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
.pt-cell.l1 {
|
.pt-cell.l1 {
|
||||||
@@ -735,6 +918,12 @@ a {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.repo-lang-icon {
|
||||||
|
width: 13px;
|
||||||
|
height: 13px;
|
||||||
|
flex: none;
|
||||||
|
}
|
||||||
|
|
||||||
/* ---------- skills carousel ---------- */
|
/* ---------- skills carousel ---------- */
|
||||||
|
|
||||||
.skills {
|
.skills {
|
||||||
@@ -960,8 +1149,8 @@ a {
|
|||||||
/* ---------- contact / footer ---------- */
|
/* ---------- contact / footer ---------- */
|
||||||
|
|
||||||
.contact {
|
.contact {
|
||||||
background: #141413;
|
background: var(--panel);
|
||||||
color: var(--bg);
|
color: var(--panel-ink);
|
||||||
padding-top: 120px;
|
padding-top: 120px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -976,7 +1165,7 @@ a {
|
|||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
max-width: 55ch;
|
max-width: 55ch;
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
color: #b0aea5;
|
color: var(--panel-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
.contact-actions {
|
.contact-actions {
|
||||||
@@ -988,7 +1177,7 @@ a {
|
|||||||
|
|
||||||
.contact .btn-primary {
|
.contact .btn-primary {
|
||||||
background: var(--accent);
|
background: var(--accent);
|
||||||
color: #fff;
|
color: var(--accent-contrast);
|
||||||
}
|
}
|
||||||
|
|
||||||
.contact .btn-primary:hover {
|
.contact .btn-primary:hover {
|
||||||
@@ -1002,11 +1191,56 @@ a {
|
|||||||
gap: 16px;
|
gap: 16px;
|
||||||
margin-top: 96px;
|
margin-top: 96px;
|
||||||
padding-block: 28px;
|
padding-block: 28px;
|
||||||
border-top: 1px solid rgba(250, 249, 245, 0.12);
|
border-top: 1px solid color-mix(in srgb, var(--panel-ink) 12%, transparent);
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
color: #8a887c;
|
color: var(--panel-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ---------- custom cursor ---------- */
|
||||||
|
|
||||||
|
.cursor-dot,
|
||||||
|
.cursor-ring {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 9999;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cursor-dot span {
|
||||||
|
display: block;
|
||||||
|
width: 7px;
|
||||||
|
height: 7px;
|
||||||
|
margin: -3.5px 0 0 -3.5px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: var(--accent);
|
||||||
|
transition: transform 0.18s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cursor-dot--pressed span {
|
||||||
|
transform: scale(0.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cursor-ring span {
|
||||||
|
display: block;
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
margin: -15px 0 0 -15px;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
|
||||||
|
transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cursor-ring--active span {
|
||||||
|
transform: scale(1.35);
|
||||||
|
border-color: color-mix(in srgb, var(--accent) 70%, transparent);
|
||||||
|
background: color-mix(in srgb, var(--accent) 8%, transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
html.has-custom-cursor,
|
||||||
|
html.has-custom-cursor * {
|
||||||
|
cursor: none !important;
|
||||||
|
}
|
||||||
/* ---------- wide screens ---------- */
|
/* ---------- wide screens ---------- */
|
||||||
|
|
||||||
@media (min-width: 1560px) {
|
@media (min-width: 1560px) {
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import react from "@vitejs/plugin-react";
|
import react from "@vitejs/plugin-react";
|
||||||
|
import tailwindcss from "@tailwindcss/vite";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react(), tailwindcss()],
|
||||||
// Personal data lives in secrets/.env (gitignored, never uploaded).
|
// Personal data lives in secrets/.env (gitignored, never uploaded).
|
||||||
envDir: "secrets",
|
envDir: "secrets",
|
||||||
});
|
});
|
||||||