π Lesson Overview
Duration: 30-45 minutes | Level: Intermediate | Prerequisites: Basic HTML/CSS knowledge
Learn the universal vibe coding prompt template and create world-class multi-page websites with AI assistance. This comprehensive lesson takes you from concept to deployment.
π¨ What is Vibe Coding?
Vibe coding is an AI-assisted development approach where you describe your creative vision in natural language, and AI tools help you build it. It's not about replacing developersβit's about amplifying human creativity with AI capabilities.
π‘ Key Principle: You're the creative director. AI is your implementation partner.
π οΈ The Universal Vibe Coding Prompt Template
Copy and customize this template for any project:
π― Universal Vibe Coding Prompt
Ultrathink this: Design a multi-page [SITE_TYPE] with a [VIBE] vibe ([VIBE_DETAILS]). Break into subtasks: 1. Define full site architecture: - Pages and their purposes - User flows and navigation - Linking logic with exact hrefs 2. Specify tech stack: - HTML5 semantic markup - CSS custom properties - Vanilla JavaScript (no frameworks) 3. Add responsiveness: - Mobile-first approach - Breakpoints at standard sizes - Hamburger menu for mobile Output as a detailed spec document. Vibe: [VIBE]-inspired, with [VIBE_ELEMENTS]. Ensure: - All pages ([PAGE_LIST]) are fully built with semantic HTML - Linking: Use <a href="[EXAMPLE_LINK]"> for navigation - World-class polish: Accessibility, performance, dark/light mode Provide: 1. Code for each HTML file 2. Complete CSS stylesheet 3. JavaScript for interactivity 4. Deployment guide
π How to Customize the Template
| Placeholder | What to Replace | Example |
|---|---|---|
[SITE_TYPE] |
What kind of site? | "art portfolio" |
[VIBE] |
The aesthetic style | "sunset-inspired" |
[VIBE_DETAILS] |
Specific vibe description | "warm gradients, golden hour colors" |
[PAGE_LIST] |
All pages needed | "Home, Work, About, Blog, Contact" |
[EXAMPLE_LINK] |
Navigation example | "projects.html" |
π Case Study: The Sunset Portfolio
We used this template to build a stunning sunset-themed art portfolio. Here's what we created:
π Project Structure
sunset-portfolio/ βββ index.html # Homepage with hero, featured work, testimonials βββ projects.html # Gallery with category filtering βββ about.html # Artist story, values, stats, services βββ blog.html # Blog listing with sample posts βββ contact.html # Contact form with validation βββ css/ β βββ styles.css # Complete design system (21KB) βββ js/ β βββ main.js # All interactivity (12KB) βββ images/ # Portfolio images
Repository: https://github.com/ib3rt/sunset-portfolio
π― Vibe Coding Best Practices
- Start with a Clear Vision β Define your site type, vibe, pages, and audience before prompting.
- Break It Down β Use chained prompting: architecture β CSS β HTML β JS β review.
- Iterate and Refine β The AI isn't perfect. Ask for improvements.
- Focus on World-Class Polish β Always include accessibility, performance, and SEO.
π Making Your Vibe More Engaging
Design elements that boost engagement:
β¨ Engagement Boosters
- Gradients: CSS `linear-gradient` with animation
- Micro-interactions: `:hover` states with transitions
- Parallax: Scroll-linked animations
- Dark mode: CSS variables + JS toggle
- Reveal animations: Intersection Observer API
π± Mobile Testing Checklist
- β Touch targets β₯48px
- β No horizontal scroll
- β Hamburger menu works
- β Images lazy load properly
- β Typography scales with viewport
- β Dark mode toggle accessible
- β Forms work on mobile
π SEO Optimization Guide
Include these in every prompt:
- Unique title tag per page
- Meta description per page
- Open Graph tags for social sharing
- Canonical URLs
- Semantic HTML5 structure
- Alt text on all images
- Structured data (JSON-LD)
π Lesson Exercises
- Customize the Template β Fill out the universal prompt for your project.
- Generate a Spec β Create site architecture from your prompt.
- Build One Page β Implement just the homepage.
- Add Polish β Enhance with animations, dark mode, accessibility.
- Deploy β Push to GitHub and enable auto-deployment.
π Your Challenge
Create your own vibe-coded site using this template! Start with this prompt:
"Design a multi-page [YOUR_PROJECT] with a [YOUR_VIBE] vibe ([VIBE_DETAILS]). Include [PAGES] and [FEATURES]..."