← Archive02 / 16
Lab noteNo. 02
Valorant
A fan landing page for Valorant’s agents and maps, with light and dark themes and a quick quiz that matches you to an agent role.
- Made
- Nov 2022
- Type
- Landing page
- Stack
- HTML / CSS / JS

Why I built it
My first landing page. I picked a game with a strong visual identity to practise laying out a whole page.
What I learned
- CSS Grid with auto-fit and minmax, so 24 agent cards reflow without a breakpoint for every screen size.
- Absolute positioning to layer text over each agent card.
- Theme colours in CSS variables, so the toggle swaps one class instead of restyling each element.
- An empty touchstart listener, so phones apply hover styles when you tap.
Revisited
- Nov 2023: moved the theme colours into CSS variables and simplified the toggle.
- Aug 2024: fixed a hover bug and updated the agents and maps.