Skip to content

Repository files navigation

Astro Landing Kit

CI Deploy GitHub Pages License: MIT

A collection of high-converting, accessible and fast landing page templates built with Astro, Tailwind CSS and TypeScript.

Every template is optimized for Core Web Vitals, SEO and accessibility out of the box.

Live demo

πŸš€ lospaccabit.github.io/astro-landing-kit

Template Description Preview
SaaS Starter Clean, conversion-focused landing page for SaaS products. /saas-starter
Product Launch Early-access page designed to capture waitlist signups. /product-launch
Agency & Services Professional page for agencies, consultancies and service businesses. /agency-services

Features

  • ⚑ Astro 6 with static site generation and zero JavaScript by default
  • 🎨 Tailwind CSS 4 with a customizable design-token system
  • πŸ”’ TypeScript in strict mode
  • πŸ“„ Content Collections for template configuration and validation with Zod
  • πŸ” SEO ready: sitemap, canonical URLs, Open Graph, Twitter Cards, JSON-LD
  • β™Ώ Accessible: semantic HTML, focus states, reduced-motion support
  • πŸŒ“ Dark-mode ready design tokens
  • πŸ§ͺ Vitest for unit tests
  • πŸš€ CI/CD with GitHub Actions
  • 🌐 Hosted on GitHub Pages

Tech stack

Layer Technology
Framework Astro 6
Language TypeScript 5+
Styling Tailwind CSS 4
Icons SVG / Lucide Astro
Schema Zod
Testing Vitest
CI/CD GitHub Actions
Deploy GitHub Pages

Project structure

astro-landing-kit/
β”œβ”€β”€ .github/                 # Workflows, issue templates, funding
β”œβ”€β”€ .github/workflows/       # CI/CD pipelines
β”œβ”€β”€ public/                  # Static assets (favicon, robots.txt, images)
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ layout/          # Header, Footer, Container
β”‚   β”‚   β”œβ”€β”€ sections/        # Hero, Features, CTA, etc.
β”‚   β”‚   └── ui/              # Button, Card, Badge atoms
β”‚   β”œβ”€β”€ content/
β”‚   β”‚   β”œβ”€β”€ config.ts        # Zod schemas for templates
β”‚   β”‚   └── templates/       # JSON data for each template
β”‚   β”œβ”€β”€ layouts/
β”‚   β”‚   └── Layout.astro     # Root layout with SEO meta tags
β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   β”œβ”€β”€ index.astro      # Template showcase
β”‚   β”‚   └── [template].astro # Dynamic template renderer
β”‚   β”œβ”€β”€ styles/
β”‚   β”‚   └── global.css       # Tailwind entry + design tokens
β”‚   β”œβ”€β”€ types/
β”‚   β”‚   └── index.ts         # Shared TypeScript types
β”‚   └── utils/
β”‚       └── seo.ts           # SEO helpers
β”œβ”€β”€ astro.config.mjs
β”œβ”€β”€ package.json
β”œβ”€β”€ tsconfig.json
└── README.md

Getting started

Prerequisites

  • Node.js 22+
  • pnpm 9+

Install

git clone https://github.com/loSpaccaBit/astro-landing-kit.git
cd astro-landing-kit
pnpm install

Development

pnpm dev

Open http://localhost:4321.

Build

pnpm build

Lint & type check

pnpm lint        # astro check
pnpm type-check  # tsc --noEmit

Tests

pnpm test

Customizing a template

Templates are defined as JSON files in src/content/templates/. Each template follows the Zod schema declared in src/content/config.ts.

To add a new template:

  1. Create src/content/templates/my-template.json.
  2. Fill in title, description, category, hero, features, etc.
  3. Run pnpm dev and visit /my-template.

Deployment

GitHub Pages (recommended)

The repository includes a GitHub Actions workflow that builds and deploys the site to GitHub Pages on every push to main.

  1. Fork or clone the repository on GitHub.
  2. Go to Settings β†’ Pages and set the source to GitHub Actions.
  3. Push to main. The workflow will publish the site to https://<username>.github.io/astro-landing-kit/.

Vercel / Netlify / Cloudflare Pages

The project is static and can be deployed to any static host. Build command: pnpm build, output directory: dist.

Roadmap

  • Dark mode toggle
  • Additional sections (Team, Contact, Blog)
  • More templates (Personal Brand, E-commerce, Event)
  • Lighthouse CI integration
  • Storybook for UI components

Contributing

Please read CONTRIBUTING.md and CODE_OF_CONDUCT.md before contributing.

License

MIT Β© Francesco Nocerino


Built with ❀️ by loSpaccaBit.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages