带 HUD 与玻璃胶囊的照片卡片
一张是心率表盘式 HUD,由弧线和圆环组成并显示血氧读数;一张是星期柱状条配两条毛玻璃通知胶囊;一张是由圆点连接的玻璃标签,叠在等高线上。每张下方有小标题。
灵感来自 @uiuxjosh 在 X 上发布的设计由 Now In Code 从零重建
import { HUD } from "./components";
export function Example() {
const progress = useSharedValue(0);
…
export function Example() {
const progress = useSharedValue(0);
…
Agent 提示词
Add the Now In Code component "photo-hud-cards-with-glass-pills" to this project. The full source is attached at the end of this prompt. Put the files under components/photo-hud-cards-with-glass-pills/, 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、Web
- 依赖
- Expo SDK 54+
- 权限
- Pro
- 更新于
- 2026年11月23日
- 许可证
- 无限商业项目
- 原始设计
- @uiuxjosh(X)
你是设计者吗? 请求我们修改或下架此作品.
CLI 与 MCP 服务器 即将推出
在终端添加作品,或让智能体自行获取。在此之前,用“复制提示词”也能做到。 文档
功能说明
三张高大的健康卡片,每张都叠在一张跑步人物的照片上。第一张有心率表盘风格的叠加层,包括大弧线、圆环和刻度标签、血氧读数、两个圆形设备按钮、两行居中的标题、带百分比的体温环和页面圆点。第二张右对齐标题,有三根小型日条、两个带深色圆形图标的磨砂通知药丸(各有两行文字和时间),以及一个圆形玻璃探索按钮。第三张有三个带白点的磨砂标签和竖向轮廓线。每张卡片底部都有一个小标题和三行灰色正文。screen 属性决定显示哪张卡片。
实现方式
共享 JavaScript 核心输出源图像坐标系中的显示列表,React Native 组件用 react-native-svg 在 viewBox 中绘制它,viewBox 会按所请求的卡片宽度缩放。照片是底层的内置 Image 图层。磨砂药丸和按钮由半透明白色填充加上叠在照片上的 expo-blur BlurView 组成,下方的渐变用于压暗文字区域。可按压区域通过回调报告被点击的元素。文件中未发现动画循环。
适用场景
- 每张卡片展示一项功能的健身或健康引导轮播
- 以照片为主、在图片上叠加数据或状态药丸的卡片
- 叠在英雄图片上的通知式磨砂药丸
依赖
expo-blurreact-native-svgreact-native标签
徽章奖章卡片轮播标签胶囊深色杂志排版渐变健康健身液态玻璃通知