> jotavsec_
PT EN

← back

How I built my terminal-themed portfolio

2026-11-09 · 3 min read
  • astro
  • web
  • portfolio
  • security

This site is my portfolio and my blog. It had to serve two kinds of people at once: those who evaluate my work and want quick information, and those who like to explore. In this post I explain how things work.

Two ways to use it

On your first visit you choose how you want to see the site:

  • Professional mode: straight to the point, with journey, projects and contact. No game effects.
  • Explorer mode: hacker-terminal look, with falling code, the cat Sudo, the hidden terminal and the achievements.

You can switch at any time in the header. There are also light and dark themes, and the site respects prefers-reduced-motion: if you turned animations off in your system, you will not see movement.

The technology

  • Astro, generating static pages. Almost everything is ready-made HTML, and JavaScript is only where it is needed.
  • Markdown for the posts, with Astro Content Collections validating title, date, language and tags.
  • Two languages, Portuguese and English, with hreflang and a sitemap so search engines understand how they relate.
  • Fonts hosted on the site itself (JetBrains Mono and Inter), asking nothing from third parties.
  • Pixel art of my avatar and of Sudo, drawn in code on a 32×32 grid and turned into SVG.

What there is to explore

In Explorer mode:

  • Sudo is a pixel-art cat that follows the cursor with its eyes, reacts to what you do and comments on every page. You can click it, pet it and even drag it.
  • The terminal opens with the ` key. Type help to see the commands.
  • The achievements live behind the ★ button in the header: there are 15, with hints for the locked ones. Some are easy, others ask you to think like an attacker.
  • Retro sounds are optional and can be switched on or off in the achievements panel or in the terminal.

I will not give away the answers. The fun is in finding them.

Blog, now and certificates

The blog has text search and tag filters, and the / shortcut jumps straight to the search field. There is also a Now page, with what I am studying and building, and a Certificates page that only shows what is real. I do not hold professional certifications yet, so it lists what I completed on TryHackMe and what is planned, with no inflation.

Security and privacy

Since this is the portfolio of someone studying security, I treated the site itself as a target:

  • A strict CSP, which only lets the site’s own scripts run, plus the ones I included on purpose, identified by hash.
  • Security headers: HSTS, X-Content-Type-Options, X-Frame-Options, Referrer-Policy and Permissions-Policy.
  • security.txt, the standard file that says how to report a flaw.
  • Analytics only with your consent. Google Tag Manager only loads after you accept the banner. The visit counter and the game progress stay only in your browser.

The puzzles run in the browser, so the answers are in the code. That fits the theme, but it means they are a playful challenge, not real security.

What comes next

More posts about what I study and practice, mainly TryHackMe labs and what I learn teaching at the cybersecurity league. If you find a flaw in the site, security.txt says how to tell me. It will be welcome.

achievements

This site hides 15 achievements. Press ` to open the terminal. The ★ button shows your progress and hints.

How do you want to view the site?

You can switch anytime in the header.