gsap-awwwards-website
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGSAP Awwwards Website
GSAP Awwwards 网站
A stunning product landing page with GSAP scroll animations, modern React 19 architecture, and Tailwind CSS 4 styling.
一个采用GSAP滚动动画、现代React 19架构和Tailwind CSS 4样式的惊艳产品着陆页。
Tech Stack
技术栈
- Framework: React 19
- Build Tool: Vite
- Animation: GSAP
- Styling: Tailwind CSS 4
- Package Manager: npm
- Output: directory
dist - Dev Port: 5173
- 框架: React 19
- 构建工具: Vite
- 动画库: GSAP
- 样式方案: Tailwind CSS 4
- 包管理器: npm
- 输出目录: 文件夹
dist - 开发端口: 5173
Setup
设置步骤
1. Clone the Template
1. 克隆模板
bash
git clone --depth 1 https://github.com/Eng0AI/gsap-awwwards-website-template.git .If the directory is not empty:
bash
git clone --depth 1 https://github.com/Eng0AI/gsap-awwwards-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/gsap-awwwards-website-template.git .如果目标目录非空:
bash
git clone --depth 1 https://github.com/Eng0AI/gsap-awwwards-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 - no environment variables needed
- Never run in VM environment
npm run dev
- 静态React站点 - 无需环境变量
- 切勿在虚拟机环境中运行命令
npm run dev