A e s t h e t i c s

This commit is contained in:
2025-08-28 00:55:34 +02:00
parent 7f8fee99ce
commit f40ab6eb63
4 changed files with 44 additions and 48 deletions

View File

@@ -1,42 +1,7 @@
#root { #root {
height: 100vh;
max-width: 1280px; max-width: 1280px;
margin: 0 auto; margin: 0 auto;
padding: 2rem; padding: 0;
text-align: center; text-align: center;
} }
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafbaa);
}
@keyframes logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion: no-preference) {
a:nth-of-type(2) .logo {
animation: logo-spin infinite 20s linear;
}
}
.card {
padding: 2em;
}
.read-the-docs {
color: #888;
}

View File

@@ -1,14 +1,21 @@
.dashboard { .dashboard {
display: flex;
flex-direction: column;
height: 100%;
} }
.cardWrapper { .cardWrapper {
margin: 30px;
height: 100%;
gap: 30px;
flex-direction: column;
display: flex;
justify-content: flex-start;
} }
.card { .card {
border-radius: 10px; border-radius: 10px;
padding: 1px 100px 30px 100px; padding: 1px 100px 30px 100px;
margin-bottom: 20px;
border: 1px solid rgba(220, 220, 220, 0.4); border: 1px solid rgba(220, 220, 220, 0.4);
box-shadow: 5px 5px 7px rgba(220, 220, 220, 0.5); box-shadow: 5px 5px 7px rgba(220, 220, 220, 0.5);
} }

View File

@@ -3,6 +3,8 @@ import { useEffect } from "react";
import type { FlatasticChore } from "@/types/flatasticChore"; import type { FlatasticChore } from "@/types/flatasticChore";
import style from "./style.module.css";
const idToNameMap: Record<number, string> = { const idToNameMap: Record<number, string> = {
1836104: "Gruber", 1836104: "Gruber",
1836101: "Darius", 1836101: "Darius",
@@ -25,11 +27,13 @@ export default function Flatastic() {
return ( return (
<div> <div>
<h1>Flatastic Chores</h1> <h1>Flatastic Chores</h1>
<ul> <ul className={style.choreList}>
{chores.map((chore: FlatasticChore) => ( {chores.map((chore: FlatasticChore) => (
<li key={chore.id} style={{ textAlign: "left" }}> <li key={chore.id} className={style.chore}>
{idToNameMap[chore.currentUser]}: {chore.title} - <span className={style.userName}>
Points: {chore.points} {idToNameMap[chore.currentUser]}
</span>
: {chore.title} - {"🪙".repeat(chore.points)}
</li> </li>
))} ))}
</ul> </ul>

View File

@@ -0,0 +1,20 @@
.choreList {
list-style-type: none;
display: flex;
flex-direction: row;
flex-wrap: wrap;
border-radius: 10px;
gap: 10px;
padding: 10px 0;
}
.chore {
padding: 5px 10px;
border: 1px solid rgba(220, 220, 220, 0.4);
box-shadow: 5px 5px 7px rgba(220, 220, 220, 0.5);
text-align: left;
}
.userName {
font-weight: bold;
}