A screen-time stop that meets you at your daily limit
Make the daily scrolling limit a moment to act, not another report to ignore. A full-colour stop sign with four oversized lines and one clear exit, built with WButton.
WDiv(
className: 'w-full p-4',
child: WDiv(
className: '''
w-full
flex flex-col gap-6
p-6
bg-rose-400 dark:bg-rose-400
''',
children: [
WDiv(
className: 'flex flex-row items-center gap-2',
children: [
WIcon(Icons.do_not_disturb, className: 'size-6 text-black dark:text-black'),
WText('Daily scroll limit', className: '''
text-lg font-bold
text-black dark:text-black
'''),
],
),
WDiv(
className: 'flex flex-col',
children: [
WText('Your', className: '''
text-6xl font-black tracking-tight
text-black dark:text-black
'''),
WText('scroll', className: '''
text-6xl font-black tracking-tight
text-black dark:text-black
'''),
WText('stops', className: '''
text-6xl font-black tracking-tight
text-black dark:text-black
'''),
WText('here.', className: '''
text-6xl font-black tracking-tight
text-black dark:text-black
'''),
],
),
WText('45 of 45 minutes used.\nA fresh allowance at midnight.', className: '''
text-lg font-semibold
text-black dark:text-black
'''),
WDiv(className: 'h-8'),
WButton(
onTap: () {},
className: '''
w-full py-4 rounded-full
flex items-center justify-center
bg-black dark:bg-black
hover:bg-gray-900 dark:hover:bg-gray-900
focus:ring-2
focus:ring-black dark:focus:ring-black
disabled:opacity-50
''',
child: WText('Take a screen-free break', className: '''
text-center text-lg font-bold
text-rose-300 dark:text-rose-300
'''),
),
],
),
)
More like this
-
A hydration dial that makes every glass count
Show daily water intake against a personal goal, with twelve glass-sized ticks and a one-tap logging control. A
rounded-fullgauge keeps the total readable while undo stays within reach. -
A repair tracker that makes warranty coverage clear
Give a jacket repair a visible path from arrival to return, with the covered cost confirmed at the approval step. A tinted route and connected
w-0.5rail make the current stage easy to find without another support message. -
A multisport calendar that makes the ride-to-run handoff clear
Keep a brick workout in order with a seven-day strip and duration-sized session blocks. Today's ride, transition and run stay together on a tinted calendar, with
grid-cols-7keeping the week readable at phone width.