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
This commit is contained in:
bobbert committed 2026-09-17 17:11:56 +01:00
1 parent e7fbf9598d
commit bc3b415d89
21 files changed
+1455 -135

No files matched your search

+33 -10
View File
@@ -10,24 +10,47 @@ import SkillsCarousel from "./components/SkillsCarousel.jsx";
import Interests from "./components/Interests.jsx";
import Homelab from "./components/Homelab.jsx";
import Contact from "./components/Contact.jsx";
import Cursor from "./components/Cursor.jsx";
import Reveal from "./components/Reveal.jsx";
export default function App() {
return (
<>
<Cursor />
<Nav />
<main>
<Hero />
<Stats />
<About />
<Experience />
<Reveal>
<Hero />
</Reveal>
<Reveal delay={0.05}>
<Stats />
</Reveal>
<Reveal>
<About />
</Reveal>
<Reveal>
<Experience />
</Reveal>
<Projects />
<PushTracker />
<GitHubGrid />
<SkillsCarousel />
<Interests />
<Homelab />
<Reveal>
<PushTracker />
</Reveal>
<Reveal>
<GitHubGrid />
</Reveal>
<Reveal>
<SkillsCarousel />
</Reveal>
<Reveal>
<Interests />
</Reveal>
<Reveal>
<Homelab />
</Reveal>
</main>
<Contact />
<Reveal>
<Contact />
</Reveal>
</>
);
}
+65
View File
@@ -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>
</>
);
}
+32 -4
View File
@@ -1,10 +1,41 @@
import { profile, githubRepos } from "../content.js";
import { skillIcons } from "./skill-icons.js";
const langColors = {
JavaScript: "#f1e05a",
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() {
return (
<section className="github section" id="github">
@@ -33,10 +64,7 @@ export default function GitHubGrid() {
<p>{r.description}</p>
<div className="repo-meta">
<span className="repo-lang">
<i
className="dot"
style={{ background: langColors[r.language] || "#999" }}
/>
<LangMark language={r.language} />
{r.language}
</span>
<span className="repo-stars">
+63
View File
@@ -9,8 +9,62 @@ const links = [
{ 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() {
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 (
<header className="nav">
@@ -50,6 +104,15 @@ export default function Nav() {
</a>
))}
</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
className="btn btn-primary btn-sm nav-cv"
href={profile.cvUrl}
+113 -4
View File
@@ -1,3 +1,5 @@
import { useEffect, useRef, useState } from "react";
import { AnimatePresence, motion, useReducedMotion } from "motion/react";
import { projects } from "../content.js";
function Tag({ children, variant }) {
@@ -5,6 +7,31 @@ function Tag({ children, variant }) {
}
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 (
<section className="projects section" id="projects">
<div className="container">
@@ -12,13 +39,28 @@ export default function Projects() {
<h2 className="section-title">Projects, in detail</h2>
<p className="section-lede">
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>
<div className="project-grid">
{projects.map((p) => (
<article
{projects.map((p, i) => (
<motion.article
key={p.title}
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">
<h3>{p.title}</h3>
@@ -48,15 +90,82 @@ export default function Projects() {
href={p.repo}
target="_blank"
rel="noreferrer"
onClick={(e) => e.stopPropagation()}
>
GitHub ↗
</a>
)}
</div>
</article>
<span className="project-hint" aria-hidden="true">
Full breakdown →
</span>
</motion.article>
))}
</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>
);
}
+10 -9
View File
@@ -21,20 +21,21 @@ function fmtDay(iso) {
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) {
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();
for (const [day, n] of counts) {
if (n === 0) continue;
let lo = 0;
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));
levels.set(day, n < q ? 1 : n < 2 * q ? 2 : n < 3 * q ? 3 : MAX_LEVEL);
}
return levels;
}
+18
View File
@@ -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>
);
}
+28 -3
View File
@@ -111,7 +111,8 @@ export const interests = [
];
// 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 = [
{
title: "MASS: Media Aggregation & Sorting System",
@@ -119,6 +120,9 @@ export const projects = [
role: "Final-year project · Solo",
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.",
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: [
"Reduced data retrieval latency 30% through optimized API caching",
"Metadata-driven sorting across diverse media types",
@@ -134,6 +138,9 @@ export const projects = [
role: "Hardware project · ESP32",
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.",
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: [
"240 GHz RF sensing exploiting the Doppler shift for motion tracking",
"Tracks three moving targets simultaneously",
@@ -148,6 +155,9 @@ export const projects = [
role: "Group project · Year 2 final coursework",
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.",
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: [
"QR generation with server-side validation logic",
"Real-time leaderboard driving competitive play",
@@ -162,6 +172,9 @@ export const projects = [
role: "University project",
description:
"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: [
"Complete CRUD(L) flows across multiple screens",
"Navigation between list, detail, and edit views",
@@ -176,6 +189,9 @@ export const projects = [
role: "Personal project · Android",
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.",
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: [
"MVVM architecture with a dedicated ViewModel layer",
"Room database for offline-first local persistence",
@@ -190,6 +206,9 @@ export const projects = [
role: "University project · Mobile Development",
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.",
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: [
"Geolocation and compass APIs for real-time bearing and distance",
"Responsive UI that updates dynamically as the player moves",
@@ -204,6 +223,9 @@ export const projects = [
role: "Personal project · Self-hosted",
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.",
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: [
"Text and voice channels backed by an LLM",
"Cloud Gemma 4 31B-IT primary, with a local Gemma 4 E4B QAT fallback",
@@ -214,17 +236,20 @@ export const projects = [
},
{
title: "CV Builder",
year: "2022",
year: "2024/2025",
role: "Personal project · Desktop",
description:
"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: [
"Form-driven editing of CV sections",
"Live preview before export",
"Clean, printable output from the desktop app",
],
stack: ["Java", "Swing"],
tags: ["Private-Repo"],
tags: ["GitLab"],
},
];
+264 -30
View File
@@ -1,21 +1,44 @@
/* ==========================================================================
Design tokens — Frankenstein blend:
palette from anthropic.com (cream / ink / terracotta),
typography from cappfinity.com (Helvetica Now Display + Text).
========================================================================== */
@layer theme, base, components, utilities;
@import "tailwindcss/theme" layer(theme);
@import "tailwindcss/utilities" layer(utilities);
@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 {
--bg: #faf9f5;
--bg-alt: #f0eee6;
/* light theme (default) */
--bg: #f7f6f9;
--bg-alt: #efedf4;
--surface: #ffffff;
--ink: #141413;
--ink-soft: #57544b;
--muted: #8a887c;
--hairline: #e5e2d8;
--hairline-strong: #cfcab9;
--accent: #d97757;
--accent-dark: #c05f3e;
--accent-tint: #f6e4da;
--ink: #17151f;
--ink-soft: #54505e;
--muted: #8b8798;
--hairline: #e4e2ec;
--hairline-strong: #cfcbe0;
--accent: #6c4fd8;
--accent-dark: #5a3fb8;
--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-text: "Helvetica Now Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
@@ -24,6 +47,25 @@
--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;
}
@@ -98,7 +140,7 @@ a {
}
.eyebrow--light {
color: #b0aea5;
color: var(--panel-muted);
}
/* ---------- buttons ---------- */
@@ -139,13 +181,13 @@ a {
.btn-outline-light {
background: transparent;
border-color: rgba(250, 249, 245, 0.35);
color: var(--bg);
border-color: color-mix(in srgb, var(--panel-ink) 35%, transparent);
color: var(--panel-ink);
}
.btn-outline-light:hover {
border-color: var(--bg);
background: rgba(250, 249, 245, 0.08);
border-color: var(--panel-ink);
background: color-mix(in srgb, var(--panel-ink) 8%, transparent);
}
.btn-sm {
@@ -159,7 +201,7 @@ a {
position: sticky;
top: 0;
z-index: 50;
background: rgba(250, 249, 245, 0.86);
background: color-mix(in srgb, var(--bg) 86%, transparent);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-bottom: 1px solid var(--hairline);
@@ -226,6 +268,26 @@ a {
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 {
@@ -463,8 +525,31 @@ a {
}
.project-card--highlight {
background: #fffdf9;
border-color: #e9d5c8;
background: var(--accent-tint);
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 {
@@ -583,6 +668,104 @@ a {
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 {
@@ -617,7 +800,7 @@ a {
width: 12px;
height: 12px;
border-radius: 3px;
background: #efede5;
background: var(--pt-empty);
}
.pt-cell.l1 {
@@ -735,6 +918,12 @@ a {
display: inline-block;
}
.repo-lang-icon {
width: 13px;
height: 13px;
flex: none;
}
/* ---------- skills carousel ---------- */
.skills {
@@ -960,8 +1149,8 @@ a {
/* ---------- contact / footer ---------- */
.contact {
background: #141413;
color: var(--bg);
background: var(--panel);
color: var(--panel-ink);
padding-top: 120px;
}
@@ -976,7 +1165,7 @@ a {
margin-top: 20px;
max-width: 55ch;
font-size: 17px;
color: #b0aea5;
color: var(--panel-muted);
}
.contact-actions {
@@ -988,7 +1177,7 @@ a {
.contact .btn-primary {
background: var(--accent);
color: #fff;
color: var(--accent-contrast);
}
.contact .btn-primary:hover {
@@ -1002,11 +1191,56 @@ a {
gap: 16px;
margin-top: 96px;
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;
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 ---------- */
@media (min-width: 1560px) {