Skip to content
Projekte

l3havyaa/immersive-ticket-booking-experience

Auf GitHub ansehen

Über uns

Preview the view from any cinema seat in 3D before you book. Hover a seat for a live preview, or sit in it full screen and look around. Built with Three.js.

Design und Medien

So werden diese Zahlen gemessen

What you can do

  • Seat map with a 3D preview. Selecting seats moves the camera to their real eye position, framed so the screen sits centred even from side seats.
  • Full-screen Preview. Drag to look around and scroll through the rows to try other seats without leaving the 3D view.
  • Choose the best seats for me. One tap picks the best available group for your ticket count.
  • Switch to better seats? If you pick a weak spot (steep side angle, too close), the app quietly offers a nearby better group.

Gemessener Sternzuwachs

in 24h
+4
in 7 days
Verlauf wird gesammelt
in 15 days
Verlauf wird gesammelt
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

Immersive ticket booking experience

A cinema seat-booking prototype where you can see the view from your seat before you pay. Pick seats on a familiar seat map and a live 3D cinema hall flies the camera to that exact seat, with the trailer playing on the screen.

Live demo: https://immersive-ticket-booking-experience.vercel.app/

immersive-experience-preview

Features

  • Seat map with a 3D preview. Selecting seats moves the camera to their real eye position, framed so the screen sits centred even from side seats.
  • Full-screen Preview. Drag to look around and scroll through the rows to try other seats without leaving the 3D view.
  • Choose the best seats for me. One tap picks the best available group for your ticket count.
  • Switch to better seats? If you pick a weak spot (steep side angle, too close), the app quietly offers a nearby better group.
  • Realistic hall. Raked rows, instanced seats, dim house lights, and light from the screen that follows the colour of the film.
  • Clean edges. MSAA on the post-processing pipeline, so the bloom pass doesn't bring back jagged edges.
  • Built for phones too. A bottom-sheet seat map, sizing tuned for touch, and a lighter render on mobile.
  • Accessible. Arrow-key navigation across the seat grid, full screen-reader labels, visible focus, and WCAG-checked colour contrast.

Run it locally

npm install
npm run dev

Then open the URL Vite prints (usually http://localhost:5173).

npm run build     # production build in dist/
npm run preview   # serve the build locally

Use your own video

The cinema screen plays whatever video you give it. Any MP4 works, at any aspect ratio, because it's cover-fitted to the screen.

File Committed? Purpose
public/assets/trailer.local.mp4 No (git-ignored) Your own full-length video. Used first when it's present.
public/assets/trailer.mp4 Yes A short 7-second clip that ships with the repo, so the live demo has something to play.
public/assets/doom.gif Yes Fallback if no video can play, and the thumbnail on the checkout card.

To watch something longer locally, drop an MP4 into public/assets/ named trailer.local.mp4 and refresh. It never gets pushed to GitHub. To change what the live demo shows, replace trailer.mp4 with a short clip you have the rights to.

Full video on a deployed site (without committing it)

  1. Upload the video somewhere that serves a direct MP4 link with CORS, for example Vercel → Storage → Blob → Upload, then copy the file's URL.
  2. In your hosting project, add an environment variable VITE_TRAILER_URL set to that URL (Vercel: Settings → Environment Variables).
  3. Redeploy. The site streams the full video, the repo still contains only the short clip, and if that URL ever goes away the site falls back to the clip automatically.

See .env.example.

Browsers only autoplay muted video, so use the speaker button (top right) to turn the sound on.

Project structure

├── index.html          page markup
├── src/
│   ├── main.js         starts the app and the render loop
│   ├── data.js         seat layout, prices, showtimes, booking state
│   ├── seatMap.js      seat grid, selection, suggestions, checkout
│   ├── scene.js        3D cinema hall (Three.js) and camera
│   ├── screen.js       trailer on the cinema screen, sound toggle
│   └── styles.css
├── public/             static assets (video clip, GIF, favicon)
└── .github/workflows/
    └── deploy.yml      builds and publishes to GitHub Pages on push to main

Deploying

Pushing to main runs .github/workflows/deploy.yml, which builds the site and publishes it to GitHub Pages. To turn this on once, go to Settings → Pages → Build and deployment and set Source to GitHub Actions.

Built with

Three.js and Vite. No UI framework.

Credits

  • The seat-preview interaction is inspired by a concept by Charles Postiaux. This is an independent implementation with its own design and features.
  • Avengers: Doomsday and its trailer are © Marvel Studios. The repo includes only a 7-second excerpt and a small GIF, as placeholder content for a non-commercial design prototype. This project isn't affiliated with or endorsed by Marvel, Disney or any cinema chain. Rights holders can open an issue and the media will be removed.

License

MIT for the code. The video excerpt and film artwork aren't covered by this licence.

Ähnliche Projekte entdecken

Wird geladen…