跳转到内容
项目模板·Pro

静态落地页

纯 HTML 和 CSS 编写的单页网站:带折叠菜单的页头、首屏、功能网格、常见问题和页脚。颜色跟随系统的浅色或深色模式。无需构建,也不需要 Linux:打开 index.html,点地球图标即可。

安装它需要 PocketCode Pro。

如果你的 Android 设备上装了 PocketCode,这会在应用里打开此页面。

预览

文件

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.

1.0.0 的变更

首个版本。

相关

404 页面(HTML + CSS)免费页面单个 HTML 文件的“页面未找到”页面。在静态网站里保存为 404.html。页面上有回到首页和报告失效链接的链接,有上一页时还会显示返回按钮。浅色或深色跟随系统设置。Markdown 静态网站Pro项目模板用 Markdown 写页面,再构建成带统一布局和菜单的静态 HTML 网站。构建脚本约 110 行 Node.js,可以随意修改,唯一的依赖是 marked。在 DevBrowser 中打开结果。首次 npm install 需要 Linux 环境。Next.js + Tailwind + i18nPro项目模板Next.js 15 项目,带 next-intl 和 Tailwind CSS,在 /en 和 /es 提供一个英语和西班牙语页面。深色模式跟随系统。需要带 Node.js 的 Linux 环境;首次 npm install 约下载 400 MB。HTML 与 CSS 代码片段免费代码片段8 个 HTML 代码片段(页面地标、Open Graph 标签、picture、dialog、带表头的表格)和 12 个 CSS 代码片段(重置样式、grid 布局、clamp、深色模式变量、减少动效、容器查询)。Flask + SQLite 网页应用Pro项目模板用 Flask 写的阅读清单:服务端渲染页面和普通表单,数据存入 SQLite,另有一个小型 JSON API。测试使用 Flask 的测试客户端。需要 Linux 环境中的 Python 和 pip,会安装 7 个固定版本的包。Rust 命令行:行数统计Pro项目模板用 Rust 写的命令行工具,按语言统计文件夹里的代码行、注释行和空行。这是一个没有依赖的 Cargo 项目,带单元测试。需要 Linux 环境中的 Rust 和 Cargo(约 370 MB)。