← Back to all products
$29
Landing Page Templates
Production-ready HTML landing page templates optimized for conversion and mobile responsiveness.
PythonMarkdownJSON
Product Preview
Try the interactive reader and demo tools below, or get the full product with all content unlocked.
Interactive Reader (Free Preview) ⚙ Try Demo Tools Download Free SampleFile Structure 14 files
landing-page-templates/
├── LICENSE
├── README.md
├── examples/
│ └── page_config.json
├── free-sample.zip
├── guide/
│ ├── 01_features.md
│ ├── 02_cli-reference.md
│ └── 03_examples.md
├── index.html
├── interactive.html
├── src/
│ ├── __pycache__/
│ │ └── landing_page_templates.cpython-312.pyc
│ └── landing_page_templates.py
└── tests/
├── __pycache__/
│ └── test_landing_page_templates.cpython-312-pytest-9.0.2.pyc
└── test_landing_page_templates.py
Documentation Preview README excerpt
Landing Page Templates
Part of the Landing Lab by CodeVault
Generate responsive, production-ready HTML landing pages from simple JSON config files. Choose from 15+ template styles and customise everything — colours, copy, sections, CTAs — without touching raw HTML.
Features
- 15+ template styles: hero, SaaS, product, portfolio, coming-soon, and more
- Fully responsive (mobile-first CSS with media queries)
- Custom brand colours, fonts, and typography via JSON config
- Modular sections: features grid, testimonials, pricing, FAQ, CTA banners
- SEO meta tags and Open Graph support built in
- Self-contained HTML output — no external dependencies
- Pure CSS animations (no JavaScript framework needed)
- Python stdlib only — zero pip dependencies
Quick Start
# Generate a landing page from a config file
python src/landing_page_templates.py --config examples/page_config.json
# Use a specific template style
python src/landing_page_templates.py --config examples/page_config.json --template saas
# Write output to file
python src/landing_page_templates.py --config examples/page_config.json --output index.html
# List all available templates
python src/landing_page_templates.py --list-templates
CLI Reference
| Flag | Description |
|---|---|
--config, -c | Path to the JSON config file (required) |
--template, -t | Template style (default: hero) |
--output, -o | Output file path (default: stdout) |
--list-templates | List all available templates and exit |
--verbose, -v | Enable verbose logging |
Configuration
See examples/page_config.json for a complete example. Key fields:
| Field | Description |
|---|---|
site_name | Your brand name |
headline | Hero section main headline |
subheadline | Supporting text under the headline |
brand_color | Primary accent colour (hex) |
hero_cta_text | Call-to-action button text |
hero_cta_url | CTA button link target |
sections | Array of content sections (features, testimonials, pricing, FAQ, CTA) |
footer_text | Footer copyright text |
meta_description | SEO meta description |
Examples
... continues with setup instructions, usage examples, and more.
Code Sample .py preview
src/landing_page_templates.py
#!/usr/bin/env python3
"""
Landing Page Templates — Landing Lab by DataNest
Render responsive, production-ready HTML landing pages from simple JSON
configuration files. Choose from 15+ template styles (hero, SaaS, product,
portfolio, etc.) and customize colours, copy, sections, and CTAs without
touching raw HTML.
Why this exists:
Starting a landing page from scratch means wrestling with boilerplate
HTML/CSS for hours before you even write a headline. This tool lets you
describe your page in a JSON config and instantly get a complete,
responsive HTML file ready for deployment.
Usage:
python landing_page_templates.py --config page.json
python landing_page_templates.py --config page.json --template saas
python landing_page_templates.py --config page.json --output index.html
python landing_page_templates.py --list-templates
License: MIT
"""
from __future__ import annotations
import argparse
import html
import json
import logging
import sys
from dataclasses import dataclass, field
from pathlib import Path
from typing import Any
# ---------------------------------------------------------------------------
# Constants
# ---------------------------------------------------------------------------
LOG = logging.getLogger("landing-page-templates")
# All available template names and their one-line descriptions
TEMPLATE_CATALOG: dict[str, str] = {
"hero": "Full-screen hero image with headline and CTA",
"saas": "SaaS product page with features grid and pricing",
"product": "Single product showcase with gallery and buy button",
"portfolio": "Portfolio / personal brand with project cards",
"coming-soon": "Pre-launch teaser with email capture",
"waitlist": "Waitlist sign-up with countdown timer",
"ebook": "E-book / lead magnet download page",
# ... 484 more lines ...