Skip to content
Open
Show file tree
Hide file tree
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
29 changes: 29 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,35 @@ body {
.animate-shimmer {
animation: shimmer-slide 1.5s infinite;
}
/* ─────────────────────────────────────────
SCROLL PROGRESS BAR
───────────────────────────────────────── */
.scroll-progress-track {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 2px;
background: transparent;
z-index: 10;
}

.scroll-progress-bar {
width: 100%;
height: 100%;
background: var(--accent);
transform-origin: left;
transform: scaleX(0);
transition: transform 0.1s linear;
box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent);
}

@media (prefers-reduced-motion: reduce) {
.scroll-progress-bar {
transition: none !important;
}
}

/* Mouse spotlight enhancement for visibility on all backgrounds */
.lnd-root .mouse-spotlight {
pointer-events: none;
Expand Down
23 changes: 20 additions & 3 deletions src/components/AppNavbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default function AppNavbar() {
const { data: session, status } = useSession();
const [mobileOpen, setMobileOpen] = useState(false);
const [scrolled, setScrolled] = useState(false);
const [scrollProgress, setScrollProgress] = useState(0);

const handleAnchorClick = (e: React.MouseEvent<HTMLAnchorElement>, href: string) => {
const hashIndex = href.indexOf("#");
Expand All @@ -46,7 +47,12 @@ export default function AppNavbar() {
useEffect(() => { setMobileOpen(false); }, [pathname]);

useEffect(() => {
const fn = () => setScrolled(window.scrollY > 20);
const fn = () => {
setScrolled(window.scrollY > 20);
const scrollTop = window.scrollY;
const docHeight = document.documentElement.scrollHeight - window.innerHeight;
setScrollProgress(docHeight > 0 ? Math.min(scrollTop / docHeight, 1) : 0);
};
fn();
window.addEventListener("scroll", fn, { passive: true });
return () => window.removeEventListener("scroll", fn);
Expand Down Expand Up @@ -98,7 +104,7 @@ export default function AppNavbar() {
className="group inline-flex items-center gap-2.5 select-none transition-transform duration-300 hover:scale-[1.02]"
style={{ fontFamily: MONO }}
>
<span className="flex h-8 w-8 items-center justify-center rounded-lg bg-[var(--accent)]/10 text-base font-bold text-[var(--accent)] transition-colors group-hover:bg-[var(--accent)]/20">
<span className="flex h-8 w-8 items-center justify-center rounded-lg bg-[var(--accent)]/10 text-base font-bold text-[var(--accent)] transition-colors group-hover:bg-[var(--accent)]/20 translate-y-[1px]">
</span>
<span className="text-sm font-bold tracking-[0.2em] text-[var(--foreground)]">
Expand All @@ -115,7 +121,7 @@ export default function AppNavbar() {
key={item.href}
href={item.href}
onClick={(e) => handleAnchorClick(e, item.href)}
className="relative px-3 py-2 text-[12px] font-medium transition-colors duration-150"
className="relative px-3 py-2 text-[12px] font-medium tracking-[0.08em] transition-colors duration-150"
style={{
fontFamily: MONO,
color: active ? "var(--accent)" : "var(--muted-foreground)",
Expand Down Expand Up @@ -192,6 +198,17 @@ export default function AppNavbar() {
</button>
</div>

{/* Scroll progress bar */}
<div
className="scroll-progress-track"
aria-hidden="true"
>
<div
className="scroll-progress-bar"
style={{ transform: `scaleX(${scrollProgress})` }}
/>
</div>

{/* Mobile menu */}
{mobileOpen && (
<div
Expand Down
12 changes: 6 additions & 6 deletions src/components/landing/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function MouseSpotlight() {
═══════════════════════════════════════════════════════════ */
const wLabel: React.CSSProperties = {
fontFamily: MONO, fontSize: 10, fontWeight: 500,
color: 'var(--muted-foreground)', textTransform: 'uppercase', letterSpacing: '0.1em',
color: 'var(--muted-foreground)', textTransform: 'uppercase', letterSpacing: '0.08em',
};
const wValue: React.CSSProperties = {
fontFamily: MONO, fontWeight: 600, color: TEXT,
Expand Down Expand Up @@ -780,7 +780,7 @@ function AboutSection() {
transform: vis ? 'translateY(0)' : 'translateY(18px)',
transition: 'opacity 0.6s ease, transform 0.6s ease',
}}>
<div style={{ fontFamily: MONO, fontSize: 10, color: A, letterSpacing: '0.12em', textTransform: 'uppercase', marginBottom: 22 }}>
<div style={{ fontFamily: MONO, fontSize: 10, color: A, letterSpacing: '0.08em', textTransform: 'uppercase', marginBottom: 22 }}>
ABOUT DEVTRACK
</div>
<h2
Expand Down Expand Up @@ -824,7 +824,7 @@ function HeatmapSection() {
return (
<section ref={ref} style={{ padding: '64px clamp(20px,4vw,48px)', overflow: 'hidden' }}>
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'baseline', marginBottom: 20 }}>
<span style={{ fontFamily: MONO, fontSize: 11, color: 'var(--muted-foreground)', textTransform: 'uppercase', letterSpacing: '0.1em' }}>
<span style={{ fontFamily: MONO, fontSize: 11, color: 'var(--muted-foreground)', textTransform: 'uppercase', letterSpacing: '0.08em' }}>
52 weeks of contributions
</span>
<div style={{ display: 'flex', alignItems: 'center', gap: 4 }}>
Expand Down Expand Up @@ -881,7 +881,7 @@ function StatItem({ value, label, delay }: { value: number; label: string; delay
<Counter end={value} active={vis} />
<span style={{ color: 'var(--foreground)', fontSize: 'clamp(18px,3vw,28px)' }}>+</span>
</div>
<div style={{ fontFamily: MONO, fontSize: 10, color: 'var(--muted-foreground)', letterSpacing: '0.12em', marginTop: 8 }}>
<div style={{ fontFamily: MONO, fontSize: 10, color: 'var(--muted-foreground)', letterSpacing: '0.08em', marginTop: 8 }}>
{label}
</div>
</div>
Expand Down Expand Up @@ -1253,7 +1253,7 @@ function ContributeSection({ stats }: { stats: RepoStats }) {
}}
>
{/* Label */}
<div style={{ fontFamily: MONO, fontSize: 10, color: A, letterSpacing: '0.12em', textTransform: 'uppercase', marginBottom: 40 }}>
<div style={{ fontFamily: MONO, fontSize: 10, color: A, letterSpacing: '0.08em', textTransform: 'uppercase', marginBottom: 40 }}>
OPEN SOURCE
</div>

Expand All @@ -1267,7 +1267,7 @@ function ContributeSection({ stats }: { stats: RepoStats }) {
borderRadius: 8, padding: '20px 20px 16px',
}}
>
<div style={{ fontFamily: MONO, fontSize: 10, color: '#94a3b8', letterSpacing: '0.1em', marginBottom: 10 }}>
<div style={{ fontFamily: MONO, fontSize: 10, color: '#94a3b8', letterSpacing: '0.08em', marginBottom: 10 }}>
{s.icon} {s.label}
</div>
<div style={{
Expand Down
Loading