masonry by kostja94/marketing-skills
npx skills add https://github.com/kostja94/marketing-skills --skill masonry为高度不固定的内容提供瀑布流布局设计指南。瀑布流布局将项目按列堆叠,不形成明确的行;项目会像砖墙一样填补空隙。最适合用于图片画廊、作品集和以探索为主的平台。
调用时机:首次使用时,如果适用,可以用1-2句话介绍此技能涵盖的内容及其重要性,然后提供主要输出。后续使用或用要求跳过时,直接提供主要输出。
| 使用瀑布流布局当 | 使用网格布局当 |
|---|---|
| 高度不固定 | 项目高度一致 |
| 图片为主;长宽比多样 | 产品、模板(样式一致) |
| 画廊、作品集、展示 | 卡片网格 |
| 探索、浏览;视觉优先 | 结构化浏览 |
查看 grid 了解等高网格;查看 card 了解卡片结构。
| 布局 | 结构 | 最适合 |
|---|---|---|
| Grid | 等行等列;项目统一 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 产品、模板、功能 |
| Masonry | 列布局;项目无行堆叠;填补空隙 | Pinterest、Behance;内容多样 |
| Bento | 有意的区块划分;预定义尺寸 | 首页、仪表板;苹果风格 |
| Carousel | 幻灯片;一次显示一个/少数;滑动/点击 | 推荐语、徽标、特色项目;见 carousel |
| 元素 | 用途 |
|---|---|
| Columns | 2–4 列;流动或固定 |
| Items | 高度不固定;保持自然长宽比 |
| Gap | 水平和垂直间距保持一致 |
| Order | 在列内从上到下填充 |
column-count;简单,无需 JS;但项目流向是先从上到下,再到下一列grid-auto-flow: dense:近似效果;无需 JS;查看 grid 了解密集网格注意:纯粹的瀑布流布局可能带来可访问性挑战(屏幕阅读器顺序);确保 DOM 顺序符合逻辑。
瀑布流 + 无限滚动 = 内容无法被抓取。 瀑布流画廊常使用无限滚动或懒加载;爬虫无法模拟滚动或点击“加载更多”,因此初始视图之外的内容无法被发现。
| 如果你使用 | 那么 |
|---|---|
| Infinite scroll | 提供带有完整 URL 的分页组件页面;实现 pushState;查看 site-crawlability 了解对搜索友好的无限滚动实现 |
| Lazy load | 确保内容存在于 HTML 中或可通过可抓取的链接访问 |
| Pagination | 对 SEO 关键内容优先使用;爬虫可以跟踪下一页/上一页链接 |
| 原则 | 实践 |
|---|---|
| Visual-first | 缩略图;文字最少化 |
| Aspect ratio | 保持原始比例;避免强制裁剪 |
| Lazy load | 图片较多时;滚动时加载 |
| Performance | 瀑布流可能较重;在简单情况下考虑使用网格 |
| 使用案例 | 格式 | 页面技能 |
|---|---|---|
| Showcase / Gallery | 用户作品;尺寸多样 | showcase-page-generator |
| Portfolio | 项目;混合媒体 | — |
| Pinterest-style | 图钉;探索发现 | — |
| Image-heavy blog | 包含多种图片的博客 | blog-page-generator |
每周安装数
157
代码仓库
GitHub Stars
237
首次出现
Mar 6, 2026
安全审计
安装于
cursor144
kimi-cli143
gemini-cli143
github-copilot143
amp143
cline143
Guides masonry layout design for content with varying heights. Masonry stacks items in columns without distinct rows; items fill gaps like a brick wall. Best for image galleries, portfolios, and discovery-focused platforms.
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.
| Use masonry when | Use grid when |
|---|---|
| Varying heights | Equal-height items |
| Image-heavy; varied aspect ratios | Products, templates (consistent) |
| Gallery, portfolio, showcase | Card grid |
| Discovery, browsing; visual-first | Structured browsing |
See grid for equal-height grid; card for card structure.
| Layout | Structure | Best for |
|---|---|---|
| Grid | Equal rows and columns; uniform items | Products, templates, features |
| Masonry | Columns; items stack without rows; gaps filled | Pinterest, Behance; varied content |
| Bento | Intentional sections; predefined sizes | Homepage, dashboard; Apple-style |
| Carousel | Slides; one/few visible; swipe/click | Testimonials, logos, featured items; see carousel |
| Element | Purpose |
|---|---|
| Columns | 2–4 columns; fluid or fixed |
| Items | Varying heights; natural aspect ratio |
| Gap | Consistent horizontal and vertical spacing |
| Order | Top-to-bottom fill within columns |
column-count; simple, no JS; but items flow top-to-bottom then next columngrid-auto-flow: dense: Approximate; no JS; see grid for dense gridNote : Pure masonry can create accessibility challenges (screen reader order); ensure logical DOM order.
Masonry + infinite scroll = content not crawlable. Masonry galleries often use infinite scroll or lazy load; crawlers cannot emulate scroll or "Load more" clicks, so content beyond the initial view is not discoverable.
| If you use | Then |
|---|---|
| Infinite scroll | Provide paginated component pages with full URLs; implement pushState; see site-crawlability for search-friendly infinite scroll |
| Lazy load | Ensure content exists in HTML or is reachable via crawlable links |
| Pagination | Prefer for SEO-critical content; crawlers can follow next/prev links |
Reference : Google – Infinite scroll search-friendly recommendations
| Principle | Practice |
|---|---|
| Visual-first | Thumbnails; minimal text |
| Aspect ratio | Preserve original; avoid forced cropping |
| Lazy load | Many images; load on scroll |
| Performance | Masonry can be heavy; consider grid for simpler cases |
| Use case | Format | Page Skill |
|---|---|---|
| Showcase / Gallery | User work; varied sizes | showcase-page-generator |
| Portfolio | Projects; mixed media | — |
| Pinterest-style | Pins; discovery | — |
| Image-heavy blog | Blog with varied images | blog-page-generator |
Weekly Installs
157
Repository
GitHub Stars
237
First Seen
Mar 6, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
cursor144
kimi-cli143
gemini-cli143
github-copilot143
amp143
cline143
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
116,600 周安装