项目模板·Pro
静态落地页
纯 HTML 和 CSS 编写的单页网站:带折叠菜单的页头、首屏、功能网格、常见问题和页脚。颜色跟随系统的浅色或深色模式。无需构建,也不需要 Linux:打开 index.html,点地球图标即可。
安装它需要 PocketCode Pro。
如果你的 Android 设备上装了 PocketCode,这会在应用里打开此页面。
预览
文件
README.md
assets/logo.svg
index.html
script.js
styles.cssREADME.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 的变更
首个版本。