From f40ab6eb63153602e2bd38855157bff2da4a114f Mon Sep 17 00:00:00 2001 From: Darius Schefer Date: Thu, 28 Aug 2025 00:55:34 +0200 Subject: [PATCH] A e s t h e t i c s --- src/App.css | 39 ++--------------------- src/components/Dashboard/style.module.css | 21 ++++++++---- src/components/Flatastic/Flatastic.tsx | 12 ++++--- src/components/Flatastic/style.module.css | 20 ++++++++++++ 4 files changed, 44 insertions(+), 48 deletions(-) diff --git a/src/App.css b/src/App.css index f44fb79..527b0d1 100644 --- a/src/App.css +++ b/src/App.css @@ -1,42 +1,7 @@ #root { + height: 100vh; max-width: 1280px; margin: 0 auto; - padding: 2rem; + padding: 0; 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; -} diff --git a/src/components/Dashboard/style.module.css b/src/components/Dashboard/style.module.css index 33f2548..1823727 100644 --- a/src/components/Dashboard/style.module.css +++ b/src/components/Dashboard/style.module.css @@ -1,18 +1,25 @@ .dashboard { - + display: flex; + flex-direction: column; + height: 100%; } .cardWrapper { + margin: 30px; + height: 100%; + gap: 30px; + flex-direction: column; + display: flex; + justify-content: flex-start; } .card { - border-radius: 10px; - padding: 1px 100px 30px 100px; - margin-bottom: 20px; - border: 1px solid rgba(220, 220, 220, 0.4); - box-shadow: 5px 5px 7px rgba(220, 220, 220, 0.5); + border-radius: 10px; + padding: 1px 100px 30px 100px; + border: 1px solid rgba(220, 220, 220, 0.4); + box-shadow: 5px 5px 7px rgba(220, 220, 220, 0.5); } .footer { - background-color: rgba(220, 220, 220, 0.5); + background-color: rgba(220, 220, 220, 0.5); } diff --git a/src/components/Flatastic/Flatastic.tsx b/src/components/Flatastic/Flatastic.tsx index cea8544..bf9c813 100644 --- a/src/components/Flatastic/Flatastic.tsx +++ b/src/components/Flatastic/Flatastic.tsx @@ -3,6 +3,8 @@ import { useEffect } from "react"; import type { FlatasticChore } from "@/types/flatasticChore"; +import style from "./style.module.css"; + const idToNameMap: Record = { 1836104: "Gruber", 1836101: "Darius", @@ -25,11 +27,13 @@ export default function Flatastic() { return (

Flatastic Chores

-
    +
      {chores.map((chore: FlatasticChore) => ( -
    • - {idToNameMap[chore.currentUser]}: {chore.title} - - Points: {chore.points} +
    • + + {idToNameMap[chore.currentUser]} + + : {chore.title} - {"🪙".repeat(chore.points)}
    • ))}
    diff --git a/src/components/Flatastic/style.module.css b/src/components/Flatastic/style.module.css index e69de29..1809cf3 100644 --- a/src/components/Flatastic/style.module.css +++ b/src/components/Flatastic/style.module.css @@ -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; +}