Lesson 10 ยท the FINAL BOSS ๐พ ยท about 60 minutes
๐พ FINAL BOSS: Vibe Code With AI โ and Understand Every Line
This is the mission you started with: get an AI to build a landing page for your product, then prove you understand exactly what it wrote. Everything you learned was training for this fight.
๐ฌ Watch first (90 seconds)
The secret weapon you built
Most people who vibe code get stuck the moment something breaks, because the AI's code is a mystery box to them. Not you. You now know:
- ๐งฑ HTML โ tags, elements, attributes, the skeleton, semantic boxes (L1โL4, L9)
- ๐จ CSS โ selectors, the box model, flexbox (L5โL7)
- โก JavaScript โ find a brick, listen for a click, change something (L8)
โ๏ธ Boss fight โ round 1: Ask like a pro
Open your AI (Claude!) and ask it to build a landing page. But a pro prompt beats "make me a website". A pro prompt says what, for whom, and what parts:
Build a landing page for my product "Robo Sneakers" โ
shoes for kids that tie themselves.
I want:
- a hero section with a big headline and a Buy button
- 3 feature cards side by side (use flexbox)
- a footer
- one HTML file only, with the CSS in a <style> tag
and the JavaScript in a <script> tag
- when I click Buy, show a fun message
See what you did there? You just used the words hero, cards, flexbox, footer โ you speak the AI's language now. Save what it gives you as practice/ai-landing.html and open it in your browser.
๐ Boss fight โ round 2: The Code Detective checklist
Now open the AI's code in VS Code and hunt for each of these. Tick them off โ for real, on paper or out loud:
- Find the skeleton:
<!DOCTYPE html>,<head>,<body>. (Lesson 2) - Find where the CSS lives and pick ONE rule. Say out loud: who does it select, what does it change? (Lesson 5)
- Find a box-model property โ padding, margin, or border-radius โ and predict what happens if you double it. Then do it. Were you right? (Lesson 6)
- Find the
display: flex. Which element is the track, and which are the train cars? (Lesson 7) - Find the JavaScript. Point to: where it finds the button, where it listens for the click, and what it changes. (Lesson 8)
- Find ONE thing you've never seen before. Ask the AI: "Explain this line like I'm 10." That question is a superpower โ use it forever.
๐ ๏ธ Boss fight โ round 3: Take control
Prove the page is YOURS, not the AI's. Make these three changes by hand, without asking the AI:
- Change the hero background color.
- Add a 4th feature card (copy a card element, edit the words).
- Change what the Buy button says when clicked.
} missing? These three catch 90% of all bugs โ even for grown-up engineers.
๐น๏ธ Can you read AI code? Prove it!
Below is a real chunk of AI-style code. Read it, then answer the quiz UNDER it. No running it โ just your eyes and your brain. This is the actual final exam.
<section class="hero">
<h1>Mega Slime 3000</h1>
<p>The only slime that glows in the dark.</p>
<button id="order-btn">Order now</button>
<p id="thanks"></p>
</section>
<style>
.hero {
background-color: #222;
color: white;
text-align: center;
padding: 60px;
}
#order-btn {
background-color: gold;
border: none;
padding: 12px 24px;
border-radius: 999px;
}
</style>
<script>
const btn = document.getElementById("order-btn");
btn.addEventListener("click", function () {
document.getElementById("thanks").textContent = "๐ Order received!";
});
</script>
โ๏ธ The last task: fix the AI's bug
AIs write bugs too! This AI code has one sneaky bug that makes the button do nothing. You've fixed this exact kind of bug before. Find it:
๐ Did you win?
You beat the final boss if ALL of these are true:
- โ
An AI built
ai-landing.htmlfrom YOUR prompt for YOUR product - โ You found the skeleton, a CSS rule, the flexbox, and the JS click-listener in its code
- โ You changed the color, added a card, and changed the button message โ by hand
- โ You scored 4/4 on the reading quiz above
If yes: you did it. That was the whole mission. Tell your teacher (me!) โ I'll write it into your learning records, and we'll pick your next adventure (publishing your page on the real internet? making it look good on phones? a game?).