Web: wypelnienie ekranu makiety telefonu - lista cwiczen, kafelki pomiarow, pasek tab iOS

This commit is contained in:
tisachi
2026-10-20 03:57:19 +02:00
parent fd8fb2883c
commit 96354bf744

View File

@@ -1,4 +1,4 @@
import { Wifi } from 'lucide-react';
import { Building2, CalendarClock, ChartNoAxesColumn, Dumbbell, User, Wifi } from 'lucide-react';
import { StreakDots } from './StreakDots';
function SignalIcon() {
@@ -83,12 +83,34 @@ export function PhoneMock() {
</span>
<span className="font-mono text-[10px] text-dim">sesja · dzień 3</span>
</div>
<p className="mt-2 font-display text-[15px] font-semibold text-ink">
<div className="mt-2.5 flex flex-col gap-1.5 border-b border-line pb-2.5 text-[11.5px]">
<span className="flex items-center justify-between text-dim">
<span className="flex items-center gap-1.5">
<span aria-hidden="true" className="text-accent">
✓
</span>{' '}
Przysiady
</span>
<span className="font-mono text-[10.5px]">4 × 8 @ 100 kg</span>
</span>
<span className="flex items-center justify-between text-dim">
<span className="flex items-center gap-1.5">
<span aria-hidden="true" className="text-accent">
✓
</span>{' '}
Wyciskanie skos
</span>
<span className="font-mono text-[10.5px]">3 × 10 @ 60 kg</span>
</span>
</div>
<p className="mt-2.5 font-display text-[15px] font-semibold text-ink">
Wyciskanie sztangi
</p>
<p className="font-mono text-[11px] text-dim">4 x 8 @ 80 kg · RIR 2</p>
<div className="mt-3 flex items-center justify-between text-[11px] text-dim">
<div className="mt-2.5 flex items-center justify-between text-[11px] text-dim">
<span>Seria 3/4</span>
<span className="font-mono text-accent">powt. 8</span>
</div>
@@ -96,25 +118,68 @@ export function PhoneMock() {
<div className="h-full w-3/4 rounded-full bg-(image:--btn-grad)" />
</div>
<div className="mt-3 flex items-center justify-between rounded-md border border-line bg-input px-2.5 py-2">
<div className="mt-2.5 flex items-center justify-between rounded-md border border-line bg-input px-2.5 py-2">
<span className="text-[11px] text-dim">Przerwa</span>
<span className="font-mono text-sm font-semibold text-accent">0:45</span>
</div>
<div className="mt-3 h-8 rounded-md bg-(image:--btn-grad) text-center font-sans text-[12.5px] font-bold leading-8 text-accent-ink shadow-(--btn-shadow)">
<div className="mt-2.5 h-8 rounded-md bg-(image:--btn-grad) text-center font-sans text-[12.5px] font-bold leading-8 text-accent-ink shadow-(--btn-shadow)">
Norma spełniona
</div>
</div>
{/* killstreak */}
<div className="mx-3 rounded-xl border border-line bg-card p-3">
<div className="flex items-center justify-between text-[11px]">
<span className="font-semibold text-ink">Killstreak</span>
<span className="font-mono text-accent">23 · rekord 41</span>
{/* dwa kafelki: killstreak i pomiary */}
<div className="mx-3 grid grid-cols-2 gap-2.5">
<div className="rounded-xl border border-line bg-card p-3">
<span className="text-[11px] font-semibold text-ink">Killstreak</span>
<StreakDots total={10} filled={8} className="mt-2 gap-[3px]" />
<p className="mt-1.5 font-mono text-[10px] text-accent">23 dni · rekord 41</p>
</div>
<div className="rounded-xl border border-line bg-card p-3">
<span className="text-[11px] font-semibold text-ink">Waga</span>
<svg viewBox="0 0 90 26" className="mt-1.5 h-6 w-full" aria-hidden="true">
<polyline
points="2,6 14,9 26,8 38,12 50,14 62,13 74,18 88,21"
fill="none"
stroke="var(--accent)"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
<circle cx="88" cy="21" r="2" fill="var(--accent)" />
</svg>
<p className="mt-1 font-mono text-[10px] text-accent">78,1 kg · −4,3 / 12 tyg.</p>
</div>
<StreakDots className="mt-2" />
<p className="mt-1.5 font-mono text-[10px] text-dim">ostatnie 30 dni</p>
</div>
{/* następna sesja */}
<div className="mx-3 flex items-center justify-between rounded-xl border border-line bg-card px-3.5 py-2.5">
<span className="flex items-center gap-2 text-[11.5px] text-ink">
<CalendarClock size={13} aria-hidden="true" className="text-accent" />
Czwartek · Wyciąg i plecy
</span>
<span className="font-mono text-[10px] text-dim">4 ćwiczenia</span>
</div>
</div>
{/* dolny pasek nawigacji iOS */}
<div className="flex items-end justify-around border-t border-line bg-bg/95 px-2 pt-2 pb-6">
{[
{ icon: Dumbbell, label: 'Trening', active: true },
{ icon: ChartNoAxesColumn, label: 'Pomiary', active: false },
{ icon: Building2, label: 'Siłownia', active: false },
{ icon: User, label: 'Profil', active: false },
].map((tab) => (
<span
key={tab.label}
className={`flex flex-col items-center gap-0.5 text-[9.5px] ${
tab.active ? 'text-accent' : 'text-dim'
}`}
>
<tab.icon size={15} aria-hidden="true" strokeWidth={tab.active ? 2.4 : 1.8} />
{tab.label}
</span>
))}
</div>
{/* pasek home iOS */}