Personal site of Vasanth Krishna V (kr1$hn4): CTF player with Team 1nf1n1ty and security researcher.
Built with Next.js 15 (App Router), TypeScript (strict), Tailwind CSS v4, Motion (Framer Motion), Lenis and lucide-react.
npm i
npm run dev
Open http://localhost:3000.
Other scripts:
| Command | What it does |
|---|---|
npm run build |
Production build |
npm run start |
Serve the production build |
npm run typecheck |
TypeScript check only |
Requires Node 18.18 or newer.
.gitignore already excludes *.pdf, so the resumes in the project root are not committed. Keep it that way: they contain your phone number.Optional: once you have a custom domain, set NEXT_PUBLIC_SITE_URL (for example https://yourdomain.com) in the Vercel project settings so the Open Graph image, sitemap and robots file use it. Without it, the site uses the Vercel production URL automatically.
Everything you can read on the site lives in one typed file: src/data/site.ts. Components never hard-code copy.
| To change | Edit |
|---|---|
| Name, handle, rotating hero titles | profile |
| Email, LinkedIn, GitHub, Medium, CTFtime | links |
| Hero text | hero |
| Logo dock chips | dock |
| CTF stats, categories, solves, organiser card | ctf |
| Projects and their filter categories | projects, projectCategories |
| Fallback writeup cards | writeups |
| Terminal placeholder, suggestions, hidden flag | terminal |
| Bio, quote, timeline, awards, certifications | about, timeline, awards, certs |
| Logo grid and skill constellation | stack |
| What | Where | Until then |
|---|---|---|
| Avatar illustration (optional) | Save your own as public/avatar.png (square, at least 600×600) |
The built-in illustrated avatar is shown; its eyes follow the cursor |
| Logos for the dock | Add SVGs to public/logos/ named after each slug in dock (see public/logos/README.md) |
Monogram chips are shown |
| Medium URL | links.medium in src/data/site.ts, e.g. https://medium.com/@yourhandle |
Medium links are hidden and three “coming soon” cards are shown |
| Closing quote | about.quote.text and about.quote.attribution |
The quote block is hidden |
| CTFtime team URL | links.ctftime |
Pre-filled with Team 1nf1n1ty’s CTFtime page; change it if it is wrong |
| Site URL (optional) | NEXT_PUBLIC_SITE_URL environment variable |
The Vercel URL is used |
The avatar and logos are detected at build time, so restart npm run dev (or redeploy) after adding them.
When links.medium is set, the Writeups section pulls your three latest posts from https://medium.com/feed/@<handle> at build time and refreshes them at most once an hour (ISR, revalidate: 3600). If the feed cannot be fetched, the static fallback cards from writeups.fallback are shown instead.
The “Ask me anything…” box and the floating button (bottom right, or press `) open a client-side fake shell. It makes no network calls; every answer is built from src/data/site.ts.
Commands: help, whoami, about, ctf, projects, skills, certs, contact, socials, clear, sudo hire-me. Tab completes, ↑ and ↓ walk history.
A flag is hidden in two places: the browser console, and invisible text at the very bottom of the footer (select it to reveal it). Typing it into the terminal prints a congratulations message. Change it in terminal.flag. The flag “cracked” by the bento widget (terminal.decoyFlag) is a decoy.
src/
app/
layout.tsx fonts, metadata, theme boot script, page chrome
page.tsx section order, Medium fetch (ISR)
globals.css design tokens, Tailwind theme, effects
opengraph-image.tsx generated Open Graph image (next/og)
icon.svg favicon (>_)
sitemap.ts, robots.ts
data/site.ts ALL content
lib/ helpers: Medium RSS, canvas utilities, hooks, Lenis handle
components/
layout/ Preloader, Nav, ThemeToggle, TerminalFab, Providers
sections/ Hero, LogoDock, Ctf, Bento, Works, Writeups, AskTerminal, About, Stack, Footer
widgets/ the seven bento widgets (lazy-loaded)
ui/ Reveal, Magnetic, ScrambleText, Counter, Typewriter, Starfield,
Constellation, Terminal, ProjectVisual, AvatarPlaceholder
public/
avatar.png (add yours)
logos/*.svg (add yours)
Defined in src/app/globals.css as shadcn-style CSS variables (--background, --foreground, --card, --muted, --muted-foreground, --border, --brand). Dark is the default; the toggle in the top right switches to light and remembers the choice.
Fonts are loaded with next/font/google: TikTok Sans (headings and body), IBM Plex Mono (labels, handle, terminal) and Reenie Beanie (two small handwritten notes).
prefers-reduced-motion: reduce: the preloader is skipped, the starfield and constellation are drawn once and frozen, text scrambling and typewriter effects are off, smooth scrolling is disabled and the bento is a plain grid.localStorage) and whether the intro has played this session (sessionStorage).