A solar energy bento that puts live roof output beside battery and grid credit
Show solar generation, battery reserve, grid export credit and EV charging status in one dark-neutral bento. One amber-400 tile highlights live roof output while WButton tabs switch between live flow, tariffs and history.
WDiv(
className: '''
w-full px-3 py-6
flex flex-col gap-2
bg-zinc-950 dark:bg-zinc-950
''',
children: [
WDiv(
className: 'flex flex-col px-1 pb-3',
children: [
WText('Home Energy', className: 'text-2xl font-bold text-white dark:text-white'),
WText('Fri 4 Dec, net surplus +1.8 kW', className: 'text-sm text-zinc-400 dark:text-zinc-400'),
],
),
WDiv(
className: 'flex flex-row gap-2',
children: [
WDiv(
className: 'flex-1 flex flex-col gap-2',
children: [
WDiv(
className: '''
h-32 p-4 rounded-2xl
flex flex-col justify-between
bg-zinc-800 dark:bg-zinc-800
''',
children: [
WText('Battery', className: 'text-xs text-zinc-400 dark:text-zinc-400'),
WText('84%', className: 'text-3xl font-bold text-white dark:text-white'),
],
),
WDiv(
className: '''
h-32 p-4 rounded-2xl
flex flex-col justify-between
bg-zinc-800 dark:bg-zinc-800
''',
children: [
WText('Grid export', className: 'text-xs text-zinc-400 dark:text-zinc-400'),
WText('+\$4.20', className: 'text-3xl font-bold text-white dark:text-white'),
],
),
],
),
WDiv(
className: '''
flex-1 h-66 p-4 rounded-2xl
flex flex-col justify-between
bg-amber-400 dark:bg-amber-400
''',
children: [
WIcon(Icons.sunny, className: 'size-8 text-zinc-950 dark:text-zinc-950'),
WDiv(
className: 'flex flex-col',
children: [
WText('Solar roof, live', className: 'text-xs text-zinc-950 dark:text-zinc-950'),
WText('4.6 kW', className: 'text-3xl font-bold text-zinc-950 dark:text-zinc-950'),
],
),
],
),
],
),
WDiv(
className: '''
h-24 px-4 rounded-2xl
flex flex-col justify-center
bg-zinc-800 dark:bg-zinc-800
''',
children: [
WText('Wallbox EV', className: 'text-xs text-zinc-400 dark:text-zinc-400'),
WText('Ready 22:00', className: 'text-3xl font-bold text-white dark:text-white'),
],
),
WDiv(
className: '''
flex flex-row gap-1 mt-3 p-1
rounded-2xl
bg-zinc-900 dark:bg-zinc-900
''',
children: [
WButton(
onTap: () {},
className: '''
w-28 h-11 rounded-xl
flex items-center justify-center
bg-zinc-700 dark:bg-zinc-700
''',
child: WText('Live', className: 'text-sm text-white dark:text-white'),
),
WButton(
onTap: () {},
className: '''
w-28 h-11 rounded-xl
flex items-center justify-center
''',
child: WText('Tariffs', className: 'text-sm text-zinc-400 dark:text-zinc-400'),
),
WButton(
onTap: () {},
className: '''
w-28 h-11 rounded-xl
flex items-center justify-center
''',
child: WText('History', className: 'text-sm text-zinc-400 dark:text-zinc-400'),
),
],
),
],
)
More like this
-
An annual billing comparison that puts the yearly saving beside the daily rate
Help subscribers weigh monthly flexibility against annual savings without mental math. Two matched
WCardpanels pairborder-2emerald highlights with per-day rates and a clear $96 yearly delta. -
A coworking day pass that puts your desk, Wi-Fi and door PIN on one stub
Clear the morning check-in queue with a paper-style pass that shows your reserved pod, hours and access PIN at a glance. Built with an
overflow-hiddenticket container, edge-notched perforation row and a single status stamp. -
A charger reservation pass that makes the held bay and tariff clear
Give drivers a reservation they can read at a glance: a held connector, arrival deadline and energy tariff above a tear-off access code. Paper styling and a red
WBadgekeep the confirmation unmistakable.