commit f88225469bd806783f3c9f5b80f2a3211a2e3435 Author: cnluminous Date: Tue Oct 27 11:53:04 2026 +0800 first commit 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(/ 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)) + }, + }, + }], + } +})