Skip to content

Chofito/chofito.github.io

Repository files navigation

chofito.github.io

Personal site for Rodolfo "Chofito" Robles — a Cursor-inspired editor window with a terminal demo and an expanded bio.

Stack

Local development

bun install
bun run dev

Lint & format (Biome)

bun run check        # lint + format check
bun run check:fix    # apply safe fixes and format
bun run lint         # lint only
bun run format       # format only

Install the Biome VS Code extension for format-on-save (.vscode/settings.json is included).

Customize content

Bio tabsrc/data/profile.ts → rendered by src/data/bioCode.ts

Terminalsrc/data/terminal/config.ts (copy + rich markup/shaders) → wired in src/data/terminal/script.ts

Link URLs are shared from profile.links for the ls ./links command only.

Terminal rich markup

Use rich template tags in script.ts (parsed by parseRich.ts):

Markup Effect
**text** bold
*text* italic
~~text~~ strikethrough
{dim:text} dim color
{amber:text} amber accent
{accent:text} purple accent
{shimmer:text} animated gradient
{glow:text} pulsing glow
{glitch:text} glitch jitter
{slot:text} slot-machine scramble reveal, re-scrambles ~every 10s (JS-driven)
{matrix:text} digital-rain decode — glyphs rain down, then settle (JS-driven)
{flicker:text} CRT/neon opacity flicker
{scan:text} bright scanline sweep across the text
{rgb:text} chromatic-aberration (red/cyan split) glitch
{wave:text} per-character sine-wave bob
{decrypt:text} hex/crypto-style scramble decode (JS-driven)
{rotate:a|b|c} typewriter that cycles a |-separated word list (JS-driven)
{ember:text} warm flickering amber/orange gradient
{cursor:text}{babel:text} per-brand colors (see brandColors.ts)
{loader:dots} inline . / .. / ... spinner
{loader:braille} braille spinner
{loader:bar} [==== ] progress bar

Builders in builders.ts:

cmd('$ whoami', richStr(terminalConfig.whoami))
cmd('$ cat /etc/motd', ...terminalConfig.motd.map(richStr))
cmd('$ history --oneline', ...terminalConfig.history.map(richStr))
cmd(
  '$ neofetch --mini',
  loader('braille', 'fetching system info'),
  ...neofetchFromConfig(),
)
cmd('$ ls ./links', links())
cmd('$ echo "done"', richStr(terminalConfig.echo))

// plain-text list (no rich markup)
cmd('$ ls ./items', list(['item a', 'item b']))

Deploy

Pushes to main deploy via GitHub Actions (.github/workflows/deploy.yml).

One-time setup in GitHub repo settings:

  1. Settings → Pages → Build and deployment → SourceGitHub Actions
  2. Push to main

Build

bun run build
bun run preview

About

Personal web site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors