awwwards-landing-page
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAwwwards Landing Page
Awwwards 着陆页
A stunning portfolio landing page with smooth scroll animations using Locomotive Scroll, GSAP, and Framer Motion.
一个使用Locomotive Scroll、GSAP和Framer Motion实现流畅滚动动画的精美作品集着陆页。
Tech Stack
技术栈
- Framework: Next.js
- Animation: Locomotive Scroll, GSAP, Framer Motion
- Package Manager: pnpm or npm
- Dev Port: 3000
- 框架: Next.js
- 动画: Locomotive Scroll, GSAP, Framer Motion
- 包管理器: pnpm 或 npm
- 开发端口: 3000
Setup
设置
1. Clone the Template
1. 克隆模板
bash
git clone --depth 1 https://github.com/Eng0AI/awwwards-landing-page-template.git .If the directory is not empty:
bash
git clone --depth 1 https://github.com/Eng0AI/awwwards-landing-page-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/awwwards-landing-page-template.git .如果目录不为空:
bash
git clone --depth 1 https://github.com/Eng0AI/awwwards-landing-page-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 buildbash
npm run buildDeploy
部署
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 --prodbash
netlify deploy --prodDevelopment
开发
bash
npm run devOpens at http://localhost:3000
bash
npm run devNotes
注意事项
- Static Next.js site - no environment variables needed
- Never run in VM environment
npm run dev
- 静态Next.js站点 - 无需环境变量
- 请勿在虚拟机环境中运行
npm run dev