Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 38 additions & 36 deletions homepage/src/styles/global.css
Original file line number Diff line number Diff line change
@@ -1,39 +1,41 @@
/* Font declarations — self-hosted, no external CDN dependency */
@font-face {
font-family: 'DM Serif Display';
src: url('/fonts/DMSerifDisplay-Regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'Inter';
src: url('/fonts/Inter-Regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'Inter';
src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
font-weight: 600;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'JetBrains Mono';
src: url('/fonts/JetBrainsMono-Regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}

/* Design tokens */
:root {
--bg: #0a0a0a;
/* --- New Feature: Premium Scroll Progress & Custom Scrollbar --- */

/* Horizontal scroll progress indicator at the top of the viewport */
.scroll-progress-bar {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 3px;
background: var(--gradient);
transform-origin: left;
scale: 0 1; /* Bind this to scroll-timeline or a quick JS scroll listener */
z-index: 10000;
}

/* Custom scrollbar track */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
Comment on lines +17 to +20

::-webkit-scrollbar-track {
background: var(--bg);
border-left: 1px solid var(--border);
}

/* Custom scrollbar thumb with a subtle hover glow */
::-webkit-scrollbar-thumb {
background: var(--surface);
border: 2px solid var(--bg);
border-radius: 5px;
transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
background: var(--accent);
box-shadow: 0 0 10px var(--accent-glow);
}
Comment on lines +28 to +38
--surface: #141414;
--border: #1a1a1a;
--accent: #d4a574;
Expand Down