- Build complete HTML structure
- Apply CSS styling and layouts
- Implement JavaScript animations
- Create responsive web pages
- Combine HTML, CSS, and JavaScript in one project
Clone the OpenAI landing page based on the reference image. This quiz is special because you'll be building an actual website!
Create a working clone of the OpenAI landing page with:
- HTML - Page structure and layout
- CSS - Styling, colors, and layout
- JavaScript - Animations and interactions
Check public/snapshot.png for the complete design reference.
- OpenAI logo
- "Log in" button on the right
- Fixed sidebar with navigation links:
- Research
- Safety
- For developers
- ChatGPT
- Blog
- About
- Careers
- Contact
- Large blue gradient background
- Title: "The OpenAI Foundation"
- Description text
- Two buttons:
- "Watch livestream" (primary)
- "Learn more" (secondary)
- Grid of cards with icons and descriptions
- Chat, DevDay, Company Knowledge cards
- News cards with thumbnails
- Titles and metadata
- Multiple columns with links
- Social media icons
- Copyright notice
- Background: Black (#000000)
- Text: White
- Accents: Blue gradients (#667eea, #764ba2)
- Clean, modern sans-serif font
- Multiple font sizes for hierarchy
Buttons:
- Hover effect: Slight lift and glow
- Smooth transitions
Sidebar Links:
- Hover effect: Background change and slight translation
- Smooth color transitions
Cards:
- Hover effect: Lift slightly
- Shadow effect
13-html-css-js/
├── index.html # Your implementation
├── styles.css # Your CSS
├── script.js # Your JavaScript
├── index.solution.html # Solution HTML
├── styles.solution.css # Solution CSS
├── script.solution.js # Solution JavaScript
└── public/
└── snapshot.png # Reference image
cd 13-html-css-js
# Open index.html in your browser
open index.htmlcd 13-html-css-js
npx serve . --port 3000
# Open http://localhost:3000cd 13-html-css-js
pnpm startBuild semantic HTML:
<header>for top bar<aside>for sidebar<main>for content sections<footer>for footer- Use semantic tags:
<nav>,<article>,<section>
Create dark theme with:
- Black background
- White text
- Blue gradients for accents
- Modern button styles
- Grid layouts
Add interactivity:
- Button hover effects
- Sidebar link animations
- Smooth transitions
- Card hover effects
/* Gradients */
background: linear-gradient(135deg, #667eea, #764ba2);
/* Transitions */
transition: all 0.3s ease;
/* Transform */
transform: translateY(-2px);
/* Box Shadow */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);// Query Selector
const button = document.querySelector('.btn');
// Event Listener
button.addEventListener('mouseenter', function() {
// Add hover effect
});
// Class Manipulation
element.classList.add('active');
element.classList.remove('active');Your clone will be evaluated on:
- ✅ HTML structure matches the layout
- ✅ CSS styling matches the design
- ✅ JavaScript animations work smoothly
- ✅ Button hover effects implemented
- ✅ Sidebar animations implemented
- ✅ Responsive layout
- ✅ Overall visual similarity
- Start with HTML - Build the structure first
- Add CSS - Style section by section
- Add JavaScript last - Animate the completed page
- Use the reference image - Compare constantly
- Test in browser - See it come to life!
- Make it responsive (mobile-friendly)
- Add smooth scrolling
- Add parallax effects
- Create a working sidebar toggle
- Add more interactive elements
Happy cloning! 🎨