分段准备度环健康仪表盘
健康首页:琥珀光晕上的五段式读数环配 63% 大字,下方是带折线、按压会回弹的两列指标卡。Tab 栏实时模糊并在边缘折射下层内容,选中药丸以弹簧滑动。
灵感来自 @dannyacevedoooo 在 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 "segmented-readiness-ring-health-dashboard" to this project. The full source is attached at the end of this prompt. Put the files under components/segmented-readiness-ring-health-dashboard/, 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年10月11日
- 许可证
- 无限商业项目
- 原始设计
- @dannyacevedoooo(X)
你是设计者吗? 请求我们修改或下架此作品.
CLI 与 MCP 服务器 即将推出
在终端添加作品,或让智能体自行获取。在此之前,用“复制提示词”也能做到。 文档
功能说明
一个深色健康首页,核心是一个约 210 度的大弧形,由五个带小间隙的圆角段组成。当前激活的段呈金色并带有药丸形的旋钮,其余段为分级灰色。弧形内部是大号的准备度分数(带百分号)和简短说明。下方是双列滚动的指标卡片网格,每张卡片有标题、数值或占位用的破折号、一行小圆点和一个彩色图标块。底部是悬浮的玻璃标签栏,选中的药丸会在标签之间滑动。卡片按下时会略微缩小,松开后弹回。
实现方式
弧形、折线图和图标都由 react-native-svg 根据共享 JavaScript 核心中的几何和颜色数据绘制,图标是手写的路径。卡片按压反馈和标签药丸的滑动使用 React Native 内置的 Animated 弹簧并启用 native driver,而不是 Reanimated。标签栏的玻璃是 expo-blur 的 BlurView,内容在 ScrollView 中滚动。弧形后方的暖色光晕是拟合采样点的 SVG 渐变。字体为系统字体,数字使用圆润的系统字体样式。
适用场景
- 健康应用中的恢复、睡眠或准备度摘要首页
- 任何带有一个主要分数和一组辅助指标网格的仪表盘
- 带有滑动选中指示器、位于滚动内容之上的底部标签栏
依赖
expo-blurreact-native-svgreact-native标签
卡片情感陪伴深色渐变健康健身首页图标液态玻璃极简数字按压反馈弹簧标签栏