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 && (
<CardHeader icon={icon} content={name} isActive={active} />
)}
{children}
<div className={style.cardContent}>{children}</div>
</div>
);
}

View File

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

View File

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