chore: update components folder structure, add constants, update existing layout components, scaffold pages
This commit is contained in:
+2
-84
@@ -1,94 +1,12 @@
|
|||||||
// File-based routing: this file's location IS the URL.
|
import Hero from "@/components/content/Hero";
|
||||||
// /app/about/page.tsx → https://yoursite.com/about
|
|
||||||
//
|
|
||||||
// Conventions:
|
|
||||||
// page.tsx = the route's UI
|
|
||||||
// layout.tsx = a wrapper shared across this folder + any nested routes
|
|
||||||
// loading.tsx = shown while the page is loading
|
|
||||||
// not-found.tsx = shown on 404 within this segment
|
|
||||||
|
|
||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import Link from "next/link";
|
|
||||||
|
|
||||||
// Route-level metadata. Next reads this at build time and emits the
|
|
||||||
// correct <title>, <meta description>, OG tags, etc. into <head>.
|
|
||||||
// The root layout (/app/layout.tsx) had its own metadata; this overrides
|
|
||||||
// the title for /about specifically.
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "About — Angel Mankel",
|
title: "About — Angel Mankel",
|
||||||
// description:
|
|
||||||
// "Frontend engineer with deep AI-tooling fluency. Currently at Village Medical.",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// This is a Server Component by default. It runs on the server, sends
|
|
||||||
// HTML to the browser, and ships zero JavaScript for this page itself.
|
|
||||||
// You only add "use client" at the top of a file when you need
|
|
||||||
// interactivity (useState, onClick, etc).
|
|
||||||
//
|
|
||||||
// Because it's a server component, you could `await fetch()` here, read
|
|
||||||
// a markdown file from disk, or query a DB directly — no API route needed.
|
|
||||||
export default function AboutPage() {
|
export default function AboutPage() {
|
||||||
return (
|
return (
|
||||||
<main className="mx-auto max-w-2xl px-6 py-24">
|
<Hero label="About"/>
|
||||||
<h1 className="text-3xl font-semibold mb-12">About</h1>
|
|
||||||
|
|
||||||
<section className="space-y-6 text-base leading-relaxed text-neutral-200">
|
|
||||||
<p>
|
|
||||||
I came up through healthcare IT — help desk, then Salesforce admin,
|
|
||||||
then software engineer at Village Medical, where I lead React and
|
|
||||||
TypeScript redesigns of patient-facing apps and the internal
|
|
||||||
component library.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
In parallel I've gone deep on AI-assisted development. Claude
|
|
||||||
Code, custom slash commands, MCP integrations — the tooling layer
|
|
||||||
that's reshaping how I work across the stack.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
I'm looking for remote-US product-engineering roles where
|
|
||||||
shipping React is the day job and using and building AI tooling is
|
|
||||||
first-class.
|
|
||||||
</p>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section className="mt-16">
|
|
||||||
<div className="text-xs uppercase tracking-wider text-neutral-500 mb-3">
|
|
||||||
Timeline
|
|
||||||
</div>
|
|
||||||
<ul className="font-mono text-sm space-y-1.5 text-neutral-200">
|
|
||||||
<li>
|
|
||||||
<span className="text-neutral-500 mr-3">2024 – now</span>
|
|
||||||
Village Medical · Software Engineer
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<span className="text-neutral-500 mr-3">2022 – 2024</span>
|
|
||||||
Village Medical · Salesforce Admin
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<span className="text-neutral-500 mr-3">2019 – 2022</span>
|
|
||||||
Gila River · Help Desk / IT
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
{/* next/link does client-side navigation between routes (no full
|
|
||||||
page reload) and prefetches the target route when the link
|
|
||||||
enters the viewport. Use it for any internal nav. For external
|
|
||||||
links and file downloads, plain <a> is fine. */}
|
|
||||||
<p className="mt-10 text-sm">
|
|
||||||
<a href="/cv.pdf" className="underline underline-offset-4 text-amber-400">
|
|
||||||
Download CV (PDF)
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<nav className="mt-16 pt-8 border-t border-neutral-800 flex gap-6 text-sm text-neutral-400">
|
|
||||||
<Link href="/" className="hover:text-white">
|
|
||||||
← Back home
|
|
||||||
</Link>
|
|
||||||
<Link href="/projects" className="hover:text-white">
|
|
||||||
See projects
|
|
||||||
</Link>
|
|
||||||
</nav>
|
|
||||||
</main>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-12
@@ -1,26 +1,18 @@
|
|||||||
@import "tailwindcss";
|
@import "tailwindcss";
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--background: #ffffff;
|
--background: #0a0a0a;
|
||||||
--foreground: #171717;
|
--foreground: #ededed;
|
||||||
}
|
}
|
||||||
|
|
||||||
@theme inline {
|
@theme inline {
|
||||||
--color-background: var(--background);
|
--color-background: var(--background);
|
||||||
--color-foreground: var(--foreground);
|
--color-foreground: var(--foreground);
|
||||||
--font-sans: var(--font-geist-sans);
|
--font-sans: var(--font-inter);
|
||||||
--font-mono: var(--font-geist-mono);
|
--font-serif: var(--font-instrument-serif);
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
:root {
|
|
||||||
--background: #0a0a0a;
|
|
||||||
--foreground: #ededed;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: var(--background);
|
background: var(--background);
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
|
||||||
}
|
}
|
||||||
|
|||||||
+10
-8
@@ -1,22 +1,24 @@
|
|||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import { Geist, Geist_Mono } from "next/font/google";
|
import { Inter, Instrument_Serif } from "next/font/google";
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
import Header from "@/components/layout/Header";
|
import Header from "@/components/layout/Header";
|
||||||
import Footer from "@/components/layout/Footer";
|
import Footer from "@/components/layout/Footer";
|
||||||
import Container from "@/components/layout/Container";
|
import Container from "@/components/layout/Container";
|
||||||
|
|
||||||
const geistSans = Geist({
|
const inter = Inter({
|
||||||
variable: "--font-geist-sans",
|
variable: "--font-inter",
|
||||||
subsets: ["latin"],
|
subsets: ["latin"],
|
||||||
});
|
});
|
||||||
|
|
||||||
const geistMono = Geist_Mono({
|
const instrumentSerif = Instrument_Serif({
|
||||||
variable: "--font-geist-mono",
|
variable: "--font-instrument-serif",
|
||||||
subsets: ["latin"],
|
subsets: ["latin"],
|
||||||
|
weight: "400",
|
||||||
|
style: ["normal", "italic"],
|
||||||
});
|
});
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Angel Mankel — Software Engineer"
|
title: "Angel Mankel — Software Engineer",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
@@ -27,9 +29,9 @@ export default function RootLayout({
|
|||||||
return (
|
return (
|
||||||
<html
|
<html
|
||||||
lang="en"
|
lang="en"
|
||||||
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
|
className={`${inter.variable} ${instrumentSerif.variable} h-full antialiased`}
|
||||||
>
|
>
|
||||||
<body className="min-h-full flex flex-col">
|
<body className="min-h-full flex flex-col font-sans">
|
||||||
<Header />
|
<Header />
|
||||||
<Container>{children}</Container>
|
<Container>{children}</Container>
|
||||||
<Footer />
|
<Footer />
|
||||||
|
|||||||
+65
-1
@@ -1,3 +1,67 @@
|
|||||||
|
import Hero from "@/components/content/Hero";
|
||||||
|
import Testimonials from "@/components/content/Testimonials";
|
||||||
|
import SectionLabel from "@/components/layout/SectionLabel";
|
||||||
|
import AccentLink from "@/components/navigation/AccentLink";
|
||||||
|
|
||||||
|
type Testimonial = {
|
||||||
|
name: string;
|
||||||
|
title: string;
|
||||||
|
avatar?: string;
|
||||||
|
quote: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
const testimonialsData: Testimonial[] = [
|
||||||
|
{
|
||||||
|
name: "Sarah Chen",
|
||||||
|
title: "Senior Software Engineer · Patient Platforms",
|
||||||
|
quote:
|
||||||
|
"Working with Angel was the first time I saw someone treat Claude Code as a real engineering tool instead of a toy. He’d built half a workflow before the rest of us figured out it was possible.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Marcus Whitfield",
|
||||||
|
title: "Staff Frontend Engineer",
|
||||||
|
quote:
|
||||||
|
"He owned the component library end-to-end and ran the migration without breaking a single screen. Quiet shipper — you only notice his work when you go looking for it.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Priya Anand",
|
||||||
|
title: "Product Designer",
|
||||||
|
quote:
|
||||||
|
"Angel is the rare engineer who actually reads designs and asks questions when something feels off. Half my polish budget got returned to me on the projects he was on.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Daniel Okafor",
|
||||||
|
title: "Engineering Manager",
|
||||||
|
quote:
|
||||||
|
"He’s at his best when the problem doesn’t fit cleanly into one stack. I’d hand him an ambiguous brief and a week later he’d come back with a working prototype and a plan.",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
export default function HomePage() {
|
export default function HomePage() {
|
||||||
return <p>Home</p>;
|
return (
|
||||||
|
<div>
|
||||||
|
<Hero label="Angel Mankel">
|
||||||
|
<div className="space-y-5">
|
||||||
|
<p className="font-serif italic text-3xl leading-[1.3]">
|
||||||
|
I’m a creator at heart.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p className="text-[19px] leading-[1.65]">
|
||||||
|
Building software people rely on — and understanding what makes those
|
||||||
|
people tick — is what drives my greatest ambitions.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p className="text-[19px] leading-[1.65]">
|
||||||
|
I’m the kind of engineer who picks up whatever the problem needs and
|
||||||
|
keeps digging — into the code, and into the people it’s meant for.
|
||||||
|
The throughline isn’t a stack, it’s the curiosity.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</Hero>
|
||||||
|
<SectionLabel label="Selected Projects" />
|
||||||
|
<AccentLink label="See all projects" link="/projects" />
|
||||||
|
<SectionLabel label="What people say" />
|
||||||
|
<Testimonials items={testimonialsData} />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-75
@@ -1,84 +1,12 @@
|
|||||||
// File-based routing: this file's location IS the URL.
|
import Hero from "@/components/content/Hero";
|
||||||
// /app/about/page.tsx → https://yoursite.com/about
|
|
||||||
//
|
|
||||||
// Conventions:
|
|
||||||
// page.tsx = the route's UI
|
|
||||||
// layout.tsx = a wrapper shared across this folder + any nested routes
|
|
||||||
// loading.tsx = shown while the page is loading
|
|
||||||
// not-found.tsx = shown on 404 within this segment
|
|
||||||
|
|
||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import Link from "next/link";
|
|
||||||
|
|
||||||
// Route-level metadata. Next reads this at build time and emits the
|
|
||||||
// correct <title>, <meta description>, OG tags, etc. into <head>.
|
|
||||||
// The root layout (/app/layout.tsx) had its own metadata; this overrides
|
|
||||||
// the title for /work specifically.
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Work — Angel Mankel",
|
title: "Work — Angel Mankel",
|
||||||
// description:
|
|
||||||
// "Frontend engineer with deep AI-tooling fluency. Currently at Village Medical.",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// This is a Server Component by default. It runs on the server, sends
|
export default function ProjectsPage() {
|
||||||
// HTML to the browser, and ships zero JavaScript for this page itself.
|
|
||||||
// You only add "use client" at the top of a file when you need
|
|
||||||
// interactivity (useState, onClick, etc).
|
|
||||||
//
|
|
||||||
// Because it's a server component, you could `await fetch()` here, read
|
|
||||||
// a markdown file from disk, or query a DB directly — no API route needed.
|
|
||||||
export default function WorkPage() {
|
|
||||||
return (
|
return (
|
||||||
<main className="mx-auto max-w-2xl px-6 py-24">
|
<Hero label="Projects" subtitle="Selected work, written as postmortems." />
|
||||||
<h1 className="text-3xl font-semibold mb-12">Work</h1>
|
|
||||||
|
|
||||||
<section className="space-y-6 text-base leading-relaxed text-neutral-200">
|
|
||||||
<p>
|
|
||||||
I came up through healthcare IT — help desk, then Salesforce admin,
|
|
||||||
then software engineer at Village Medical, where I lead React and
|
|
||||||
TypeScript redesigns of patient-facing apps and the internal
|
|
||||||
component library.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
In parallel I've gone deep on AI-assisted development. Claude
|
|
||||||
Code, custom slash commands, MCP integrations — the tooling layer
|
|
||||||
that's reshaping how I work across the stack.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
I'm looking for remote-US product-engineering roles where
|
|
||||||
shipping React is the day job and using and building AI tooling is
|
|
||||||
first-class.
|
|
||||||
</p>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section className="mt-16">
|
|
||||||
<div className="text-xs uppercase tracking-wider text-neutral-500 mb-3">
|
|
||||||
Timeline
|
|
||||||
</div>
|
|
||||||
<ul className="font-mono text-sm space-y-1.5 text-neutral-200">
|
|
||||||
<li>
|
|
||||||
<span className="text-neutral-500 mr-3">2024 – now</span>
|
|
||||||
Village Medical · Software Engineer
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<span className="text-neutral-500 mr-3">2022 – 2024</span>
|
|
||||||
Village Medical · Salesforce Admin
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<span className="text-neutral-500 mr-3">2019 – 2022</span>
|
|
||||||
Gila River · Help Desk / IT
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<nav className="mt-16 pt-8 border-t border-neutral-800 flex gap-6 text-sm text-neutral-400">
|
|
||||||
<Link href="/" className="hover:text-white">
|
|
||||||
← Back home
|
|
||||||
</Link>
|
|
||||||
<Link href="/about" className="hover:text-white">
|
|
||||||
See about
|
|
||||||
</Link>
|
|
||||||
</nav>
|
|
||||||
</main>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-7
@@ -1,16 +1,12 @@
|
|||||||
|
import Hero from "@/components/content/Hero";
|
||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import Link from "next/link";
|
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Uses — Angel Mankel",
|
title: "Uses — Angel Mankel",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function UsesPage() {
|
export default function UsesPage() {
|
||||||
return (
|
return (
|
||||||
<main className="mx-auto max-w-2xl px-6 py-24">
|
<Hero label="Uses" subtitle="Tools and technologies I use in my work."/>
|
||||||
<h1 className="text-3xl font-semibold mb-12">Uses</h1>
|
|
||||||
|
|
||||||
test
|
|
||||||
</main>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
export default function Hero({ label, subtitle, children }: { label: string; subtitle?: string; children?: React.ReactNode }) {
|
||||||
|
return (
|
||||||
|
<section className="space-y-8">
|
||||||
|
<h1 className="font-serif text-[88px] leading-none tracking-tight">
|
||||||
|
{label}
|
||||||
|
</h1>
|
||||||
|
{subtitle && <p className="text-xl text-neutral-400 text-muted">{subtitle}</p>}
|
||||||
|
{children}
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
|
import { IconPlayerPauseFilled, IconPlayerPlayFilled, IconPoint, IconPointFilled } from '@tabler/icons-react';
|
||||||
|
|
||||||
type Testimonial = {
|
type Testimonial = {
|
||||||
name: string;
|
name: string;
|
||||||
@@ -15,10 +16,21 @@ type TestimonialsProps = {
|
|||||||
|
|
||||||
export default function Testimonials({ items }: TestimonialsProps) {
|
export default function Testimonials({ items }: TestimonialsProps) {
|
||||||
const [activeIndex, setActiveIndex] = useState(0);
|
const [activeIndex, setActiveIndex] = useState(0);
|
||||||
|
const [isPlaying, setIsPlaying] = useState(true);
|
||||||
const active = items[activeIndex];
|
const active = items[activeIndex];
|
||||||
|
|
||||||
if (!active) return null;
|
if (!active) return null;
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (items.length <= 1 || !isPlaying) return;
|
||||||
|
|
||||||
|
const id = setInterval(() => {
|
||||||
|
setActiveIndex((i) => (i + 1) % items.length);
|
||||||
|
}, 5000);
|
||||||
|
|
||||||
|
return () => clearInterval(id);
|
||||||
|
}, [items.length, isPlaying]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="w-full">
|
<section className="w-full">
|
||||||
{/* header: avatar + name + title */}
|
{/* header: avatar + name + title */}
|
||||||
@@ -30,26 +42,25 @@ export default function Testimonials({ items }: TestimonialsProps) {
|
|||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{/* quote */}
|
|
||||||
<blockquote>{active.quote}</blockquote>
|
<blockquote>{active.quote}</blockquote>
|
||||||
|
|
||||||
{/* controls: pagination dots + play/pause */}
|
|
||||||
<footer className="flex items-center justify-between">
|
<footer className="flex items-center justify-between">
|
||||||
<div className="flex gap-2">
|
<div className="flex mt-3">
|
||||||
{items.map((_, i) => (
|
{items.map((_, i) => (
|
||||||
<button
|
<button
|
||||||
key={i}
|
key={i}
|
||||||
onClick={() => setActiveIndex(i)}
|
onClick={() => setActiveIndex(i)}
|
||||||
aria-label={`Go to testimonial ${i + 1}`}
|
aria-label={`Go to testimonial ${i + 1}`}
|
||||||
>
|
>
|
||||||
{/* TODO: dot styling */}
|
{i === activeIndex ? <IconPointFilled /> : <IconPoint />}
|
||||||
{i === activeIndex ? "●" : "○"}
|
|
||||||
</button>
|
</button>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* TODO: play/pause button + auto-rotate timer */}
|
{/* TODO: play/pause button + auto-rotate timer */}
|
||||||
<button aria-label="Pause">⏸</button>
|
<button onClick={() => setIsPlaying(!isPlaying)} aria-label={isPlaying ? "Pause" : "Play"}>
|
||||||
|
{isPlaying ? <IconPlayerPauseFilled /> : <IconPlayerPlayFilled />}
|
||||||
|
</button>
|
||||||
</footer>
|
</footer>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
@@ -1,7 +1,11 @@
|
|||||||
export default function Container({ children }: { children: React.ReactNode }) {
|
export default function Container({
|
||||||
return (
|
children,
|
||||||
<div className="p-3 bg-neutral-900 flex-1">
|
}: {
|
||||||
{children}
|
children: React.ReactNode;
|
||||||
</div>
|
}) {
|
||||||
)
|
return (
|
||||||
}
|
<div className="flex-1 min-h-0 overflow-y-auto">
|
||||||
|
<div className="mx-auto w-full max-w-2xl px-6 py-16">{children}</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
|
|
||||||
|
|
||||||
export default function Footer() {
|
export default function Footer() {
|
||||||
return (
|
return (
|
||||||
<div className="border-t border-neutral-800 text-start p-6">
|
<footer className="mx-auto w-full max-w-2xl px-6 py-6 flex items-center justify-between border-t border-neutral-800 text-xs text-neutral-500">
|
||||||
Self-hosted · Traefik · Next.js
|
<span>© 2026 Angel Mankel</span>
|
||||||
</div>
|
<span>Self-hosted · Traefik · Next.js</span>
|
||||||
)
|
</footer>
|
||||||
}
|
);
|
||||||
|
}
|
||||||
|
|||||||
@@ -3,16 +3,14 @@ import Nav from "./Nav";
|
|||||||
|
|
||||||
export default function Header() {
|
export default function Header() {
|
||||||
return (
|
return (
|
||||||
<header className="border-b border-neutral-800">
|
<header className="mx-auto w-full max-w-2xl px-6 py-5 flex items-center justify-between">
|
||||||
<div className="p-6 justify-start flex items-center flex gap-5">
|
<Link
|
||||||
<Link
|
href="/"
|
||||||
href="/"
|
className="text-sm font-semibold text-neutral-100 hover:text-white"
|
||||||
className="text-2xl font-semibold text-neutral-100 hover:text-white"
|
>
|
||||||
>
|
Angel Mankel
|
||||||
Angel Mankel
|
</Link>
|
||||||
</Link>
|
<Nav />
|
||||||
<Nav />
|
|
||||||
</div>
|
|
||||||
</header>
|
</header>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
+30
-18
@@ -1,24 +1,36 @@
|
|||||||
import Link from "next/link";
|
"use client";
|
||||||
|
|
||||||
|
import Link from "next/link";
|
||||||
|
import { usePathname } from "next/navigation";
|
||||||
|
|
||||||
const navLinks = [
|
const navLinks = [
|
||||||
{ href: "/projects", label: "Projects" },
|
{ href: "/projects", label: "projects" },
|
||||||
{ href: "/about", label: "About" },
|
{ href: "/about", label: "about" },
|
||||||
{ href: "/uses", label: "Uses" },
|
{ href: "/uses", label: "uses" },
|
||||||
];
|
];
|
||||||
|
|
||||||
export default function Nav() {
|
export default function Nav() {
|
||||||
return (
|
const pathname = usePathname();
|
||||||
<nav className="flex gap-6 font-mono text-xs text-neutral-400">
|
|
||||||
{navLinks.map((link) => (
|
return (
|
||||||
<Link
|
<nav className="flex gap-6 text-[13px]">
|
||||||
key={link.href}
|
{navLinks.map((link) => {
|
||||||
href={link.href}
|
const isActive =
|
||||||
className="hover:text-white"
|
pathname === link.href || pathname.startsWith(`${link.href}/`);
|
||||||
>
|
return (
|
||||||
{link.label}
|
<Link
|
||||||
</Link>
|
key={link.href}
|
||||||
))}
|
href={link.href}
|
||||||
</nav>
|
className={
|
||||||
)
|
isActive
|
||||||
}
|
? "text-neutral-100"
|
||||||
|
: "text-neutral-500 hover:text-neutral-100"
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{link.label}
|
||||||
|
</Link>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</nav>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import { IconPointFilled } from '@tabler/icons-react';
|
||||||
|
import { colors } from '@/constants/colors';
|
||||||
|
|
||||||
|
export default function SectionLabel({ label }: { label: string }) {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<h2 className="text-sm font-semibold uppercase tracking-wide text-neutral-400 flex gap-1 items-center">
|
||||||
|
<IconPointFilled color={colors.accent}/>
|
||||||
|
{label}
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
import { IconArrowNarrowRight } from '@tabler/icons-react';
|
||||||
|
import { colors } from '@/constants/colors';
|
||||||
|
|
||||||
|
export default function AccentLink({ link, label }: { link: string, label: string }) {
|
||||||
|
return (
|
||||||
|
<a href={link} className='flex gap-1 items-center'>
|
||||||
|
<p style={{ color: colors.accent }}>{label}</p>
|
||||||
|
<IconArrowNarrowRight color={colors.accent} />
|
||||||
|
</a>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
// Neutrals
|
||||||
|
const bg = "#0a0a0a";
|
||||||
|
const bgElevated = "#1c1c1c";
|
||||||
|
const border = "#2e2e2e";
|
||||||
|
const textMuted = "#6b6b6b";
|
||||||
|
const text = "#ededed";
|
||||||
|
|
||||||
|
// Accent
|
||||||
|
const accent = "#d4a24a";
|
||||||
|
|
||||||
|
// Hover states
|
||||||
|
const bgElevatedHover = "#262626";
|
||||||
|
const borderHover = "#3d3d3d";
|
||||||
|
const textMutedHover = "#9a9a9a";
|
||||||
|
const textHover = "#ffffff";
|
||||||
|
const accentHover = "#e6b966";
|
||||||
|
|
||||||
|
export const colors = {
|
||||||
|
bg,
|
||||||
|
bgElevated,
|
||||||
|
border,
|
||||||
|
textMuted,
|
||||||
|
text,
|
||||||
|
accent,
|
||||||
|
hover: {
|
||||||
|
bgElevated: bgElevatedHover,
|
||||||
|
border: borderHover,
|
||||||
|
textMuted: textMutedHover,
|
||||||
|
text: textHover,
|
||||||
|
accent: accentHover,
|
||||||
|
},
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user