一个移动 App 的设计稿


做对了什么
- 问候语(名字用青绿色强调色)、日期和圆角摘要卡片。
- 用 SVG 绘制的进度环,填充比例对应 5 个中的 3 个,旁边是“Keep going!”提示。
- 五行习惯的勾选和未勾选状态都正确,底部标签栏使用 Font Awesome 图标,当前标签带下划线。
需要手动修改的地方
- 每个习惯的 emoji 图标被写成了以 emoji 为文字的 placehold.co 图片,显示出来是空白方块。直接使用 emoji,或换成你自己的图标。
- 标签栏固定在屏幕底部,但列表没有留出内边距,所以挡住了最后一个习惯。给列表加上与标签栏等高的底部内边距。
<body class="text-[#0a2533] min-h-screen flex flex-col">
<div class="max-w-md mx-auto w-full px-6 pt-12 pb-24 flex-grow">
<!-- Header -->
<header class="mb-8">
<h1 class="text-4xl font-bold leading-tight">
Good morning,
<br/>
<span class="text-[#006d6d]">
Ana
</span>
</h1>
<p class="text-[#708090] mt-2 text-lg">
Tuesday, 23 September
</p>
</header>
<!-- Progress Card -->
<div class="bg-[#eef7f6] rounded-3xl p-6 mb-8 flex items-center">
<div class="relative flex items-center justify-center w-32 h-32 mr-6">
<svg class="w-full h-full">
<circle class="text-[#d1e5e3]" cx="64" cy="64" fill="transparent" r="48" stroke="currentColor" stroke-width="10">
</circle>
<circle class="text-[#006d6d] progress-ring__circle" cx="64" cy="64" fill="transparent" r="48" stroke="currentColor" stroke-dasharray="301.59" stroke-dashoffset="120.63" stroke-linecap="round" stroke-width="10">
</circle>
</svg>
<div class="absolute inset-0 flex flex-col items-center justify-center text-center">
<span class="text-3xl font-bold text-[#006d6d]">