Cozy Comfort Bistro
Cozy Comfort Bistro is a virtual culinary sanctuary built for the DEV.to Frontend Challenge: Comfort Food Edition (Perfect Landing prompt).
It combines an immersive aesthetic, simulated ambient soundscapes, a personalized soul-food matcher quiz, and a custom plate builderβall designed to feel like a warm, rainy Sunday afternoon by the window.
π Live Demo & Code
- Live Demo: [https://cozycomfort-bistro.netlify.app]
- GitHub Repository: [https://github.com/batu-ta/cozy-comfort-bistro]
π οΈ How It Works & Key Features
We combined both contest categories: a Perfect Landing Page that showcases premium frontend design principles, and a pure CSS Art piece serving as the hero element.
1. Interactive CSS Art (The Steaming Cup)
In the hero section, you will find a steaming cup of hot chocolate on a wooden saucer, built entirely in CSS.
- Interactivity: Hovering over the cup makes the steam rise faster. Clicking anywhere inside the cup drops a fresh marshmallow with a realistic bounce animation.
2. Procedural Ambient Sounds (Web Audio API Synth)
To establish the ultimate cozy atmosphere, the site features synthesized ambient sounds. Instead of loading heavy audio files, the soundscapes are synthesized procedurally in real-time using the Web Audio API:
- Rainy Cafe: Generates rain patter using filtered low-pass white noise combined with brief high-pass clicks.
- Crackling Fireplace: Employs low-frequency rumble accompanied by randomly scheduled crisp impulse snaps to replicate burning logs.
3. The "Soul Food Matcher"
An interactive step-by-step quiz that recommends a comfort food classic based on your current mood, weather, and taste cravings.
4. Custom Plate Builder
Allows users to visually compile their perfect comfort meal (choosing a base, a main comfort dish, and toppings) directly on a virtual plate using dynamic CSS layered rendering.
π» Tech Stack
- Languages: Semantic HTML5, Vanilla JavaScript
- Styling: Advanced Vanilla CSS (utilizing custom variables for instant transition between Midnight Cocoa, Teal Cabin, and Golden Sunset themes)
- Audio Logic: Web Audio API
π¨ Design & Aesthetics
The application features curated warm HSL color palettes, custom typography (Playfair Display and Inter), modern glassmorphism panels, and smooth micro-animations that make the interface feel responsive and alive.
Top comments (0)