award-winning-website
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAward-Winning Gaming Website
获奖游戏网站
A visually captivating website with scroll-triggered animations, geometric transitions, 3D hover effects, and video storytelling.
一个视觉引人入胜的网站,具备滚动触发动画、几何过渡效果、3D悬停效果和视频叙事功能。
Tech Stack
技术栈
- Framework: React 19
- Build Tool: Vite
- Animation: GSAP
- Styling: Tailwind CSS
- Package Manager: npm
- Output: directory
dist - Dev Port: 5173
- 框架:React 19
- 构建工具:Vite
- 动画库:GSAP
- 样式方案:Tailwind CSS
- 包管理器:npm
- 输出目录:文件夹
dist - 开发端口:5173
Setup
搭建步骤
1. Clone the Template
1. 克隆模板
bash
git clone --depth 1 https://github.com/Eng0AI/award-winning-website-template.git .If the directory is not empty:
bash
git clone --depth 1 https://github.com/Eng0AI/award-winning-website-template.git _temp_template
mv _temp_template/* _temp_template/.* . 2>/dev/null || true
rm -rf _temp_templatebash
git clone --depth 1 https://github.com/Eng0AI/award-winning-website-template.git .如果目标目录非空:
bash
git clone --depth 1 https://github.com/Eng0AI/award-winning-website-template.git _temp_template
mv _temp_template/* _temp_template/.* . 2>/dev/null || true
rm -rf _temp_template2. Remove Git History (Optional)
2. 移除Git历史记录(可选)
bash
rm -rf .git
git initbash
rm -rf .git
git init3. Install Dependencies
3. 安装依赖
bash
npm installbash
npm installBuild
构建
bash
npm run buildCreates a production build in the directory.
dist/bash
npm run build在目录中生成生产环境构建文件。
dist/Deploy
部署
CRITICAL: For Vercel, you MUST usethenvercel build --prod. Never usevercel deploy --prebuilt --proddirectly.vercel --prod
重要提示:对于Vercel平台,你必须先执行,然后执行vercel build --prod。切勿直接使用vercel deploy --prebuilt --prod命令。vercel --prod
Vercel (Recommended)
Vercel(推荐)
bash
vercel pull --yes -t $VERCEL_TOKEN
vercel build --prod -t $VERCEL_TOKEN
vercel deploy --prebuilt --prod --yes -t $VERCEL_TOKENbash
vercel pull --yes -t $VERCEL_TOKEN
vercel build --prod -t $VERCEL_TOKEN
vercel deploy --prebuilt --prod --yes -t $VERCEL_TOKENNetlify
Netlify
bash
netlify deploy --prod --dir=distbash
netlify deploy --prod --dir=distDevelopment
开发
bash
npm run devOpens at http://localhost:5173
bash
npm run dev启动后访问 http://localhost:5173
Notes
注意事项
- Static React site with no backend - no environment variables needed
- Never run in VM environment
npm run dev
- 静态React网站,无后端服务 - 无需配置环境变量
- 切勿在虚拟机环境中运行命令
npm run dev