From afce88085c49ff647e58aa8d6e62a30e4fec68c7 Mon Sep 17 00:00:00 2001
From: lukascobit
Date: Sun, 18 Aug 2024 11:16:44 +0200
Subject: [PATCH] grade table
---
app/globals.css | 9 +++++++++
app/page.tsx | 24 ++++++++++++++----------
todo.todo | 3 ++-
3 files changed, 25 insertions(+), 11 deletions(-)
diff --git a/app/globals.css b/app/globals.css
index 5a88902..37d7b7b 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -25,6 +25,15 @@ body {
}
}
+td:hover {
+ background: #001233;
+}
+td {
+ background: #101047;
+ border: 1px white solid;
+ text-align: center;
+ padding: 0.6vw;
+}
.none {
display: none;
}
diff --git a/app/page.tsx b/app/page.tsx
index 95d7cc9..3ee5366 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -184,16 +184,20 @@ export default function Home() {
Your current average:{" "}
{currAverage}
-
- Your grades:{" "}
-
- {chosenShowGrades?.toString().replace("", ", ").substring(1)}
-
-
-
- Their weights:{" "}
- {chosenValues?.toString().replace("", ", ").substring(1)}
-
+
+
+ Your grades: |
+ {chosenShowGrades?.map((e, i) => {
+ return {e} | ;
+ })}
+
+
+ Their weights: |
+ {chosenValues?.map((e, i) => {
+ return {e} | ;
+ })}
+
+
New grade:
+ - [x] put the grades and value in a