Skip to content
Project template·Pro

Static landing page

A one-page site in plain HTML and CSS with a header and folding menu, a hero, a feature grid, an FAQ and a footer. Colours follow the system's light or dark setting. There is no build step and it doesn't need Linux: open index.html and tap the globe icon.

You need PocketCode Pro to install it.

If PocketCode is installed on your Android device, this opens the page in the app.

Preview

Files

README.md
assets/logo.svg
index.html
script.js
styles.css

README.md

# Static landing page A one-page site in plain HTML and CSS: a header whose menu folds on narrow screens, a hero, a feature grid, an FAQ and a footer. Light and dark colours follow the system setting. There is no build step and no dependencies. ## Run it in PocketCode 1. Open `index.html` in the editor. 2. Tap the globe icon (DevBrowser) at the top of the editor. The page opens from the app's local preview server. 3. Edit a file, save it and reload the DevBrowser to see the change. You don't need the Linux environment for this project. ## Where things are | Path | What it does | |---|---| | `index.html` | The page: header, hero, features, FAQ, footer | | `styles.css` | All the styles. Colours are variables at the top (`:root`) | | `script.js` | Two small things: the year in the footer and closing the menu after a tap | | `assets/logo.svg` | The logo in the header. Replace it with yours | ## Change it - Colours: edit the variables in `:root` (light) and in the `prefers-color-scheme: dark` block (dark). - Texts: everything is in `index.html`. The FAQ uses `<details>`, so it opens and closes without JavaScript. - Width of the content: `--max-width` in `styles.css`. ## Publish it Any static host works (GitHub Pages, Netlify, Cloudflare Pages): upload the folder as it is.

Changes in 1.0.0

First version.

Related

404 page (HTML + CSS)FreePageA "page not found" page in one HTML file. Save it as 404.html on your static site. It links to your home page and to a page for reporting the broken link, and shows a back button when there is a previous page. Light or dark follows the system.Markdown static siteProProject templateWrite pages in Markdown and build them into a static HTML site with a shared layout and menu. The build is about 110 lines of Node.js you can edit, and its only package is marked. You open the result in the DevBrowser. The first npm install needs the Linux environment.Next.js + Tailwind + i18nProProject templateNext.js 15 project with next-intl and Tailwind CSS, and one page in English and Spanish at /en and /es. Dark mode follows the system. Needs the Linux environment with Node.js; the first npm install downloads around 400 MB.HTML and CSS snippetsFreeSnippets8 HTML snippets (landmarks, Open Graph tags, picture, dialog, a table with headers) and 12 CSS ones (reset, grid layouts, clamp, dark mode variables, reduced motion, container queries).Flask + SQLite web appProProject templateA reading list in Flask with server-rendered pages and plain forms, SQLite storage and a small JSON API. The tests use Flask's test client. It needs Python and pip in the Linux environment and installs 7 pinned packages.Rust CLI: line counterProProject templateA command-line tool in Rust that counts code, comment and blank lines per language in a folder. It's a Cargo project with no dependencies and has unit tests. It needs Rust and Cargo in the Linux environment (about 370 MB).