Miraj

bySyed Abdul Basit

You are a senior full-stack web developer and UI/UX designer. Build a complete, multi-page responsive website for a luxury perfume brand called "MIRAGE" targeting young women. The brand is premium, sensual, and fresh. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🎨 COLOR THEME ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Primary Palette (Fresh + Hot = Sky Water Freshness): - Background: #F0F8FF (Alice Blue — clean, airy) - Accent 1: #87CEEB (Sky Blue — fresh, feminine) - Accent 2: #B0E0E6 (Powder Blue — soft luxury) - Gold Highlight: #D4AF37 (Royal Gold — premium feel) - Deep Navy: #1B2A4A (text, contrast) - White: #FFFFFF (cards, sections) - Gradient Hero: linear-gradient(135deg, #87CEEB, #E0F7FA, #B0E0E6) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📄 PAGES (Each in a Separate File) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Build these files separately: 1. index.html → Home Page 2. shop.html → Shop / Products Page 3. about.html → About Mirage Page 4. contact.html → Contact Page 5. product.html → Single Product Detail Page 6. admin.html → Admin Panel (Password Protected) 7. style.css → Global Stylesheet (shared across all pages) 8. animations.css → All Motion / 3D / Scroll Animations 9. admin.js → Admin Panel Logic (localStorage based) 10. main.js → Global JS (navbar, scroll effects, etc.) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🏠 PAGE 1: index.html — HOME PAGE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Sections (in order): - Sticky Navbar with logo "MIRAGE" + nav links + cart icon - Hero Section: * Full-screen animated gradient background * 3D rotating perfume bottle (CSS 3D transform) * Big headline: "Wear the Sky" with shimmer text animation * Subtext: "Mirage — A Fragrance for the Fearless Feminine" * CTA Button: "Explore Collection" with hover glow effect * Floating particle animation in background (JS canvas or CSS) - Featured Products Section (3 cards with hover 3D tilt effect) - "Why Mirage?" Section with icons and scroll-triggered fade-in - Testimonials Carousel (auto-slide) - Newsletter Signup Section - Footer (links, social icons, copyright) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🛍️ PAGE 2: shop.html — SHOP PAGE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ - Filter Bar (All, Travel Size, Premium, Limited Edition) - Product Grid (cards with: image, name, price, Add to Cart button) - Each card has: hover flip animation showing product description on back - Pagination or Load More button - Cart sidebar (slides in from right) - Products loaded from admin panel data (localStorage JSON) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 💎 PAGE 3: about.html — ABOUT PAGE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ - Brand Story Section with parallax background - Timeline of Mirage's journey (vertical scroll animation) - Team / Founder Section (card layout) - Values Section: "Purity. Passion. Power." with icons - Stats counter (animated numbers: 5000+ customers, 12 fragrances, etc.) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📞 PAGE 4: contact.html — CONTACT ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ - Contact Form (Name, Email, Message) with animated focus states - Google Maps embed placeholder - Social media icons with hover effects - WhatsApp floating button (fixed bottom-right) - Office address, phone, email cards ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🧴 PAGE 5: product.html — PRODUCT DETAIL ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ - Large 3D product image with mouse-move tilt effect - Product name, price, size options (30ml / 50ml / 100ml) - Add to Cart with quantity selector - Description tabs (Description / Ingredients / How to Use) - Related Products section below ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🔐 PAGE 6: admin.html — ADMIN PANEL ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ - Password login screen (default password: mirage2025) - After login show full dashboard: DASHBOARD FEATURES: ✅ Add New Product (name, price, image URL, category, description) ✅ Edit Existing Product ✅ Delete Product ✅ Toggle Product Visibility (show/hide on shop page) ✅ Add / Remove Homepage Sections (toggle visibility) ✅ Edit Hero Text (headline & subtext) ✅ Manage Testimonials (add/edit/delete) ✅ View Contact Form Submissions ✅ All data saved in localStorage (no backend needed) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ✨ MOTION & 3D REQUIREMENTS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ALL of these must be implemented: 1. Hero 3D rotating bottle — CSS @keyframes rotateY 360deg, infinite 2. Scroll-triggered fade-up animations — IntersectionObserver API 3. Product card 3D hover tilt — JS mousemove + CSS transform perspective 4. Card flip animation on shop page — CSS transform rotateY 180deg on hover 5. Parallax scrolling on about page — CSS background-attachment: fixed 6. Shimmer/glitter text effect on brand name — CSS animation 7. Smooth page transitions — CSS opacity + translateY on load 8. Floating particles in hero — lightweight JS canvas animation 9. Navbar shrink on scroll — JS scrollY listener 10. Counter animation on stats — JS requestAnimationFrame ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📱 RESPONSIVE REQUIREMENTS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ - Mobile first approach - Breakpoints: 320px, 480px, 768px, 1024px, 1280px - Hamburger menu on mobile (animated toggle) - Product grid: 1 col mobile, 2 col tablet, 3 col desktop - All animations reduced on prefers-reduced-motion - Touch-friendly buttons (min 44px tap target) - No horizontal scroll on any device ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🔤 FONTS & TYPOGRAPHY ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ - Display: "Playfair Display" (Google Fonts) — brand name & headings - Body: "Poppins" (Google Fonts) — all body text - Utility: "Montserrat" — buttons, labels, nav ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📁 CODE SEQUENCE / OUTPUT ORDER ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Output files in this exact order so I can follow along: STEP 1: style.css (global variables, reset, typography, layout) STEP 2: animations.css (all keyframes and motion classes) STEP 3: main.js (navbar, scroll, particles, counter, tilt) STEP 4: index.html (home page — links all CSS/JS) STEP 5: shop.html (products page) STEP 6: about.html (about page) STEP 7: contact.html (contact page) STEP 8: product.html (single product page) STEP 9: admin.js (all admin logic) STEP 10: admin.html (admin panel UI) After each file, wait for my "next" command before proceeding. Use comments in each file to explain each section clearly. All files must link to style.css and animations.css correctly. Product data must use a shared window.MIRAGE_PRODUCTS array in main.js so admin panel changes reflect on shop page automatically via localStorage.

HomeContactShopAbout
Home

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirement Document

Miraj System Requirements Document

1. Introduction

This document outlines the system requirements for the "Miraj" project, a luxury perfume brand targeting young women. The brand is characterized by its premium, sensual, and fresh appeal. The website will be a multi-page, responsive platform designed to reflect these attributes.

2. System Overview

The Miraj project aims to develop a complete, multi-page responsive website for a luxury perfume brand. The website will feature a modern design with interactive elements and animations to enhance user engagement. It will cater to a young female audience, emphasizing a premium and fresh aesthetic.

Page 1 of 6

3. Functional Requirements

  • As a User, I should be able to view a full-screen animated gradient background on the homepage.
  • As a User, I should see a 3D rotating perfume bottle in the hero section.
  • As a User, I should be able to read a big headline with shimmer text animation.
  • As a User, I should be able to click a CTA button with a hover glow effect.
  • As a User, I should see floating particle animations in the background.
  • As a User, I should be able to view featured products with a 3D tilt effect on hover.
  • As a User, I should be able to read testimonials in a carousel format.
  • As a User, I should be able to sign up for a newsletter.
  • As a User, I should be able to filter products by categories on the shop page.
  • As a User, I should be able to view product details with a hover flip animation.
  • As a User, I should be able to add products to the cart.
  • As a User, I should be able to view a brand story with a parallax background.
  • As a User, I should be able to see a timeline of the brand's journey.
  • As a User, I should be able to contact the brand via a form.
  • As an Admin, I should be able to log in to a password-protected admin panel.
  • As an Admin, I should be able to add, edit, and delete products.
  • As an Admin, I should be able to manage homepage sections and testimonials.
  • As an Admin, I should be able to view contact form submissions.
Page 2 of 6

4. User Personas

  • User: A young woman interested in luxury perfumes, looking for a premium and fresh fragrance.
  • Admin: A staff member responsible for managing product listings, homepage content, and customer interactions.

5. Core User Flows

  • User visits homepage -> views animated hero section -> explores featured products -> navigates to shop page -> filters products -> views product details -> adds product to cart.
  • User visits about page -> reads brand story -> views brand timeline -> learns about team and values.
  • User visits contact page -> fills out contact form -> submits inquiry.
  • Admin logs into admin panel -> manages products -> updates homepage content -> reviews contact form submissions.
Page 3 of 6

6. Visuals Colors and Theme

  • primary: #87CEEB (Sky Blue)
  • primary_light: #B0E0E6 (Powder Blue)
  • secondary: #D4AF37 (Royal Gold)
  • accent: #1B2A4A (Deep Navy)
  • highlight: #E0F7FA (Light Cyan)
  • bg: #F0F8FF (Alice Blue)
  • surface: rgba(255, 255, 255, 0.8) (White)
  • text: #1B2A4A (Deep Navy)
  • text_muted: #B0E0E6 (Powder Blue)
  • border: rgba(27, 42, 74, 0.2)

7. Signature Design Concept

The homepage will feature an interactive 3D rotating perfume bottle in the hero section, using CSS 3D transforms. Users can hover over the bottle to see it rotate, creating a dynamic and engaging first impression. The background will have a full-screen animated gradient, and floating particles will add a sense of movement and depth. The headline "Wear the Sky" will shimmer with a text animation, inviting users to explore the collection. This concept will be implemented using @react-three/fiber for 3D interactions and gsap for animations.

Page 4 of 6

8. Interaction Model & Motion Direction

The landing page will use a "parallax" interaction model, with layered depth via scroll. Decorative elements like floating particles and the animated gradient background will translate at different speeds, creating a visually rich first impression. Internal pages will have moderate scroll-triggered reveals and hover transitions, ensuring a polished user experience.

9. Non-Functional Requirements

  • The website must be responsive and accessible on all devices.
  • It should load quickly and efficiently, with optimized images and assets.
  • All animations should be smooth and not hinder performance.
  • The website must be secure, with protected admin access.

10. Tech Stack

  • Frontend: React for Web
  • Backend: No backend needed (localStorage for data management)
  • Database: NoSQL (localStorage for product data)
  • AI Models: Not applicable
  • AI Tools: Not applicable
  • Local Orchestration: Not applicable
  • Server-side Orchestration: Not applicable
Page 5 of 6

11. Assumptions and Constraints

  • The website will be developed with a mobile-first approach.
  • All data will be managed locally using localStorage, with no backend integration.
  • The admin panel will be password-protected with a default password.
  • The website will use Google Fonts for typography.

12. Glossary

  • CTA: Call to Action
  • 3D Transform: A CSS property that allows elements to be transformed in three-dimensional space.
  • Parallax: A scrolling technique where background images move slower than foreground images, creating an illusion of depth.
  • LocalStorage: A web storage API that allows data to be stored locally within the user's browser.
Page 6 of 6
Home design preview
Admin: Login
Admin: View Dashboard
Admin: Add Product
Admin: Edit Product
Admin: Delete Product
Admin: Toggle Product Visibility
Admin: Manage Homepage Sections
Admin: Edit Hero Text
Admin: Manage Testimonials
Admin: View Contact Submissions
Home design preview
Admin: Login
Admin: View Dashboard
Admin: Add Product
Admin: Edit Product
Admin: Delete Product
Admin: Toggle Product Visibility
Admin: Manage Homepage Sections
Admin: Edit Hero Text
Admin: Manage Testimonials
Admin: View Contact Submissions