Skip to content

LandingLayout

LandingLayout provides a minimal chrome layout for marketing pages with full-width sections.

---
import LandingLayout from '@/layouts/LandingLayout.astro';
import Hero from '@/components/landing/Hero.astro';
import Features from '@/components/landing/Features.astro';
import CTA from '@/components/landing/CTA.astro';
---
<LandingLayout
title="Welcome to Our Product"
description="The best solution for your needs"
>
<Hero />
<Features />
<CTA />
</LandingLayout>

Inherits all props from BaseLayout.

PropTypeDefaultDescription
showNavbarbooleantrueShow landing navbar
showFooterbooleantrueShow landing footer

A specialized navbar for landing pages:

  • Transparent background
  • Compact design
  • CTA button
  • Scrolls to sections

No container constraints - sections can span full width:

<LandingLayout title="Landing">
<!-- Full-width hero with gradient -->
<section class="bg-gradient-to-b from-gray-50 to-white py-24">
<div class="container">
<!-- Contained content -->
</div>
</section>
<!-- Full-width dark section -->
<section class="bg-surface-invert py-24">
<div class="container">
<!-- Content on dark background -->
</div>
</section>
</LandingLayout>

Simplified footer for conversions:

  • CTA section
  • Minimal links
  • Social proof
<section class="py-24 lg:py-32">
<div class="container text-center">
<h1 class="text-5xl font-bold mb-6">
Build Faster with Velocity
</h1>
<p class="text-xl text-foreground-muted mb-8 max-w-2xl mx-auto">
A production-ready Astro starterkit
</p>
<div class="flex gap-4 justify-center">
<Button size="lg">Get Started</Button>
<Button size="lg" variant="outline">Learn More</Button>
</div>
</div>
</section>
<section class="py-24 bg-background-secondary">
<div class="container">
<h2 class="text-3xl font-bold text-center mb-12">Features</h2>
<div class="grid md:grid-cols-3 gap-8">
<Card structured title="Feature 1" description="Description" />
<Card structured title="Feature 2" description="Description" />
<Card structured title="Feature 3" description="Description" />
</div>
</div>
</section>
<section class="py-24 bg-surface-invert">
<div class="container text-center">
<h2 class="text-3xl font-bold text-on-invert mb-4">
Ready to Get Started?
</h2>
<p class="text-on-invert-muted mb-8">
Join thousands of developers building with Velocity
</p>
<Button colorScheme="invert" size="lg">
Start Free Trial
</Button>
</div>
</section>
ComponentPurpose
Hero.astroMain hero section
Credibility.astroSocial proof and trust
LighthouseScores.astroPerformance metrics
TechStack.astroTechnology showcase
FeatureTabs.tsxInteractive features
Navbar.astroLanding navigation
LandingFooter.astroLanding footer
CTA.astroCall-to-action section