Fix card header alignment and add weather to footer

This commit is contained in:
2025-08-30 22:30:17 +02:00
parent 0347ead200
commit 59dc667c15
3 changed files with 11 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ export default function Card({
{header && ( {header && (
<CardHeader icon={icon} content={name} isActive={active} /> <CardHeader icon={icon} content={name} isActive={active} />
)} )}
{children} <div className={style.cardContent}>{children}</div>
</div> </div>
); );
} }

View File

@@ -1,7 +1,7 @@
.card { .card {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: flex-start;
background-color: #c0c0c0; background-color: #c0c0c0;
border-top: 2px solid white; border-top: 2px solid white;
border-left: 2px solid white; border-left: 2px solid white;
@@ -9,3 +9,8 @@
border-right: 2px solid #828282; border-right: 2px solid #828282;
margin: 10px; margin: 10px;
} }
.cardContent {
display: flex;
height: 100%;
}

View File

@@ -1,10 +1,8 @@
import style from "./style.module.css"; import style from "./style.module.css";
import weedImage from "/img/weed.png" import weedImage from "/img/weed.png";
export default function Footer() { export default function Footer() {
return ( return (
<div className={style.container}> <div className={style.container}>
<div className={style.taskbar}> <div className={style.taskbar}>
@@ -29,6 +27,9 @@ export default function Footer() {
<span className={style.window}> <span className={style.window}>
<span className={style.windowIcon}>🧹</span>Flatastic <span className={style.windowIcon}>🧹</span>Flatastic
</span> </span>
<span className={style.window}>
<span className={style.windowIcon}></span>Weather
</span>
</div> </div>
</div> </div>
</div> </div>