健身计划、报告与个人页
Discover 有主训练卡和推荐列表,Report 有日期条、统计卡和带可拖动高亮柱的体重曲线,Profile 有设置列表。中央带 AI 圆球的玻璃 Tab 栏切换三屏。
灵感来自 @SheikhRaih100 在 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 "fitness-planner-report-and-profile" to this project. The full source is attached at the end of this prompt. Put the files under components/fitness-planner-report-and-profile/, 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月27日
- 许可证
- 无限商业项目
- 原始设计
- @SheikhRaih100(X)
你是设计者吗? 请求我们修改或下架此作品.
CLI 与 MCP 服务器 即将推出
在终端添加作品,或让智能体自行获取。在此之前,用“复制提示词”也能做到。 文档
功能说明
三个深色屏幕,背景是淡绿色,用于健身计划应用:发现页、报告页和个人页。发现页显示英雄照片卡片、缩略图卡片,以及带有玻璃搜索和扫描按钮的悬浮标签栏。报告页有一周日期条、千卡卡片和折线图;点击或拖动时,高亮柱和圆点会吸附到最近的一天。个人页列出带彩色图标的设置项。点击日期会把白色药丸移动到该日期,箭头切换月份,切换标签时选中的药丸滑动,按下的行会降低透明度。
实现方式
共享 JavaScript 核心为每个屏幕构建显示列表,reducer 处理点击、日期选择、月份切换和图表拖动。React Native 组件用 react-native-svg 渲染列表,玻璃标签栏和按钮使用 expo-blur 的 BlurView,并通过 LayoutAnimation 复用节点 id 在状态之间移动元素。卡片是着色覆盖层,绿色背景由拟合的高斯斑点绘制为渐变。图表曲线由描摹的锚点转换为三次贝塞尔曲线。发现页和个人页垂直滚动。
适用场景
- 带有按日期查看报告功能的健身或训练计划应用
- 将玻璃标签栏与着色卡片结合的深色界面
- 吸附到离散日期的可拖动图表读数
依赖
react-native-svgexpo-blurreact-native标签
AI 助手头像按钮卡片图表交叉淡化深色拖拽渐变健康健身首页图标液态玻璃列表选择器按压反馈个人主页进度条状态切换滑动手势标签栏