Loading...
Loading...
Compare original and translation side by side
npm create astro@latest my-site
cd my-site
npm run devnpm create astro@latest my-site
cd my-site
npm run dev| Generator | When to Use |
|---|---|
| Astro | Default choice — best DX, island architecture |
| Next.js | Need SSR, API routes, or React ecosystem |
| Nuxt | Vue-based projects |
| SvelteKit | Svelte-based projects |
| 11ty | Simplest possible static sites |
| 生成器 | 使用场景 |
|---|---|
| Astro | 默认选择 —— 最佳开发体验,孤岛架构 |
| Next.js | 需要SSR、API路由或React生态的场景 |
| Nuxt | Vue相关项目 |
| SvelteKit | Svelte相关项目 |
| 11ty | 极简静态站点 |
Loop:
Make change → Save → Screenshot → Evaluate → Fix → Screenshot
Exit when: section meets quality bar循环流程:
做出修改 → 保存 → 截图 → 评估 → 修复 → 截图
退出条件:该部分达到质量标准"Use the frontend-design skill to redesign the hero section with modern layout patterns"
"Use the copywriting skill to rewrite the homepage headline and subheading"
"Use the frontend-design skill to add micro-interactions to the CTA buttons"
"Use the copywriting skill to improve the feature descriptions — make them benefit-driven""使用frontend-design技能,采用现代布局模式重新设计Hero区域"
"使用copywriting技能重写首页标题和副标题"
"使用frontend-design技能为CTA按钮添加微交互"
"使用copywriting技能优化功能描述 —— 突出用户收益"| Skill | Use For |
|---|---|
| frontend-design | Layout, visual hierarchy, component patterns, responsive design |
| copywriting | Headlines, CTAs, feature descriptions, brand voice |
| seo | Meta tags, structured data, performance, Core Web Vitals |
| accessibility | ARIA labels, keyboard navigation, color contrast |
| 技能 | 适用场景 |
|---|---|
| frontend-design | 布局、视觉层级、组件模式、响应式设计 |
| copywriting | 标题、CTA、功能描述、品牌语调 |
| seo | 元标签、结构化数据、性能、Core Web Vitals |
| accessibility | ARIA标签、键盘导航、色彩对比度 |
1. "Use the copywriting skill to write compelling copy for the pricing section"
2. "Use the frontend-design skill to design the pricing cards layout with the copy above"
3. "Now screenshot and let's iterate on the visual design"1. "使用copywriting技能为定价区域撰写有吸引力的文案"
2. "使用frontend-design技能结合上述文案设计定价卡片布局"
3. "现在截图,我们来迭代优化视觉设计"Task Progress:
- [ ] Step 1: Generate initial version
- [ ] Step 2: Screenshot and evaluate
- [ ] Step 3: Identify the weakest element
- [ ] Step 4: Improve that element specifically
- [ ] Step 5: Screenshot and compare
- [ ] Step 6: Repeat steps 3-5 at least 3 more times
- [ ] Step 7: Final polish pass任务进度:
- [ ] 步骤1:生成初始版本
- [ ] 步骤2:截图并评估
- [ ] 步骤3:识别最薄弱的元素
- [ ] 步骤4:针对性改进该元素
- [ ] 步骤5:截图并对比
- [ ] 步骤6:重复步骤3-5至少3次
- [ ] 步骤7:最终打磨阶段| Element | Animation |
|---|---|
| Hero headline | Fade-in + slight upward slide on load |
| CTA buttons | Hover scale + color transition |
| Feature cards | Scroll-triggered fade-in with stagger |
| Navigation | Smooth scroll, sticky header with backdrop blur |
| Page transitions | Subtle fade between routes |
| Images | Lazy load with fade-in |
| 元素 | 动画效果 |
|---|---|
| Hero标题 | 加载时淡入并轻微向上滑动 |
| CTA按钮 | 悬停时缩放 + 颜色过渡 |
| 功能卡片 | 滚动触发的淡入效果,按顺序出现 |
| 导航栏 | 平滑滚动、带背景模糊的粘性头部 |
| 页面切换 | 路由间的淡入淡出过渡 |
| 图片 | 懒加载并伴随淡入效果 |
IntersectionObserver/* Scroll-triggered fade-in */
.animate-on-scroll {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
opacity: 1;
transform: translateY(0);
}IntersectionObserver/* 滚动触发的淡入效果 */
.animate-on-scroll {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
opacity: 1;
transform: translateY(0);
}- [ ] Mobile (375px) — single column, touch-friendly targets
- [ ] Tablet (768px) — adapted grid, readable line lengths
- [ ] Desktop (1280px) — full layout, max-width containers
- [ ] Wide (1536px+) — content doesn't stretch awkwardly- [ ] 移动端(375px)—— 单列布局,适合触摸的交互目标
- [ ] 平板端(768px)—— 适配网格,易读的行长度
- [ ] 桌面端(1280px)—— 完整布局,最大宽度容器
- [ ] 宽屏(1536px+)—— 内容不会尴尬地拉伸my-site/
├── src/
│ ├── layouts/
│ │ └── Layout.astro # Base HTML shell
│ ├── components/
│ │ ├── Hero.astro
│ │ ├── Features.astro
│ │ ├── Pricing.astro
│ │ └── Footer.astro
│ ├── pages/
│ │ └── index.astro
│ └── styles/
│ └── global.css
├── public/
│ └── fonts/
├── astro.config.mjs
└── package.json.astromy-site/
├── src/
│ ├── layouts/
│ │ └── Layout.astro # 基础HTML框架
│ ├── components/
│ │ ├── Hero.astro
│ │ ├── Features.astro
│ │ ├── Pricing.astro
│ │ └── Footer.astro
│ ├── pages/
│ │ └── index.astro
│ └── styles/
│ └── global.css
├── public/
│ └── fonts/
├── astro.config.mjs
└── package.json.astroVisual Quality:
- [ ] Every section screenshotted and reviewed at mobile + desktop
- [ ] Typography hierarchy is clear (max 2-3 font sizes per section)
- [ ] Color palette is consistent (3-5 colors max)
- [ ] Whitespace is generous and intentional
- [ ] Images are optimized and properly sized
Animations:
- [ ] Hero has entry animation
- [ ] Scroll-triggered animations on content sections
- [ ] Hover states on all interactive elements
- [ ] No janky or stuttering animations
- [ ] Animations respect prefers-reduced-motion
Content:
- [ ] Headlines are benefit-driven, not feature-driven
- [ ] CTAs are clear and compelling
- [ ] No lorem ipsum or placeholder content
- [ ] Copy reviewed with copywriting skill
Technical:
- [ ] Lighthouse score 90+ on all categories
- [ ] Responsive at all breakpoints
- [ ] Semantic HTML throughout
- [ ] Accessible (keyboard nav, ARIA labels, contrast)
- [ ] Fast load time (minimal JS, optimized assets)视觉质量:
- [ ] 每个区域都在移动端和桌面端截图并评审
- [ ] 排版层级清晰(每个区域最多2-3种字号)
- [ ] 调色板一致(最多3-5种颜色)
- [ ] 留白充足且布局合理
- [ ] 图片已优化且尺寸合适
动画效果:
- [ ] Hero区域有入场动画
- [ ] 内容区域有滚动触发的动画
- [ ] 所有交互元素都有悬停状态
- [ ] 动画无卡顿或抖动
- [ ] 动画尊重prefers-reduced-motion设置
内容:
- [ ] 标题突出用户收益,而非功能
- [ ] CTA清晰且有吸引力
- [ ] 无Lorem Ipsum或占位内容
- [ ] 文案已通过copywriting技能评审
技术指标:
- [ ] Lighthouse各项评分均达90+
- [ ] 所有断点下响应式正常
- [ ] 全程使用语义化HTML
- [ ] 符合无障碍标准(键盘导航、ARIA标签、色彩对比度)
- [ ] 加载速度快(JS用量少、资源已优化)