点阵足迹平衡卡片
粉绿紫弥散毛玻璃卡上有两只点阵足迹、带折射的玻璃钮与十字虚线轴、51 / 49 大数字、步频和步幅滑条。入场时逐行点亮,点脚掌移动重心,拖滑条改步幅。
灵感来自 Pinterest 上的一条帖子由 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 "dot-matrix-footprint-balance-card" to this project. The full source is attached at the end of this prompt. Put the files under components/dot-matrix-footprint-balance-card/, 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 作品。提示词包含完整源码。开始使用
详情
你是设计者吗? 请求我们修改或下架此作品.
CLI 与 MCP 服务器 即将推出
在终端添加作品,或让智能体自行获取。在此之前,用“复制提示词”也能做到。 文档
功能说明
显示跑步平衡的磨砂玻璃卡片。两只脚印由小实心点和空心圆环组成的网格绘制,并被水平和垂直的虚线坐标轴穿过。脚趾和脚跟处各有四个圆形玻璃按钮,内部有花瓣状折射,其中一个带彩虹边缘。脚印下方,左右两侧的大号百分比淡入显示,随后是步频和步幅读数以及一个黄色滑块。点击某只脚会改变平衡并更新百分比,拖动步幅滑块会移动其把手,卡片在进入时带有动画。可以开启缓慢的呼吸动效。
实现方式
共享 JavaScript 核心生成 SVG 显示列表,React Native 组件用 react-native-svg 渲染,使用渐变、遮罩、裁剪路径和图案来实现玻璃、颗粒和光晕效果。点的位置是保存为数据的测量几何图形,而非图片。触摸由 PanResponder 处理;入场和平衡变化在 requestAnimationFrame 循环中运行。该卡片也可放在带柔和彩色背景的全屏容器中使用。
适用场景
- 带左右平衡的跑步或健身数据摘要
- 用于身体、地图或热力数据的点阵网格式展示
- 位于彩色背景之上的磨砂摘要卡片
依赖
react-native-svgreact-native标签
数据分析卡片图表数据填充光效辉光颗粒质感网格健康健身液态玻璃滑杆