Back to Tutorials
30 min
Intermediate
Building a Modern Landing Page
Create a beautiful, responsive landing page with hero sections, features, testimonials, and a call-to-action. Learn layout techniques and component composition.
Introduction
In this tutorial, you'll build a complete landing page with multiple sections: a hero section, features grid, testimonials, and a call-to-action. You'll learn how to compose complex layouts and make them responsive.
1Set Up Your Project
- Create a new project called "Landing Page Tutorial"
- Start with a clean canvas
2Create the Hero Section
2.1 Main Container
- Drag a Div onto the canvas - this will be your hero container
- Select it and in Layout:
- Width:
100% - Min Height:
600px - Padding:
80px 40px - Display:
Flex - Flex Direction:
Column - Align Items:
Center - Justify Content:
Center
- Width:
- In Background, set a dark color or gradient
2.2 Hero Heading
- Add a Text element inside the hero container
- Set text to: "Build Amazing Websites Faster"
- Style it:
- Font Size:
64px(or6xl) - Font Weight:
Bold - Text Align:
Center - Color:
White - Max Width:
800px - Margin Bottom:
24px
- Font Size:
2.3 Hero Subtitle
- Add another Text element
- Set text to: "The visual web builder that generates clean, production-ready code"
- Style it:
- Font Size:
20px - Color:
#999(light gray) - Text Align:
Center - Max Width:
600px - Margin Bottom:
40px
- Font Size:
2.4 CTA Buttons
- Add a Div container for buttons
- Set Display:
Flex, Gap:16px - Add a Button element:
- Text: "Get Started"
- Background:
#3b82f6(blue) - Text Color:
White - Padding:
12px 32px - Border Radius:
8px - Font Weight:
600
- Add another button for "Learn More" with outlined style
3Features Section
3.1 Section Container
- Add a new Div below the hero (outside of hero container)
- Style it:
- Width:
100% - Max Width:
1200px - Margin:
0 auto(centers it) - Padding:
80px 40px
- Width:
3.2 Section Heading
- Add a Text element: "Features"
- Center align it, Font Size:
48px, Bold, Margin Bottom:16px - Add a subtitle: "Everything you need to build faster"
3.3 Features Grid
- Add a Div container
- Set Display:
Grid - Grid Template Columns:
repeat(3, 1fr) - Gap:
32px - For each feature (3 total):
- Add a Div (feature card)
- Add padding, border radius, background
- Add a heading (Text element)
- Add a description (Text element)
4Testimonials Section
- Create another section container (similar to features)
- Add a heading: "What Users Say"
- Create a grid with 2-3 testimonial cards
- Each card should have:
- Quote text
- Author name
- Author role/company
5Final CTA Section
- Add a final section with background color
- Center a heading: "Ready to Get Started?"
- Add a button: "Start Building Now"
- Style it prominently
6Make It Responsive
For mobile responsiveness:
- Select your features grid container
- In responsive mode (mobile view), change Grid Columns to
1fr(single column) - Adjust padding on mobile to
40px 20px - Reduce font sizes for mobile (e.g., hero heading to
36px)
7Preview and Refine
- Click Preview to see your landing page
- Test on different device sizes
- Make adjustments as needed
Congratulations!
You've built a complete landing page! You've learned:
- How to create multiple sections
- How to use flexbox and grid layouts
- How to style components consistently
- Basic responsive design principles
Next Steps
- Learn to add interactive components
- Add animations to make it more dynamic
- Connect it to data sources