Alahamora

A concept website for a magic café in Gliwice and Katowice – you step into a painting, lanterns light up as you scroll, and a wand cursor reveals hidden drawings.

  • Next.js
  • React
  • CSS
  • View Transitions
  • SVG

A concept I made on my own initiative – the café did not order it. Claude Code wrote the code – I designed the whole thing, drew the drawings, decided on the animations and checked every view. The photos come from their website, and I redrew the logo as a vector from their PNG file. Booking and the other subpages wait for the café's decision.

Alahamora Gliwice – the first screen of the website
  • 10days from the first sketch to the finished preview (16–25 Nov 2026)
  • 123commits in the repository – from the first screen to image optimisation
  • 7of my drawings redrawn as SVG – from an owl to the castle in the footer
  • 92–99performance in Lighthouse on a phone, and 100 for accessibility, best practices and SEO

What I built

Alahamora is a magic café with two places – in Gliwice and in Katowice. I made this project on my own initiative: I wanted to show what their website could look like if it had the mood of the café – antiques, portraits in golden frames and a bit of magic. Each city has its own colours and its own magic.

I am learning React, so I built the website in Next.js – as a static site on GitHub Pages. Claude Code wrote the code, but it did not come from a single prompt. First, I spent a week designing both versions: the colours of the cities, the first screen, the lanterns, my drawings and the places where I hid them. Then there were many changes in the code – I reworked the step from the first screen into a city page five times, and I adjusted the wizard's footprints in Gliwice several times for different screen widths.

Lighthouse results on a phone: Katowice (Lighthouse in Chrome) – 92 for performance and 100 for accessibility, best practices and SEO. Gliwice (PageSpeed Insights) – 99 for performance.

Katowice and Gliwice – two kinds of magic

  • Katowice (navy and gold): lanterns hang by the headings. As you scroll, a firefly flies in an arc to the next lantern and lights it – the idea came from the Deluminator, which Dumbledore used in “Harry Potter” to put out and light the street lamps.
  • Gliwice (green and silver): I hid my drawings in empty spaces by the sections – a hat, a cauldron with imps, an owl and a book with a sock. You see them only in the light of the wand, like after the Revelio spell.
  • Shared: a first screen where you step into a painting, a wand cursor, a gallery in frames, banners with the offer and a map from OpenStreetMap in parchment colours, with a wax seal – no Google scripts or cookies.

Computer and phone

  • On a computer, the cursor is a wand with light and sparks, and the banners, frames and buttons react on hover.
  • On a phone, there is no cursor: the drawings in Gliwice get brighter near the middle of the screen and under your finger, the lanterns in Katowice hang above the headings, and hover effects are off.
  • With reduced motion, the animations stop and the lanterns simply shine.
  • The website works from 320 px, with the menu in a separate panel.

In motion

Animations and hover effects recorded from the live project. The videos have no sound.

  • Stepping into the paintingAfter a click, the frame zooms in and the photo turns smoothly into the top of the café's page – no blink, no jump.
  • Two kinds of magic side by sideOn the left, Katowice – a firefly lights a lantern. On the right, Gliwice – the light of the wand reveals a hat.
  • Lanterns in KatowiceAs you scroll, a firefly flies to the lantern by the next section and lights it.
  • Drawings under the wand in GliwiceYou see the hat and the notes only in the light of the wand. On a phone, they appear when they are close to the middle of the screen.
  • Banners with the offerOn hover, a banner swings on its rod together with its tassel, and candles flicker above it.
  • A gallery in framesEvery photo has a different frame that swings on its nail. In some photos, the lamp light flickers.
  • Mirrors in a carouselThe photo in a mirror follows the cursor, and the arrows scroll the carousel.
  • On a phoneWithout a cursor, the lanterns light up as you scroll, and the drawings get brighter as they reach the middle of the screen.

How it looks

Screenshots of the live project – click one to see it bigger.

  • Gliwice – the whole page with all the drawings at once. On the website, you see them in the light of the wand
  • Katowice – the whole page with all the lanterns lit at once. On the website, the one the firefly has reached is lit
  • Katowice on a phone
  • Choosing a café – a brick wall and two framed paintings
  • The 404 page (in Polish) – “This chamber is not on the map”

1 / 5

Alahamora Gliwice – the whole page with the drawings revealed

Gliwice – the whole page with all the drawings at once. On the website, you see them in the light of the wand

Solutions in detail

Things from the code that show best how I work.

  • Into the painting without a jump

    The frame on the first screen zooms in until the photo sits pixel for pixel where it is at the top of the café's page. Only then does View Transitions swap the page, so nothing blinks.

  • Drawings revealed by light

    The drawings are CSS masks made from SVG files, and their brightness depends on the distance from the cursor. On touch screens, the distance from the middle of the screen and the touch point count instead.

  • Light photos and graphics

    At build time, a script makes AVIF and WebP files in a few widths from every photo. The drawings went through SVGO, and the ones off screen load only when you scroll to them.

  • Effects only where they make sense

    Hover effects work only with a mouse, so nothing stays highlighted after a tap on a phone. There is no wand cursor on touch screens or with reduced motion.

← All projects

Got a project in mind?

Or looking for someone to join your team? Write a few sentences – I'll reply within 72 hours.

I'll use your name, email and message only to reply to you. Details in the privacy policy.