Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A generic Next.js landing page template with static HTML export, PWA support, and flexible theming.
nextjs-generic-landing-page is a free, open-source boilerplate for building landing pages and simple websites with Next.js, offering both hosted Next.js deployment and static HTML export through its yarn export command.
nextjs-generic-landing-page is a generic landing page template built in Next.js (React) that supports static site generation (SSG) with getStaticProps or server-side rendering (SSR) with getServerSideProps. It takes configuration from config/config.js and .env.local and outputs either a live Next.js site or pure HTML pages in an out directory after running yarn export. The project is created by Tom Soderlund and is also distributed as the npm package nextjs-generic-landing-page, which exposes React components like Headline and Video for import into other projects.
yarn export to generate pure HTML in out/, deployable to any static hosting service without a Node runtime.google-site-verification from config/config.js and .env.local.manifest.json, making it ready for installable web app enhancements.public/theme.css; structural styles live in public/app.css, and fonts are added in components/page/PageHead.js.yarn lint/yarn fix and a Jasmine unit test scaffold (yarn unit, noted as not yet included).nextjs-generic-landing-page.vercel.app.nextjs-generic-landing-page is aimed at developers who want a React-based frontend without starting from scratch. A developer can clone the repository, remove the .git folder and sample assets, then run yarn dev to immediately work on a landing page. Teams that need static output can use yarn export and host the resulting HTML on any server. The npm package also suits developers who only want specific components, like a pricing table or video section, inside an existing Next.js app.
config/config.js without editing React components.out/ folder of plain HTML and test it locally with python -m SimpleHTTPServer.The README explains two usage paths. First, clone the entire project, remove template leftovers with rm -rf .git docs/ public/features/*.jpg, install dependencies via yarn, then run yarn dev for development or yarn export for static output. Second, install nextjs-generic-landing-page from npm and import individual components in your own code, with examples in pages/index.js.
Yes, it is an open-source template hosted on GitHub. The author also includes a Ko-Fi donation link for those who find the project useful.
The README explicitly recommends nextjs-pwa-firebase-boilerplate for a complete PWA web app with a database. This template focuses on landing pages and simple websites.
You can delete pages/standalone.js, components/index.js, and the components/landing and components/social directories to strip it down to a plain Next.js boilerplate.
The nextjs-generic-landing-page npm package exports components such as Headline and Video that you can import into your own Next.js project, alongside a full example page.
