Skip to content

About

My personal website. evanbarth.com

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

evanbarth.com

My personal site. One index.html, no build step, no framework, no tracking. I wanted something that looks simple at first glance but has a few things to find if you poke around.

What's in it

  • One page file. All the HTML, CSS, and JavaScript live in site/index.html, so I can drop it on any static host. The only other things in site/ are small static files that sit next to it: icons, the link-preview image, the 404 page, robots.txt, sitemap.xml, and the Azure config.
  • Dot field background. A canvas grid that ripples on its own, reacts to the cursor, and sends a shockwave when you click.
  • My E₿ logo. A hand-drawn SVG hexagon that draws itself on load and tilts toward the cursor. The B has the Bitcoin strokes, and they turn orange on hover. Click it and see what happens. Until someone does, it wiggles and throws off golden rings every few seconds as a hint.
  • Boot sequence. A quick startup log the first time someone visits in a session. Any key or click skips it.
  • A real(ish) terminal. Press / or click open terminal. It has history, tab completion, and a few secrets.
  • Themes. Sky is my default: dark navy-black with sky blue and hot pink. There's also bitcoin orange (the official #F7931A), which rains coins when you pick it, turns the dots near your cursor into ₿s, switches the matrix to block-hash hex, and shows a live BTC ticker in the top-right corner: price with rolling odometer digits, 24h change, a glowing border, and a flipping coin. Tap it for coins. Midnight is deep navy (#002941) with soft blue (#B6DFED) doing most of the work and coral (#FD6E6E) as the small accent. Mint, violet, amber, rose, and ice are there too. Click the pulsing dot next to my location (it flashes through the theme colors now and then as a hint) or run theme <name>. The pick sticks while you're on the site, and everyone starts back on Sky next visit.
  • Hidden email. My address is stored encoded and only gets put together in the browser when someone clicks, so it's never sitting in the page source.
  • My local time. The status line shows what time it is here in Springfield.
  • Accessible. Keyboard friendly, visible focus states, labels for screen readers, and everything holds still for anyone with reduced motion turned on.

Terminal

Command What it does
help Lists the commands
howdy Says hi
whoami A little about me
neofetch My "system info" card
ls My links
open <linkedin|github|email> Opens one
email Reveals and copies my email
theme [name] Lists or switches the theme (theme bitcoin or theme orange for bitcoin orange)
matrix Follow the white rabbit
moon To the moon 🚀
coffee Brews a cup
date My local time
echo <text> Prints whatever you type
clear Clears the screen
exit Closes the terminal

