From f88225469bd806783f3c9f5b80f2a3211a2e3435 Mon Sep 17 00:00:00 2001 From: cnluminous Date: Tue, 27 Oct 2026 11:53:04 +0800 Subject: [PATCH] first commit --- .env.example | 20 + .gitignore | 27 ++ .npmrc | 4 + README.md | 32 ++ index.html | 20 + package-lock.json | 798 ++++++++++++++++++++++++++++++++ package.json | 16 + public/favicon.svg | 1 + public/icons.svg | 24 + public/runtime-config.js | 2 + scripts/write-runtime-config.js | 21 + src/assets/hero.png | Bin 0 -> 13057 bytes src/assets/javascript.svg | 1 + src/assets/vite.svg | 1 + src/counter.js | 9 + src/main.js | 190 ++++++++ src/site-config.js | 57 +++ src/style.css | 224 +++++++++ staytunedsite.iml | 8 + vite.config.js | 19 + 20 files changed, 1474 insertions(+) create mode 100644 .env.example create mode 100644 .gitignore create mode 100644 .npmrc create mode 100644 README.md create mode 100644 index.html create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 public/favicon.svg create mode 100644 public/icons.svg create mode 100644 public/runtime-config.js create mode 100644 scripts/write-runtime-config.js create mode 100644 src/assets/hero.png create mode 100644 src/assets/javascript.svg create mode 100644 src/assets/vite.svg create mode 100644 src/counter.js create mode 100644 src/main.js create mode 100644 src/site-config.js create mode 100644 src/style.css create mode 100644 staytunedsite.iml create mode 100644 vite.config.js diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..590e1be --- /dev/null +++ b/.env.example @@ -0,0 +1,20 @@ +# Copy to .env or .env.local, then restart the development server / rebuild. +# These are PUBLIC display values, also available as process ENV at runtime. + +VITE_PROJECT_NAME="未完待续" +VITE_PROJECT_NAME_EN="STAY TUNED" +VITE_PROJECT_DESCRIPTION="一个新想法,正在慢慢成为现实。\n我们在认真打磨每一个细节,期待很快与你见面。" + +# Empty title derives automatically from the project name. +VITE_PAGE_TITLE="" +VITE_HEADER_NOTE="为下一次相遇,认真准备中。" + +# Supports {year} and {projectName}; empty copyright/footer note hides them. +VITE_COPYRIGHT="© {year} {projectName}" +VITE_FOOTER_NOTE="MADE WITH INTENTION." + +# Empty registration numbers hide the corresponding item. +VITE_ICP_NUMBER="" +VITE_ICP_URL="https://beian.miit.gov.cn/" +VITE_PUBLIC_SECURITY_NUMBER="" +VITE_PUBLIC_SECURITY_URL="" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b50664c --- /dev/null +++ b/.gitignore @@ -0,0 +1,27 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local +.env +.env.* +!.env.example + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..8d9d81a --- /dev/null +++ b/.npmrc @@ -0,0 +1,4 @@ +# Work around npm 10 Arborist crashing on Vite's optional devtools peer graph. +# This project only uses Vite and has no runtime or plugin peer dependencies. +# Upstream: https://github.com/npm/cli/issues/9787 +legacy-peer-deps=true diff --git a/README.md b/README.md new file mode 100644 index 0000000..9c3ff69 --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# 未完待续 · 敬请期待 + +基于 Vite 和原生 JavaScript 的项目上线预告页。暖白底色搭配橙色星球,支持手机与桌面布局、轻量动效、系统分享及复制链接。 + +## 本地开发 + +使用 Node.js 20.19+ 或 22.12+: + +```sh +npm install +npm run dev +``` + +项目的 `.npmrc` 启用了 `legacy-peer-deps`,用于绕过 npm 10 在解析 Vite 可选开发工具同伴依赖时触发的 `Cannot read properties of null (reading 'edgesOut')` 错误。直接运行上述安装命令即可。 + +## 构建与预览 + +```sh +npm run build +npm run preview +``` + +部署时发布 `dist` 目录。 + +## 调整内容 + +- `src/main.js`:品牌名称、页面文案、准备阶段和分享内容。 +- `src/style.css`:颜色变量、星球插画、动效和响应式布局。 +- `index.html`:浏览器标题、页面描述和社交分享元信息。 +- `public/favicon.svg`:网站图标。 + +分享按钮优先调用浏览器的系统分享;不可用时复制链接。复制权限受限时展示可手动复制的链接。页面使用系统字体与 CSS/SVG 插画,无需外部图片或字体服务。 diff --git a/index.html b/index.html new file mode 100644 index 0000000..4f566c1 --- /dev/null +++ b/index.html @@ -0,0 +1,20 @@ + + + + + + + + + + + + + __SITE_TITLE__ + + +
+ + + + diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..c788e58 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,798 @@ +{ + "name": "staytunedsite", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "staytunedsite", + "version": "0.0.0", + "devDependencies": { + "vite": "^8.3.4" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.155.0", + "resolved": "https://registry.npmmirror.com/@oxc-project/types/-/types-0.155.0.tgz", + "integrity": "sha512-SeE8JPwW1xs1tHeNycjUtUBdhorRa8o4jlvjwk49R7/Z291i+4DQa7JJIgOm/TaYQZx+QrPQbVJ/9c8dMIZN8Q==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, + "node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.2.15", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.15.tgz", + "integrity": "sha512-aLcgK9gIJ3YRvrrtfSBbRa27F5WrpiTaPulnFpsHPxpUHgFlSgnU4854MHwoRGEBhfRJDWCS2WQ7lIjskE9Olw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.2.15", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.15.tgz", + "integrity": "sha512-xD7DdZCrbThKuxNg7ooQmvp07ys4J/pnSEMTG3/OdOWl6daC67m/Q4fL78sRHMxTH/N4fGUbYhcPM0MF5WFHkg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.2.15", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.15.tgz", + "integrity": "sha512-m2WuQ6r0B4OTYxyPpNLtXaMRbRDUbG8YQV2Q3KTdSSK8Th6KHCnC8jVCJt8bvYeSB5WivkkNbc85mKadaSdOxA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.2.15", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.15.tgz", + "integrity": "sha512-5RtnsHM36nodM9WbMy+zip0LGS/G+y5wro5RHrpOlr4ac24+1zSi9kiV2MP1myZeZ/ifEHfulQcWjnAXzc2C2A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.2.15", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.15.tgz", + "integrity": "sha512-g3l09pyFqhu+135JKkbkwiKGQmwU5hUMUPJ4VdBADvuqR8d33L6H578rh8m7rtxbdp+VmX/+nzI7nvhSZlzpUQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.2.15", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.15.tgz", + "integrity": "sha512-nIe3VugI97nGQtspPxDqA4sXMUpeiocKIP/CqpY/u/vgbT+alX+cVxu1C/oVBPKg4feNTmYovE91v4DgXvXNwQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.2.15", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.15.tgz", + "integrity": "sha512-iTBjXx+B5QSvgI89lJfmqh4wTh8NabR1YZIIN3hNx4zSG0EVfVqkOvLulNpG4251pbd6/IAmZ/LefVk1Y4rPhw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.2.15", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.15.tgz", + "integrity": "sha512-uN26XOnVR7rqQupG3V9oAG2EGGatWjcJHOeDOHUFCh4TBWmP2tHTFoVN13aYbwfm0aHqJAEmcwhAu6sooIjfqQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.2.15", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.15.tgz", + "integrity": "sha512-9nWkcdd+H+XhaA3fQIwpHnKIrfx/PQ6rO0pivr78Og07tXlUlctBBJoEYLPfhTmCR/QxEVdn6uPjHV5SymPhdw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.2.15", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.15.tgz", + "integrity": "sha512-Ggh0ciFjLwIusLSLz7LZYEaGdxOAUJXI+Qu5JCbhPJJHEt8vP+IjRATTJheiJsdzzTYgUiHUiw3X1Ea3ZpMBdA==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.2.15", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.15.tgz", + "integrity": "sha512-FHg60rS6DBePAYZ9X9F67x+JObFdmgn6tupA1C/a3B+CufFmTD4mX+e8M75tCiAO3foR/6xwVBI0KQiI7sn/rw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.2.15", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.15.tgz", + "integrity": "sha512-/cvV/7v5VGz/moiz0XKRj2dE8DzsKyhIu1KpOvJGPjRywg3yscON889UGvAe8zfiJLHup7VLjBduoGWi3HusWQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.2.15", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.15.tgz", + "integrity": "sha512-MyzC5Hrv/sm+Z7TSGKP/j8001RO2xQm1zOpCNVL4j0cY/VhBZviludA2YFQ7i4lH6ZAXxQm0lcMdBzM+99mE7w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.2.15", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.15.tgz", + "integrity": "sha512-+PgYiS+AH5omy6L45ZLxybasauJaj3M8buoT83D+nzPmCayXlxUV9hydhciCKVyIg0B/v0BtXPDE1uGqNwCPpg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.2.15", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.15.tgz", + "integrity": "sha512-HFZd2QNQYn1JbIi+Hpd7H+r/lkWxcfIu28nirZ6eCn2LafuvmExMlb/P96Sfx5tf7pPArw39IdhmCF8vmV+NhQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "dev": true, + "license": "MIT" + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmmirror.com/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmmirror.com/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/lightningcss": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.33.0", + "lightningcss-darwin-arm64": "1.33.0", + "lightningcss-darwin-x64": "1.33.0", + "lightningcss-freebsd-x64": "1.33.0", + "lightningcss-linux-arm-gnueabihf": "1.33.0", + "lightningcss-linux-arm64-gnu": "1.33.0", + "lightningcss-linux-arm64-musl": "1.33.0", + "lightningcss-linux-x64-gnu": "1.33.0", + "lightningcss-linux-x64-musl": "1.33.0", + "lightningcss-win32-arm64-msvc": "1.33.0", + "lightningcss-win32-x64-msvc": "1.33.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/nanoid": { + "version": "3.3.20", + "resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.32", + "resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.5.32.tgz", + "integrity": "sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.20", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/rolldown": { + "version": "1.2.15", + "resolved": "https://registry.npmmirror.com/rolldown/-/rolldown-1.2.15.tgz", + "integrity": "sha512-6odND+fel5zVw3I4Yc2e69gvguDnX0CAAGiNDZSq4ik5WUcaLrkD2GLuog0XcODbor31hZ5ayEMgVDno+KPV5g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.155.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm-eabi": "1.2.15", + "@rolldown/binding-android-arm64": "1.2.15", + "@rolldown/binding-darwin-arm64": "1.2.15", + "@rolldown/binding-darwin-x64": "1.2.15", + "@rolldown/binding-freebsd-x64": "1.2.15", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.15", + "@rolldown/binding-linux-arm64-gnu": "1.2.15", + "@rolldown/binding-linux-arm64-musl": "1.2.15", + "@rolldown/binding-linux-ppc64-gnu": "1.2.15", + "@rolldown/binding-linux-s390x-gnu": "1.2.15", + "@rolldown/binding-linux-x64-gnu": "1.2.15", + "@rolldown/binding-linux-x64-musl": "1.2.15", + "@rolldown/binding-openharmony-arm64": "1.2.15", + "@rolldown/binding-win32-arm64-msvc": "1.2.15", + "@rolldown/binding-win32-x64-msvc": "1.2.15" + } + }, + "node_modules/source-map-js": { + "version": "1.2.2", + "resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.2.2.tgz", + "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmmirror.com/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/vite": { + "version": "8.3.5", + "resolved": "https://registry.npmmirror.com/vite/-/vite-8.3.5.tgz", + "integrity": "sha512-z1YpjieJ9g0ebTmQpLBv/oq9E3F9EIlOe+7LahW8SrE3LTiG3udBRUXQOlYXP9b+IC2q2phHeVxj9xGlw34OEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "lightningcss": "^1.33.0", + "picomatch": "^4.0.7", + "postcss": "^8.5.30", + "rolldown": "~1.2.14", + "tinyglobby": "^0.2.17" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.7.1 || ^0.8.0", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..96e3df5 --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ + "name": "staytunedsite", + "version": "0.0.0", + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "preview": "vite preview", + "config:runtime": "node scripts/write-runtime-config.js", + "start": "npm run config:runtime && vite preview --host 0.0.0.0" + }, + "devDependencies": { + "vite": "^8.3.4" + } +} diff --git a/public/favicon.svg b/public/favicon.svg new file mode 100644 index 0000000..d083148 --- /dev/null +++ b/public/favicon.svg @@ -0,0 +1 @@ + diff --git a/public/icons.svg b/public/icons.svg new file mode 100644 index 0000000..e952219 --- /dev/null +++ b/public/icons.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/runtime-config.js b/public/runtime-config.js new file mode 100644 index 0000000..c87e827 --- /dev/null +++ b/public/runtime-config.js @@ -0,0 +1,2 @@ +// Deployment may replace this file with `npm run config:runtime`. +window.__SITE_CONFIG__ = {}; diff --git a/scripts/write-runtime-config.js b/scripts/write-runtime-config.js new file mode 100644 index 0000000..c52ba10 --- /dev/null +++ b/scripts/write-runtime-config.js @@ -0,0 +1,21 @@ +import { access, writeFile } from 'node:fs/promises' +import { fileURLToPath } from 'node:url' +import { pickPublicEnv } from '../src/site-config.js' + +const outputDirectory = new URL('../dist/', import.meta.url) + +try { + await access(new URL('index.html', outputDirectory)) +} catch { + console.error('未找到 dist/index.html,请先执行 npm run build。') + process.exit(1) +} + +// Only explicitly supported display variables are written to the public file. +const config = JSON.stringify(pickPublicEnv(process.env), null, 2) + .replace(/V|)f$;Qooc7=_G zlYe)HToTQIc!$)^+J1M1y0*T%w!p~7%ux`!eRhO?c80XDxKQ*R^lUUMnA>6NT^?feoZ8xxvP32D&s-9ow zqjcM}eesrC)NeDmsf)*P7wJ|K!&xP%Zy4iI8lF)Tv2!reW)tCzg_1=PmOwd1SQfxa z8;58t!=z~Ba7CYlNWVG>he8aRPY|+-JmozNhn!#9i#77Aa_Edt$ijyCWL#=~I>~2X zZNrQ8I0=D+NWD4pq=7~(i zhfThMNw|G>g^y9pGzxX7ZSApl@tIxFcs{p#MX{Ax&XZT+cR#U+OWc@S)pkIuI}dzu zH?^Q=<(y&Vq-oxSLfc0Zmq81bjZWf}RnssBaD6}2g-XJHLcN_|*IOu>m|x$nbm(?E zyNy!Zp=RroS;?Vg*kmoJYBi!n5{_^@rA!)=t#a^;N$8GL!*DsQb}`yvEuX!G@||An znOfUZAevPrkV_qjl|<~3QRZzG&h@C9Y5z zqpNH4xqbF_InIPh)kX}Vn^5kyed|mOuq+2>M;v~KO37a#yrEn3XDqtOl=rc6_KZ!; zreo)DFVB4|>1Zd(bvMI%8uM;3!)YMYu&cG?(PE!B~y@3yKBMt|R zAf=I16tFwPsl)!jDqvYkLHaAQ+f@W1m6F5aZvwhm4JL z{_l)@b;)mDSzle2gyFP5-r1x-5X{G}ot%VyWP@vEW80!Q=f%RTfpg>B*TA^pyWYUQ z<=xPtz}WcZ!;rFl4m1D&FFHv?K~#9!?A%+fn=lXt;9!Fc#kQ;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wf7sgPKhfzhBM zC@eFL8^MrnA*9&Khe*Ab@CC9*uyJGXyi(;y2>lQLJZt;ShtJi?3Yf_t`F+$hY!+Q2Ndsx=U+bjTiAy7djLji>7k%k`$9&--f<*BNA3Hy&ZrHH|4 zG5H&9cB?O#zI1_OOf0Ce%mDfQxdtp3vU%(iY6yji3iISS61XLv#z|!zI_sZqza@B+ zyu9st5-h+`H7QUKx9}3w@oU@EO}&cEzG?fu!!bLO->%zkcg;i9^j`S~=WKMnDi1f= P00000NkvXXu0mjft=yBf literal 0 HcmV?d00001 diff --git a/src/assets/javascript.svg b/src/assets/javascript.svg new file mode 100644 index 0000000..bebbfc1 --- /dev/null +++ b/src/assets/javascript.svg @@ -0,0 +1 @@ + diff --git a/src/assets/vite.svg b/src/assets/vite.svg new file mode 100644 index 0000000..5101b67 --- /dev/null +++ b/src/assets/vite.svg @@ -0,0 +1 @@ +Vite diff --git a/src/counter.js b/src/counter.js new file mode 100644 index 0000000..12bf115 --- /dev/null +++ b/src/counter.js @@ -0,0 +1,9 @@ +export function setupCounter(element) { + let counter = 0 + const setCounter = (count) => { + counter = count + element.innerHTML = `Count is ${counter}` + } + element.addEventListener('click', () => setCounter(counter + 1)) + setCounter(0) +} diff --git a/src/main.js b/src/main.js new file mode 100644 index 0000000..b85211f --- /dev/null +++ b/src/main.js @@ -0,0 +1,190 @@ +import './style.css' +import { escapeHtml, resolveSiteConfig } from './site-config.js' + +const site = resolveSiteConfig(import.meta.env, window.__SITE_CONFIG__) + +document.title = site.title +for (const [selector, content] of [ + ['meta[name="description"]', site.metaDescription], + ['meta[property="og:title"]', site.title], + ['meta[property="og:description"]', site.metaDescription], +]) { + document.querySelector(selector).content = content +} + +function registrationItem(number, url) { + if (!number) return '' + return url + ? `${escapeHtml(number)}` + : `${escapeHtml(number)}` +} + +const registrationItems = registrationItem(site.icpNumber, site.icpUrl) + + registrationItem(site.publicSecurityNumber, site.publicSecurityUrl) + +const arrow = '' +const spark = '' + +document.querySelector('#app').innerHTML = ` + +
+ + +
+
+
+

A LITTLE PATIENCE. A LOT TO LOOK FORWARD TO.

+

美好的事,
即将发生。

+

${escapeHtml(site.description).replace(/\r?\n/g, '
')}

+
+ + 看看我们在做什么 +
+
✳好东西,值得等一等。
+
+ +
+ + +
FIG. 001让想象,慢慢成形。
+
+
+ +
+
01 / WHAT'S NEXT

每一步,都离见面更近。

+
    +
  1. 从一个想法开始

    让灵感有了方向

    已启程
  2. +
  3. 把细节变成惊喜

    用心打磨,渐入佳境

    进行中
  4. +
  5. 然后,与你相遇

    敬请期待正式上线

    即将到来
  6. +
+
+
+ +
+ + 保持好奇。${spark}我们很快见。 +
北京时间
+
+
+
+ +` + +const clock = document.querySelector('#clock') +const timeFormatter = new Intl.DateTimeFormat('en-GB', { + timeZone: 'Asia/Shanghai', + hour: '2-digit', + minute: '2-digit', + second: '2-digit', + hour12: false, +}) + +function updateClock() { + const now = new Date() + clock.textContent = timeFormatter.format(now) + clock.dateTime = now.toISOString() +} + +updateClock() +setInterval(updateClock, 1000) + +let toastTimeout +function showToast(message) { + const toast = document.querySelector('#toast') + clearTimeout(toastTimeout) + toast.textContent = message + toast.classList.add('is-visible') + toastTimeout = setTimeout(() => toast.classList.remove('is-visible'), 3500) +} + +const shareDialog = document.querySelector('#share-dialog') +const shareInput = document.querySelector('#share-url') +const shareUrl = new URL(window.location.href) +shareUrl.hash = '' +shareInput.value = shareUrl.href + +async function copyLink() { + if (!navigator.clipboard?.writeText) return false + try { + await navigator.clipboard.writeText(shareUrl.href) + return true + } catch { + return false + } +} + +document.querySelector('#share-button').addEventListener('click', async () => { + if (navigator.share) { + try { + await navigator.share({ + title: site.title, + text: site.metaDescription, + url: shareUrl.href, + }) + return + } catch (error) { + if (error.name === 'AbortError') return + } + } + + if (await copyLink()) { + showToast('链接已复制,把这份期待分享出去吧。') + } else { + document.querySelector('#dialog-hint').textContent = '' + shareDialog.showModal() + shareInput.focus() + shareInput.select() + } +}) + +document.querySelector('#dialog-copy').addEventListener('click', async () => { + if (await copyLink()) { + shareDialog.close() + showToast('链接已复制,把这份期待分享出去吧。') + } else { + shareInput.focus() + shareInput.select() + const shortcut = /Mac|iPhone|iPad/.test(navigator.userAgent) ? '⌘ C' : 'Ctrl + C' + document.querySelector('#dialog-hint').textContent = `链接已选中,请按 ${shortcut} 或长按链接复制。` + } +}) + +document.querySelector('#dialog-close').addEventListener('click', () => shareDialog.close()) +shareDialog.addEventListener('click', (event) => { + if (event.target !== shareDialog) return + const rect = shareDialog.getBoundingClientRect() + if (event.clientX < rect.left || event.clientX > rect.right || event.clientY < rect.top || event.clientY > rect.bottom) { + shareDialog.close() + } +}) diff --git a/src/site-config.js b/src/site-config.js new file mode 100644 index 0000000..9f70342 --- /dev/null +++ b/src/site-config.js @@ -0,0 +1,57 @@ +export const publicEnvKeys = Object.freeze([ + 'VITE_PROJECT_NAME', + 'VITE_PROJECT_NAME_EN', + 'VITE_PROJECT_DESCRIPTION', + 'VITE_PAGE_TITLE', + 'VITE_HEADER_NOTE', + 'VITE_COPYRIGHT', + 'VITE_FOOTER_NOTE', + 'VITE_ICP_NUMBER', + 'VITE_ICP_URL', + 'VITE_PUBLIC_SECURITY_NUMBER', + 'VITE_PUBLIC_SECURITY_URL', +]) + +export function pickPublicEnv(env = {}) { + return Object.fromEntries(publicEnvKeys + .filter(key => Object.hasOwn(env, key) && typeof env[key] === 'string') + .map(key => [key, env[key]])) +} + +export function escapeHtml(value) { + return String(value).replace(/[&<>"']/g, character => ({ + '&': '&', '<': '<', '>': '>', '"': '"', "'": ''', + })[character]) +} + +function httpUrl(value) { + try { + const url = new URL(value) + return ['http:', 'https:'].includes(url.protocol) ? url.href : '' + } catch { + return '' + } +} + +export function resolveSiteConfig(buildEnv = {}, runtimeEnv = {}, year = new Date().getFullYear()) { + const env = { ...pickPublicEnv(buildEnv), ...pickPublicEnv(runtimeEnv) } + const projectName = env.VITE_PROJECT_NAME?.trim() || '未完待续' + const description = env.VITE_PROJECT_DESCRIPTION?.trim() + || '一个新想法,正在慢慢成为现实。\n我们在认真打磨每一个细节,期待很快与你见面。' + + return { + projectName, + projectNameEn: env.VITE_PROJECT_NAME_EN ?? 'STAY TUNED', + description, + metaDescription: description.replace(/\s+/g, ' '), + title: env.VITE_PAGE_TITLE?.trim() || `${projectName} · 美好的事,即将发生`, + headerNote: env.VITE_HEADER_NOTE ?? '为下一次相遇,认真准备中。', + copyright: (env.VITE_COPYRIGHT ?? '© {year} {projectName}') + .replace(/\{(year|projectName)\}/g, (_, key) => key === 'year' ? String(year) : projectName), + footerNote: env.VITE_FOOTER_NOTE ?? 'MADE WITH INTENTION.', + icpNumber: env.VITE_ICP_NUMBER?.trim() || '', + icpUrl: httpUrl(env.VITE_ICP_URL ?? 'https://beian.miit.gov.cn/'), + publicSecurityNumber: env.VITE_PUBLIC_SECURITY_NUMBER?.trim() || '', + publicSecurityUrl: httpUrl(env.VITE_PUBLIC_SECURITY_URL ?? ''), + } +} diff --git a/src/style.css b/src/style.css new file mode 100644 index 0000000..9010170 --- /dev/null +++ b/src/style.css @@ -0,0 +1,224 @@ +:root { + font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif; + color: #292a25; + background: #f7f7ef; + font-synthesis: none; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + --paper: #f7f7ef; + --ink: #292a25; + --muted: #74776b; + --orange: #ea633b; + --line: #ddded3; +} + +* { box-sizing: border-box; } +html { scroll-behavior: smooth; scroll-padding-top: 30px; } +body { margin: 0; min-width: 320px; } +body::before { + content: ''; + position: fixed; + inset: 0; + pointer-events: none; + z-index: 5; + opacity: .035; + background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.5' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); +} +button, input { font: inherit; } +button, a { -webkit-tap-highlight-color: transparent; } +button { cursor: pointer; } +a { color: inherit; text-decoration: none; } +button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; } +::selection { background: #edaa83; color: #292a25; } +.page-shell { max-width: 1600px; min-height: 100svh; padding: 0 6.1%; margin: 0 auto; } +.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 20px; background: var(--ink); color: white; transform: translateY(-150%); z-index: 10; } +.skip-link:focus { transform: translateY(0); } + +.site-header { height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); } +.brand { display: flex; align-items: center; gap: 13px; min-width: 0; } +.brand-symbol { width: 41px; height: 41px; flex-shrink: 0; color: var(--orange); transition: transform .6s; } +.brand:hover .brand-symbol { transform: rotate(90deg); } +.brand-symbol svg, .artwork-spark svg, .footer-spark svg, .dialog-spark svg { width: 100%; height: 100%; } +.brand-name { font-size: 23px; line-height: 1.45; font-weight: 800; letter-spacing: 3px; max-width: 260px; overflow-wrap: anywhere; } +.brand-name > span { display: block; font-size: 8px; font-weight: 500; letter-spacing: 2.9px; overflow-wrap: anywhere; } +.header-note { margin-left: auto; margin-right: 53px; font-size: 11px; letter-spacing: 1.3px; color: var(--muted); } +.availability { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 30px; padding: 9px 14px; font-size: 11px; white-space: nowrap; } +.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #7d8f66; flex-shrink: 0; } +.availability .status-dot { box-shadow: 0 0 0 3px #7d8f6610; animation: pulse 3s ease-in-out infinite; } + +.hero { min-height: 632px; display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: 25px; padding: 56px 0 46px; } +.hero-copy { padding: 13px 0 0; position: relative; z-index: 2; } +.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 30px; color: #77796e; font-size: 9px; font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 500; letter-spacing: 1.45px; } +.eyebrow > span { width: 21px; height: 1px; background: var(--orange); flex-shrink: 0; } +h1 { font-size: clamp(52px, 5.55vw, 86px); line-height: 1.42; font-weight: 800; letter-spacing: -4px; margin: 0 0 28px -4px; } +.headline-accent { color: var(--orange); position: relative; display: inline-block; } +.headline-accent > svg { position: absolute; bottom: -5px; left: -4%; width: 108%; height: 14px; } +.hero-description { font-size: 13px; line-height: 2.05; letter-spacing: .6px; color: #707467; margin: 0 0 32px; } +.hero-actions { display: flex; align-items: center; gap: 25px; } +.share-button { min-height: 49px; padding: 0 21px; border: 1px solid var(--ink); background: var(--ink); color: #fffef4; font-size: 12px; letter-spacing: .7px; display: inline-flex; align-items: center; justify-content: space-between; gap: 29px; transition: background .2s, transform .2s, border-color .2s; } +.share-button svg { width: 20px; height: 20px; transition: transform .2s; } +.share-button:hover { background: #43463b; border-color: #43463b; transform: translateY(-2px); } +.share-button:hover svg { transform: translateX(3px); } +.share-button:active { transform: translateY(0); } +.progress-link { display: flex; align-items: center; gap: 13px; font-size: 11px; color: #6a6d62; padding: 10px 0; } +.progress-link span { font-size: 19px; line-height: 1; transition: transform .2s; } +.progress-link:hover span { transform: translate(2px, 2px); } +.hero-footnote { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 10px; letter-spacing: .7px; margin-top: 25px; } +.tiny-star { color: #898d79; font-size: 15px; } + +.artwork { position: relative; margin: 0; aspect-ratio: 1.03; width: 100%; isolation: isolate; } +.artwork::before { content: ''; position: absolute; inset: 5% -2%; background: radial-gradient(ellipse, #e9e5d6a1, transparent 67%); z-index: -1; } +.artwork-coordinate { position: absolute; font: 9px 'Helvetica Neue', Arial, sans-serif; letter-spacing: 2px; color: var(--muted); } +.coordinate-top { right: 3%; top: 2%; writing-mode: vertical-rl; } +.orbital-system { width: 100%; height: 100%; position: absolute; inset: 0; animation: arrive 1.3s both; } +.planet { position: absolute; width: 65%; aspect-ratio: 1; left: 17.5%; top: 17%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 30% 22%, #fba36c 0, #ed8951 23%, #eb7646 43%, #d85c33 67%, #b94626 83%, #9c3c25 100%); box-shadow: inset -13px -17px 30px #73291035, inset 9px 6px 22px #ffe1a636, 27px 39px 45px -32px #8f48204d; transform: rotate(-24deg); } +.planet::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 28% 17%, #ffe8ac35, transparent 47%, #8a32192e 100%); } +.planet-lines { position: absolute; inset: -10%; opacity: .29; background: repeating-linear-gradient(0deg, transparent 0, transparent 5px, #873a281d 5.5px, #81352155 6px, transparent 7px); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); } +.planet-grain { position: absolute; inset: 0; opacity: .24; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%236f2e13' filter='url(%23g)' d='M0 0h200v200H0z'/%3E%3C/svg%3E"); } +.orbit { position: absolute; width: 101%; height: 38%; left: -.5%; top: 31%; border: 1px solid #696f5c; border-radius: 50%; transform: rotate(-32deg); } +.orbit-back { z-index: -1; } +.orbit-front { clip-path: inset(50% -10% -10% -10%); } +.satellite-track { position: absolute; width: 101%; height: 38%; left: -.5%; top: 31%; transform: rotate(-32deg); } +.satellite { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 32% 25%, #636a54, #2d382a 70%); box-shadow: 1px 3px 6px #40472f25; top: 70%; left: 5%; animation: satellite-float 6s ease-in-out infinite; } +.artwork-spark { position: absolute; display: block; color: #757d5e; } +.spark-one { width: 37px; height: 37px; top: 15%; left: 12%; animation: spark-turn 30s linear infinite; } +.spark-two { top: 70%; right: 7%; font: 33px Georgia, serif; font-weight: 400; color: #a0a48d; } +.artwork-dot { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #aaa991; } +.dot-one { top: 18%; right: 21%; } +.dot-two { top: 81%; left: 25%; width: 3px; height: 3px; } +figcaption { position: absolute; bottom: 0; left: 14%; right: 5%; display: flex; align-items: center; gap: 16px; font-size: 10px; letter-spacing: 1px; color: var(--muted); } +.figure-number { font: 9px 'Helvetica Neue', Arial, sans-serif; letter-spacing: 1px; padding-right: 16px; border-right: 1px solid #cdcec0; } +.figure-plus { margin-left: auto; font-size: 19px; color: #a3a694; } + +.progress-section { border-top: 1px solid var(--line); padding: 29px 0 37px; display: grid; grid-template-columns: 1fr 2.7fr; gap: 40px; } +.section-index { display: block; font: 9px 'Helvetica Neue', Arial, sans-serif; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 13px; } +.progress-intro h2 { font-size: 14px; font-weight: 500; letter-spacing: .4px; margin: 0; } +.milestones { list-style: none; margin: 0; padding: 4px 0 0; display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 25px; } +.milestone { display: flex; align-items: flex-start; gap: 11px; position: relative; } +.milestone-icon { width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid #c6cbb9; border-radius: 50%; color: #788568; } +.milestone-icon svg { width: 17px; height: 17px; } +.milestone h3 { font-size: 12px; font-weight: 500; margin: 2px 0 8px; letter-spacing: .4px; } +.milestone p { color: var(--muted); font-size: 10px; margin: 0; letter-spacing: .4px; } +.milestone-tag { display: inline-flex; align-items: center; gap: 5px; position: absolute; top: 57px; left: 36px; font-size: 9px; color: #6d775d; } +.milestone-current .milestone-icon { border-color: #e8a58a; background: #f6e7db; } +.milestone-current .milestone-icon > span { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px #ea633b15; } +.milestone-current h3, .milestone-current .milestone-tag { color: #ac4c2a; } +.milestone-current .status-dot { width: 4px; height: 4px; background: var(--orange); animation: pulse 3s ease-in-out infinite; } +.milestone-next .milestone-icon { border-color: #d5d6cb; color: #a3a599; } +.milestone-next h3 { color: var(--muted); } +.milestone-next .milestone-tag { color: var(--muted); } + +.site-footer { margin-top: 23px; border-top: 1px solid var(--line); min-height: 87px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font: 9px 'Helvetica Neue', 'PingFang SC', sans-serif; letter-spacing: .5px; color: var(--muted); } +.footer-divider { margin: 0 8px; color: #b9bbaf; } +.footer-info { max-width: 52%; padding-block: 15px; line-height: 1.8; overflow-wrap: anywhere; } +.footer-registration { display: flex; flex-wrap: wrap; gap: 4px 15px; margin-top: 5px; } +.footer-registration a { text-underline-offset: 3px; } +.footer-registration a:hover { color: var(--ink); text-decoration: underline; } +.footer-message { display: flex; align-items: center; gap: 11px; font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; letter-spacing: 1px; } +.footer-spark { display: flex; width: 15px; height: 15px; color: #9ba187; } +.local-clock { display: flex; align-items: center; gap: 7px; } +.local-clock .status-dot { width: 4px; height: 4px; } +.local-clock time { font-variant-numeric: tabular-nums; min-width: 51px; } + +.toast { position: fixed; z-index: 10; bottom: 30px; left: 50%; transform: translate(-50%, 15px); max-width: calc(100% - 32px); width: max-content; border-radius: 4px; padding: 15px 22px; color: var(--paper); background: var(--ink); box-shadow: 0 6px 30px #292a2520; font-size: 13px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; } +.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); } +.share-dialog { border: 1px solid var(--line); padding: 38px; width: min(450px, calc(100% - 32px)); color: var(--ink); background: var(--paper); box-shadow: 0 20px 100px #292a2529; } +.share-dialog::backdrop { background: #292a2560; backdrop-filter: blur(5px); } +.dialog-close { position: absolute; right: 12px; top: 9px; width: 35px; height: 35px; background: transparent; border: 0; color: #77796e; font-size: 28px; } +.dialog-spark { display: block; width: 35px; height: 35px; color: var(--orange); margin-bottom: 25px; } +.share-dialog h2 { font-size: 23px; margin: 0 0 12px; } +.share-dialog p { font-size: 12px; color: #85857b; line-height: 1.8; } +.share-dialog label { display: block; font-size: 11px; margin: 25px 0 8px; } +.share-dialog input { width: 100%; padding: 12px; border: 1px solid #d6d8cb; border-radius: 0; font-size: 12px; background: #fffdf8; color: #5c6152; margin-bottom: 16px; } +.share-dialog .share-button { width: 100%; } +.share-dialog .dialog-hint { margin-bottom: 0; } + +@keyframes pulse { 50% { opacity: .4; } } +@keyframes satellite-float { 50% { transform: translate(6px, -4px); } } +@keyframes spark-turn { to { transform: rotate(360deg); } } +@keyframes arrive { from { opacity: 0; transform: translateY(14px) rotate(-4deg); } to { opacity: 1; transform: translateY(0) rotate(0); } } + +@media (min-width: 1500px) { + .hero { min-height: 710px; } +} + +@media (min-height: 960px) and (min-width: 1000px) { + .page-shell { display: flex; flex-direction: column; } + main { flex: 1; display: flex; flex-direction: column; justify-content: center; } + .hero { flex: 1; max-height: 900px; } +} + +@media (max-width: 1100px) { + .page-shell { padding: 0 5%; } + .header-note { margin-right: 15px; } + .hero { min-height: 590px; gap: 0; } + h1 { font-size: 62px; } + .eyebrow { font-size: 8px; letter-spacing: 1px; } + .hero-actions { gap: 20px; } + .share-button { padding-inline: 17px; gap: 20px; } + .progress-section { grid-template-columns: 1fr; gap: 23px; padding-bottom: 45px; } + .progress-intro { display: flex; align-items: center; gap: 25px; } + .section-index { margin-bottom: 0; } + .milestones { gap: 30px; } + .milestone { padding-left: 0; } + .milestone-tag { position: static; margin-left: auto; padding-top: 5px; } +} + +@media (max-width: 760px) { + .page-shell { padding: 0 7%; } + .site-header { height: 95px; } + .brand-symbol { width: 32px; height: 32px; } + .brand-name { font-size: 19px; letter-spacing: 2px; } + .brand-name > span { font-size: 7px; letter-spacing: 2px; } + .header-note { display: none; } + .brand-name { max-width: 160px; font-size: 19px; } + .availability { font-size: 10px; padding: 8px 10px; gap: 7px; } + .hero { grid-template-columns: 1fr; padding: 51px 0 34px; gap: 18px; } + .hero-copy { padding: 0; } + .eyebrow { font-size: 8px; letter-spacing: 1px; margin-bottom: 22px; } + h1 { font-size: clamp(50px, 9.7vw, 70px); line-height: 1.43; letter-spacing: -2.5px; margin-bottom: 25px; } + .hero-description { font-size: 12px; letter-spacing: .25px; margin-bottom: 27px; } + .hero-actions { gap: 23px; } + .progress-link { font-size: 10px; gap: 7px; } + .share-button { min-height: 47px; font-size: 11px; padding-inline: 18px; gap: 22px; } + .hero-footnote { font-size: 9px; margin-top: 19px; } + .artwork { width: min(100%, 440px); justify-self: center; margin-top: -3px; } + .coordinate-top { top: 5%; right: 0; font-size: 8px; } + figcaption { font-size: 9px; bottom: 0; left: 9%; } + .progress-section { padding: 25px 0 28px; gap: 23px; } + .progress-intro { display: block; } + .section-index { font-size: 8px; margin-bottom: 10px; } + .progress-intro h2 { font-size: 14px; } + .milestones { grid-template-columns: 1fr; gap: 24px; } + .milestone { gap: 13px; align-items: center; } + .milestone-icon { width: 27px; height: 27px; } + .milestone h3 { font-size: 12px; margin: 0 0 5px; } + .milestone p { font-size: 10px; } + .milestone-tag { padding-top: 0; font-size: 9px; } + .site-footer { margin-top: 0; padding: 22px 0; min-height: 90px; flex-wrap: wrap; row-gap: 19px; font-size: 8px; } + .footer-info { flex: 1 1 100%; max-width: 100%; padding: 0; } + .footer-registration { font-size: 10px; gap: 6px 12px; } + .footer-message { order: 3; width: 100%; font-size: 9px; justify-content: center; } + .local-clock { gap: 5px; font-size: 8px; } + .local-clock time { min-width: 43px; } +} + +@media (max-width: 370px) { + .page-shell { padding-inline: 6%; } + .brand { gap: 9px; } + .brand-name { font-size: 17px; } + .availability { font-size: 9px; } + .eyebrow { font-size: 7px; letter-spacing: .8px; gap: 7px; } + h1 { font-size: 49px; } + .hero-actions { gap: 14px; } + .share-button { padding-inline: 14px; gap: 15px; } + .hero-description { font-size: 11px; } + .site-footer { column-gap: 8px; } + .footer-divider { margin-inline: 3px; } +} + +@media (prefers-reduced-motion: reduce) { + html { scroll-behavior: auto; } + *, *::before, *::after { animation: none !important; transition: none !important; } +} diff --git a/staytunedsite.iml b/staytunedsite.iml new file mode 100644 index 0000000..80cc739 --- /dev/null +++ b/staytunedsite.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..86b36f0 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,19 @@ +import { defineConfig, loadEnv } from 'vite' +import { escapeHtml, resolveSiteConfig } from './src/site-config.js' + +export default defineConfig(({ mode }) => { + const config = resolveSiteConfig(loadEnv(mode, process.cwd(), 'VITE_')) + + return { + plugins: [{ + name: 'site-metadata', + transformIndexHtml: { + order: 'pre', + handler(html) { + return html.replace(/__SITE_(TITLE|DESCRIPTION)__/g, (_, key) => + escapeHtml(key === 'TITLE' ? config.title : config.metaDescription)) + }, + }, + }], + } +})