Enrich home page

This commit is contained in:
2024-09-26 23:14:18 +02:00
parent 3f41269c0b
commit cb798dfd14
4 changed files with 30 additions and 15 deletions

View File

@ -4,11 +4,12 @@ import React, { PropsWithChildren } from "react";
export function SolarEnergyRouteContainer(
p: {
label: string;
homeWidget?: boolean;
actions?: React.ReactElement;
} & PropsWithChildren
): React.ReactElement {
return (
<div style={{ margin: "50px" }}>
<div style={{ margin: p.homeWidget ? "0px" : "50px" }}>
<div
style={{
display: "flex",
@ -17,7 +18,7 @@ export function SolarEnergyRouteContainer(
marginBottom: "20px",
}}
>
<Typography variant="h4">{p.label}</Typography>
<Typography variant={p.homeWidget ? "h6" : "h4"}>{p.label}</Typography>
{p.actions ?? <></>}
</div>