带着色器封面的博客列表页
桌面端博客索引页:细灰外框、分类胶囊、搜索框和宽幅 Featured 大卡,以及方向模糊、变焦模糊、软边球体封面的文章卡。可点胶囊筛选、搜索过滤,悬停时封面放大。封面用 SkSL,运行于 CanvasKit 与 Skia。
灵感来自 @basit_designs 在 X 上发布的设计由 Now In Code 从零重建
import { Piece } from "./components";
export function Example() {
const progress = useSharedValue(0);
…
export function Example() {
const progress = useSharedValue(0);
…
Agent 提示词
Add the Now In Code component "blog-index-with-shader-covers" to this project. The full source is attached at the end of this prompt. Put the files under components/blog-index-with-shader-covers/, install the listed dependencies with `npx expo install`, and render it on a route I can open. Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply. === Source files are attached here for paid plans ===
Pro 作品。提示词包含完整源码。开始使用
详情
- 平台
- iOS、Android
- 依赖
- Expo SDK 54+
- 权限
- Pro
- 更新于
- 2026年11月20日
- 许可证
- 无限商业项目
- 原始设计
- @basit_designs(X)
你是设计者吗? 请求我们修改或下架此作品.
CLI 与 MCP 服务器 即将推出
在终端添加作品,或让智能体自行获取。在此之前,用“复制提示词”也能做到。 文档
功能说明
一个桌面宽度的博客索引页,白色页面上有细灰色边框线和十字分隔线。页面包含大标题和两行副标题、一排分类胶囊、圆角搜索框,以及文章卡片网格。第一行是一张宽幅精选卡片,封面是橙色的模糊玻璃球,旁边是一张较小的卡片,封面为绿色的斜向动态模糊。第二行有一张暖灰色品牌卡片、一张青色丝绸折纹封面卡片,以及一张深红色径向爆发封面卡片。选择分类会淡出其他分类的卡片,在搜索框输入会按标题和正文过滤,悬停或按下卡片时,封面会缓慢放大几个百分点。
实现方式
四张封面图都不是图片。每张都是 Skia 绘制的程序化 SkSL 着色器,网页预览与 React Native 使用同一份着色器源码。共享的 JavaScript 核心保存网格布局,react-native-svg 和 Animated 负责周围的页面、胶囊、搜索图标以及被过滤卡片的淡出。网格按 1440 点宽度设计。网页端附带一份已打包的 CanvasKit 构建。设计中的字体是紧凑的无衬线字体族。
适用场景
- 带有独特生成封面的博客、更新日志或新闻索引
- 带分类胶囊和实时搜索的可过滤卡片网格
- 希望封面无需图片文件的营销网站
依赖
@shopify/react-native-skiareact-native-svgreact-native标签
模糊过渡卡片标签胶囊杂志排版渐变网格列表内容阅读搜索栏着色器