aniqa.dev
← Archive01 / 16

Lab noteNo. 01

Hogwarts

A fan landing page for Hogwarts with house profiles, a course list and an application form that sorts you into a house.

Made
Nov 2022
Type
Landing page
Stack
HTML / CSS / JS
Links
Live ↗Code ↗
The Hogwarts landing page: “Hogwarts School of Witchcraft and Wizardry” over a faded castle, with buttons to discover houses, discover courses, reserve a seat and check status.
Click the screenshot to open the live sitehogwarts.aniqa.dev ↗

Why I built it

One of my first complete pages.

What I learned

  1. IntersectionObserver turns on a sticky navigation once the hero leaves the screen.
  2. Event delegation, so one listener handles every navigation link.
  3. House buttons and their content in matching arrays, so clicking one shows its own by index.
  4. Form logic with if/else, checking age and trait to choose a house.

Revisited

  1. Nov 2023: moved the navigation to event delegation.
  2. Aug 2024: fixed the form buttons and smoothed the scrolling.