Shortcuts: / or ` opens it, Esc closes it (so does the red dot, or a click or tap anywhere outside it), Tab completes, ↑ / ↓ scroll back through history.

Spoilers (don't open if you'd rather find them yourself)
  • Commands that aren't listed: sudo, rm, hello, hi, ping, btc (live price, the price 24h ago, and the change, so you can check the ticker's math)
  • Double-click (or double-tap on a phone) anywhere on the background for a quick matrix rain that spreads out from where you clicked
  • The Konami code (↑ ↑ ↓ ↓ ← → ← → B A) or matrix runs the long version
  • Clicking my logo throws ₿ coins and glitches my name. Click it five times fast (or type moon in the terminal) and it goes to the moon: the logo hyperspins, the Bitcoin logo flashes over it, coins fly up, and rockets launch

Notes to self: changing things

What's where

site/                          everything in here is published, nothing outside it is
  index.html                   the whole page
  404.html                     what a bad URL shows
  og.png                       the picture in link previews (1200×630)
  favicon.svg, favicon.ico, apple-touch-icon.png
  fonts/                       the font files (see Fonts, under Privacy)
  robots.txt, sitemap.xml
  staticwebapp.config.json     Azure settings: security headers, font caching, and the 404 page
.github/workflows/             the deploy to Azure
README.md                      this file (not published)

Everything personal on the page is in three spots.

The page itself (HTML)

Who, What, Where, my name, and the LinkedIn/GitHub URLs are plain HTML inside <main>. The terminal's ls and open read the links straight from the page, so I only have to change a URL in one place.

The <head> (what Google and link previews see)

My job title and city are repeated at the top of index.html in the <title>, the description, the og: tags, and the small application/ld+json block. They're also baked into og.png. If my title, city, or LinkedIn/GitHub URLs change, update those too, and remake og.png (a 1200×630 screenshot of the logo, name, and title on the Sky background).

CONFIG (top of the <script>)

Key What it drives
emailEnc My encoded email (see below)
host The domain shown in the terminal and boot screen
role, region, stack, focus neofetch
bio whoami
tz Time zone for the clock and date (America/Chicago)
version The version on the boot screen (EB-BIOS v28.11)

If I change my email

It's stored as reversed base64. To get the new value, run this in a browser console:

btoa("new@evanbarth.com").split("").reverse().join("")

or with Node:

node -e 'console.log(Buffer.from("new@evanbarth.com").toString("base64").split("").reverse().join(""))'

Then paste the output into CONFIG.emailEnc.

This stops bots that just scrape the raw HTML, which is most of them. It won't stop a headless browser or a person, which is why the site uses an alias instead of my real inbox. If it ever gets spammy, I kill the alias and make a new one. If I proxy through Cloudflare, their Email Obfuscation adds another layer.

If I add a theme

Add it to THEMES in the main script and to the T object in the little <head> script. The head one applies the saved theme before the page paints. If I skip it, the page flashes the default before switching.

In THEMES: a is the accent, b is the second color, grey is the resting dot color, and bg is the browser bar color (all colors are RGB triplets except bg). A simple accent theme only needs those. A full look like Sky also gets its own html[data-theme="name"] block in the CSS for the background, glows, and anything else that changes. If that block sets its own --bg, give it a --faint too: that's the footer text color, and it needs to stay at least 4.5:1 against the background to be readable.

If I want a different default

Change the "sky" fallback in the <head> script and in themeName in the main script.

If the boot screen gets old

In the <head> script, delete the line that starts with if (!sessionStorage.getItem("booted").

If I add a terminal command

Add an entry to COMMANDS: name: ["description", (args) => { ... }]. Put true as the third item to keep it secret: it still works, but it stays out of help and tab completion.

Deploying

The site runs on Azure Static Web Apps. Every push to main runs the workflow in .github/workflows/, which uploads the site/ folder as-is (there's nothing to build). A pull request into main gets its own temporary preview URL, which Azure posts as a comment on the PR and removes when the PR closes. That's the place to check a change before it goes live.

  • Only site/ is published. This README and anything else outside that folder never reach the web.
  • site/staticwebapp.config.json sets the security headers and points bad URLs at 404.html. Its Content-Security-Policy line is a list of the only outside addresses the page may talk to (just Coinbase and CoinGecko, for the ticker). If I ever add another outside service, it has to be added there or the browser will block it.
  • Domain: evanbarth.com should be set as the default under Custom domains in the Azure portal, so www and the azurestaticapps.net address redirect to it.

It's still just static files, so moving is easy: upload the contents of site/ to any static host. Only staticwebapp.config.json is Azure-specific.

Privacy

No analytics, no cookies, no third-party scripts. The fonts (Orbitron for my name, Space Grotesk for headings, JetBrains Mono for everything else) are served from the site itself, so a normal visit makes no outside requests at all. The one exception: only while the bitcoin orange theme is on (or someone runs btc), a price check every 20 seconds against Coinbase's public market-data APIs (the latest trade, plus 5-minute price history every 5 minutes to work out the true 24h change), with CoinGecko as a backup. Nothing identifying is sent. The site keeps four small things in the visitor's own browser:

  • sessionStorage.theme: the theme they picked, for this visit only (gone once they close the tab)
  • sessionStorage.booted: so the boot screen only shows once per session
  • localStorage.logoFound: stops the logo hint once they've clicked it
  • localStorage.themeFound: stops the theme dot hint once they've changed the theme

Fonts

The font files in site/fonts/ are the Latin subsets from Google Fonts (plus JetBrains Mono's extended Latin subset, which is the one with ₿ in it and only downloads when a ₿ is on screen), all under the SIL Open Font License 1.1 (which allows self-hosting): JetBrains Mono by the JetBrains Mono Project Authors, Space Grotesk by the Space Grotesk Project Authors, and Orbitron by the Orbitron Project Authors. The @font-face rules at the top of the <style> block point at them. If a font doesn't load, the page falls back to system fonts without breaking anything.

Azure tells browsers to keep these files for a year without re-checking. If I ever replace one, give the new file a new name (and update the @font-face and preload lines), or returning visitors will keep the old one.

Browser support

Current Chrome, Edge, Firefox, and Safari, on desktop and mobile.

License

© 2026 Evan Barth. All rights reserved.

About

My personal website. evanbarth.com

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages