Code a Breathtaking homepage about A Site that would sell history course.
- User
Code a Breathtaking homepage about A Site that would sell history course.
Assistant
I'll create a breathtaking homepage for a history course selling website. Let me start by exploring the project structure, then build out the design.
Now let me install
lucide-reactfor icons and fetch some stock images for the design.Now let me fetch a few more images for the course cards and testimonials.
Now I have all the assets I need. Let me update the title in index.html and then create the full application with multiple components.
Now let me update the CSS with custom styles and fonts:
Now let me create the component files. Starting with the Navbar:
Now let me create the main App component that brings everything together:
Now let's build the project to ensure everything compiles correctly:
The project builds successfully! Let me review the Timeline component since it had a bit of complexity with the mobile/desktop rendering — I want to make sure the mobile layout is clean:
I see the Timeline component has duplicate mobile rendering for even items. Let me simplify it for better mobile support:
The project builds successfully! Here's a summary of what I created:
🏛️ HistoryVault — History Course Selling Homepage
A breathtaking, fully-responsive homepage with 10 sections, built with React + Tailwind CSS v4:
Sections Created:
-
Navbar — Sticky navigation with scroll-aware transparency, gold accent branding, mobile hamburger menu, and smooth hover effects with animated underlines.
-
Hero — Full-screen cinematic hero with a historic library background, floating decorative elements, a shimmer-animated "Secrets" headline, featured course card with Parthenon image, floating enrollment badges, and compelling CTA buttons.
-
Featured Courses — 4-card grid showcasing courses (Ancient Egypt, Medieval Europe, Ancient Greece, WWII) with real stock photos, hover zoom effects, badges, ratings, pricing, and enrollment buttons.
-
Timeline — An alternating zigzag timeline spanning 6 eras (3000 BCE → 1900 CE) with emoji markers, gradient-colored dots, and a separate mobile-friendly vertical layout.
-
Why Us — 6 feature cards with glass-morphism effect explaining the platform's advantages (world-class historians, cinematic production, global perspectives, etc.)
-
Stats Counter — Animated counting numbers (50K+ students, 120+ courses, 98% completion, 45+ countries) with intersection observer triggering.
-
Testimonials — 3 testimonial cards with star ratings, quote icons, avatar initials, and course tags.
-
Pricing — 3-tier pricing (Explorer 39, Historian $79) with the "Scholar" plan featured/highlighted, feature lists, and gradient CTA buttons.
-
CTA Banner — Full-width call-to-action with classical column background, shimmer text animation, and dual buttons.
-
Footer — Complete footer with brand description, contact info, link columns, newsletter signup, and bottom copyright bar.
Design Highlights:
- Custom color palette: Gold, sepia, parchment, and ink tones for an elegant history aesthetic
- Playfair Display serif font for headings + Inter for body text
- Shimmer gold text animation on key headlines
- Glass-morphism cards on dark backgrounds
- Floating animated elements in the hero
- Animated number counters with Intersection Observer
- Fully responsive design with mobile-optimized layouts
- Smooth scroll behavior and hover micro-interactions
Files built:
index.html,src/index.css,src/components/Navbar.tsx,src/components/Hero.tsx,src/components/FeaturedCourses.tsx,src/components/WhyUs.tsx,src/components/Stats.tsx,src/components/Testimonials.tsx,src/components/Pricing.tsx,src/components/CTA.tsx,src/components/Timeline.tsx,src/components/Footer.tsx,src/App.tsx-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.