card
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseComponents: Card Layout
组件:Card Layout
Guides card layout design for scannable, responsive content display. Cards are self-contained containers that group related content; used in grids for blog posts, products, templates, tools, features, galleries, and integrations.
When invoking: On first use, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.
指导卡片布局设计,以实现易扫描、响应式的内容展示。卡片是将相关内容归为一组的独立容器,以网格形式用于博客文章、产品、模板、工具、功能、图库和集成内容的展示。
调用规则:首次使用时,如果对用户有帮助,可以先用1-2句话介绍该技能的覆盖范围和价值,再提供核心输出。如果是后续使用或者用户要求跳过介绍,则直接提供核心输出。
Card Anatomy
卡片结构
| Element | Purpose |
|---|---|
| Container | Border, background, shadow; consistent padding |
| Image / Thumbnail | Visual anchor; consistent aspect ratio (1:1, 4:3 common) |
| Title | Clear; keyword-rich where relevant |
| Description / Metadata | Supporting text; date, author, category |
| CTA | Action button or link; "View," "Use," "Connect," etc. |
Principle: One card = one topic. Keep each card focused for scannability.
| 元素 | 用途 |
|---|---|
| 容器 | 边框、背景、阴影;统一内边距 |
| 图片 / 缩略图 | 视觉锚点;统一宽高比(常用1:1、4:3) |
| 标题 | 清晰易懂;相关场景下可包含关键词 |
| 描述 / 元数据 | 辅助文本;日期、作者、分类等信息 |
| CTA | 操作按钮或链接;例如“查看”、“使用”、“连接”等 |
设计原则:一张卡片对应一个主题。保持每张卡片内容聚焦,方便用户快速扫描。
Card Types by Use Case
按使用场景划分的卡片类型
| Type | Typical Elements | Page Skill |
|---|---|---|
| Product card | Image, name, price, CTA (Add to cart, View) | products-page-generator |
| Template card | Thumbnail, name, short description, "Use" or "Preview" CTA | template-page-generator |
| Tool card | Name, one-line benefit, CTA to tool page | tools-page-generator |
| Feature card | Name, benefit, optional screenshot | features-page-generator |
| Gallery / Showcase item | Thumbnail, title, creator, link | showcase-page-generator |
| Integration card | Logo, name, short description, "Connect" or "Install" | integrations-page-generator |
| Blog / Article card | Cover image, title, excerpt, date, author | blog-page-generator, article-page-generator |
| Resource card | Thumbnail, title, format (guide, webinar), CTA | resources-page-generator |
| 类型 | 典型元素 | 关联页面技能 |
|---|---|---|
| Product card | 图片、名称、价格、CTA(加入购物车、查看详情) | products-page-generator |
| Template card | 缩略图、名称、简短描述、“使用”或“预览”CTA | template-page-generator |
| Tool card | 名称、一行介绍的优势、指向工具页面的CTA | tools-page-generator |
| Feature card | 名称、优势、可选截图 | features-page-generator |
| Gallery / Showcase item | 缩略图、标题、创作者、链接 | showcase-page-generator |
| Integration card | Logo、名称、简短描述、“连接”或“安装”CTA | integrations-page-generator |
| Blog / Article card | 封面图、标题、摘要、日期、作者 | blog-page-generator、article-page-generator |
| Resource card | 缩略图、标题、格式(指南、网络研讨会)、CTA | resources-page-generator |
Layout & Responsiveness
布局与响应式适配
- Grid: CSS Grid or Flexbox; columns adapt to viewport
repeat(auto-fill, minmax()) - Mobile: Single column on small screens; 2–4 columns on desktop
- Consistency: Same padding, spacing, and aspect ratios across cards
- Hover: Subtle elevation (shadow, translate-y); avoid scale that causes layout shift (CLS)
- Grid:CSS Grid 或 Flexbox;列数随视口大小自适应
repeat(auto-fill, minmax()) - 移动端:小屏幕下为单列布局;桌面端为2-4列布局
- 一致性:所有卡片的内边距、间距和宽高比保持统一
- 悬停效果:微妙的层级变化(阴影、y轴偏移);避免使用缩放效果导致布局偏移(CLS)
Design Principles
设计原则
| Principle | Practice |
|---|---|
| Visual hierarchy | Title > description > CTA; clear flow |
| Scannability | Minimal text; benefit-led copy |
| Consistency | Same structure across all cards in a grid |
| Action clarity | One primary CTA per card; avoid choice overload |
| 原则 | 实践方法 |
|---|---|
| 视觉层级 | 标题 > 描述 > CTA;流程清晰 |
| 易扫描性 | 文本精简;文案突出收益 |
| 一致性 | 同一网格内所有卡片的结构保持一致 |
| 操作清晰度 | 每张卡片仅设置一个主要CTA;避免选择过载 |
SEO & Schema
SEO与Schema
- Cards themselves: No specific schema; layout is UI
- Content in cards: Use appropriate schema for the page (Product, Article, ItemList, etc.); see schema-markup
- Images: Alt text on thumbnails; see image-optimization
- Links: Descriptive anchor text; internal linking; see internal-links
- 卡片本身:无特定schema;属于UI布局组件
- 卡片内的内容:根据页面类型使用对应的schema(Product、Article、ItemList等);参考 schema-markup 技能
- 图片:缩略图添加alt文本;参考 image-optimization 技能
- 链接:锚点文本描述清晰;内部链接建设;参考 internal-links 技能
Grid vs List vs Masonry vs Carousel
Grid vs List vs Masonry vs Carousel
| Layout | Best for | Skill |
|---|---|---|
| Grid | Visual content (products, templates, gallery); equal emphasis | grid |
| List | Text-heavy (blog index, docs); compact; scan by title | list |
| Masonry | Varying heights; image gallery, portfolio | masonry |
| Carousel | Limited space; testimonials, logos, featured rotation | carousel |
| 布局类型 | 适用场景 | 关联技能 |
|---|---|---|
| Grid | 视觉内容(产品、模板、图库);内容权重均等 | grid |
| List | 文本密集内容(博客索引、文档);紧凑;可按标题快速扫描 | list |
| Masonry | 高度不统一的内容;图片库、作品集 | masonry |
| Carousel | 空间有限的场景;用户评价、Logo展示、精选内容轮播 | carousel |
Related Skills
关联技能
- products-page-generator: Product cards, grid layout, category pages
- template-page-generator: Template cards, gallery structure
- tools-page-generator: Tool cards, toolkit hub
- features-page-generator: Feature grid/list
- showcase-page-generator: Gallery grid, per-item format
- integrations-page-generator: Catalog grid, integration cards
- category-page-generator: Product grid, consistent layout
- grid: Grid layout for card display; when to use grid
- list: List layout; cards in list format
- masonry: Masonry for varying-height cards (gallery)
- carousel: Carousel for card slides (testimonials, featured)
- hero-generator: Hero vs card—hero is single above-fold; cards are repeated units
- brand-visual-generator: Typography, spacing, visual consistency
- image-optimization: Card thumbnail optimization, alt text, LCP
- products-page-generator:产品卡片、网格布局、分类页面
- template-page-generator:模板卡片、图库结构
- tools-page-generator:工具卡片、工具集合中心
- features-page-generator:功能网格/列表
- showcase-page-generator:图库网格、单项内容格式
- integrations-page-generator:目录网格、集成卡片
- category-page-generator:产品网格、统一布局
- grid:卡片展示的网格布局;网格适用场景
- list:列表布局;列表格式的卡片
- masonry:适配高度不统一卡片的瀑布流布局(图库)
- carousel:卡片轮播实现(用户评价、精选内容)
- hero-generator:Hero与卡片的区别——Hero是首屏单个模块;卡片是可重复单元
- brand-visual-generator:排版、间距、视觉一致性
- image-optimization:卡片缩略图优化、alt文本、LCP