# SaaS landing page

A free SaaS landing page template built with Astro, TypeScript and Tailwind CSS 4 that publishes as a static site with no client JavaScript beyond a theme toggle. It has a hero with a product screenshot drawn in SVG, features, how it works, pricing with a monthly and annual switch, sample testimonials, an FAQ, a sign-up form, a changelog and a blog with RSS, all written in YAML and Markdown.

- Framework: Astro (JavaScript)
- Category: Websites / Landing pages
- Creates: a static site
- Plan: Free
- Price: Free
- Author: Light Cloud
- Page: https://templates.light-cloud.com/websites/landing/saas-landing-page-template
- Updated: 2026-11-21

## Features

- The whole landing page from content/site.yaml: hero, problem and solution, six features, how it works, who it is for, pricing, FAQ and call to action
- A product screenshot drawn in SVG from demo data, so the totals add up, it follows the theme and stays sharp until you add a real one
- Pricing with a monthly and annual switch built from radio buttons and CSS, with savings worked out from your prices
- Sign-up form that posts to your app, Formspree or a waitlist tool, or opens the visitor's email app when no endpoint is set
- Changelog from one Markdown file per release, and a Markdown blog with cover photos, authors and an RSS feed
- A 1200 x 630 sharing image for every page, generated at build time with satori
- SoftwareApplication with an offer per plan, Organization, FAQPage, BlogPosting and BreadcrumbList structured data, sitemap.xml and /llms.txt
- WCAG 2.2 AA in light and dark mode, checked with axe-core, and Lighthouse 100 on mobile for the home page, blog, a post and the changelog

## What you need

- Free plan: it builds to a static site, which the Free plan hosts with no limit on sites
- To run it locally: Node.js 22.18 or later and npm
- Optional: PUBLIC_SIGNUP_ENDPOINT, your sign-up handler or a Formspree URL; without it the form opens the visitor's email app
- Optional: SITE_URL, your public address for canonical links, sharing images, the sitemap and the RSS feed

## About

Every word of the landing page lives in content/site.yaml, with one Markdown file per release in content/changelog/ and per post in content/blog/; Astro content collections check them at build time, so a missing price or alt text stops the build with the file and field named. The demo is Shift Rota Planner, a staff rota app for cafés, care homes and pubs. Its testimonials are labelled as samples, and the structured data has no star rating until you have real reviews. The privacy and terms pages are placeholders kept out of search until you replace them, and the three blog posts summarise UK employment law, so check them before you reuse them. Colours are light-dark() CSS variables, which need Safari 17.5 or later; npm run build writes the site to dist/.

## Questions

### How do I make a SaaS landing page with Astro?

Clone this template, write your product, sections, prices and questions in content/site.yaml, and run npm run build. You get a static landing page with pricing, an FAQ, a changelog, a blog and structured data, ready for any static host.

### How do I add a monthly and annual pricing toggle without JavaScript?

Use two radio buttons and a CSS :has() rule that shows the annual prices when the annual button is checked, as src/components/Pricing.astro does. It works with the keyboard and without JavaScript, and both prices stay in the HTML for search engines.

### How do I connect a landing page sign-up form to Formspree or my own backend?

Set PUBLIC_SIGNUP_ENDPOINT to the form endpoint and rebuild; the form then posts name, email, business, staff number and sector there. Set the endpoint's redirect to /thanks/ so visitors land back on your site.

### How do I replace the product screenshot?

Save your screenshot in src/assets/ and put an Astro Image with a descriptive alt inside src/components/ProductShot.astro. Until you have one, edit the demo shifts in src/components/mock/rota.ts and the drawn screenshot updates its totals.

### Can I host this landing page without Light Cloud?

Yes. Run npm run build and upload dist/ to any static host such as Netlify, Cloudflare Pages or S3 with CloudFront. Each page is a real HTML file, such as dist/changelog/index.html.
