nested-container-frames

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Nested Container Frames Skill

Nested Container Frames 技能

Use When

适用场景

  • A layout needs a container-in-container system with visible outer bounds, inset inner frames, and layered page structure.
  • 布局需要具备可见外部边界、内边距内部frames以及分层页面结构的容器嵌套系统时。

Workflow

工作流程

  1. Define an outer centered container that controls the global page width.
  2. Add visible vertical boundary lines and small corner markers to establish the frame.
  3. Place inner containers inset from the outer edges using consistent padding.
  4. Give each inner level its own background, border, radius, and spacing rhythm.
  5. Use the frame hierarchy to separate hero, feature, proof, and CTA modules without adding heavy cards.
  1. 定义一个居中的外部容器,用于控制页面全局宽度。
  2. 添加可见的垂直边界线和小型角落标记来构建frame。
  3. 使用统一的padding放置与外部边缘有内边距的内部容器。
  4. 为每个内部层级设置专属的背景、边框、圆角和间距节奏。
  5. 利用frame层级区分hero、feature、proof和CTA模块,无需添加厚重的卡片。

Guardrails

注意事项

  • Do not nest cards inside cards until the layout feels boxed in.
  • Do not let frame lines overpower content readability.
  • 除非布局显得过于局促,否则不要在卡片内嵌套卡片。
  • 不要让frame线条影响内容的可读性。