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 dev启动后访问 http://localhost:3000
Notes
注意事项
- Static Next.js site - no environment variables needed
- Never run in VM environment
npm run dev
- 静态Next.js站点 - 无需环境变量
- 切勿在虚拟机环境中运行
npm run dev