From cd524b73bf5c5eba1e73af6e2b6a445af1f63974 Mon Sep 17 00:00:00 2001 From: GamerBoss101 Date: Sat, 12 Apr 2025 20:25:16 -0400 Subject: [PATCH] Beverage Scoring System Table CSS Update --- src/app/(app)/pointsguide/page.tsx | 194 +++++++++++++++-------------- 1 file changed, 98 insertions(+), 96 deletions(-) diff --git a/src/app/(app)/pointsguide/page.tsx b/src/app/(app)/pointsguide/page.tsx index 5af3e33..d985bed 100644 --- a/src/app/(app)/pointsguide/page.tsx +++ b/src/app/(app)/pointsguide/page.tsx @@ -1,108 +1,110 @@ "use client"; const tableData = [ - { - drink: "Water", - volume: "8", - caffeine: "n/a", - sugar: "n/a", - points: "100", - bonus: "+15 for >=64oz in day", - }, - { - drink: "Coffee", - volume: "8", - caffeine: "95", - sugar: "?", - points: "50", - bonus: "0 pts after 400mg caffeine", - }, - { - drink: "Coca-Cola", - volume: "8", - caffeine: "34", - sugar: "39", - points: "0", - bonus: "Exceeds sugar", - }, - { - drink: "100% Fruit Juice", - volume: "8", - caffeine: "0", - sugar: "22", - points: "50", - bonus: "0 pts after 30.5g sugar", - }, - { - drink: "Dairy Milk (low-fat)", - volume: "8", - caffeine: "0", - sugar: "12", - points: "50", - bonus: "+0.5 calcium bonus", - }, + { + drink: "Water", + volume: "8", + caffeine: "n/a", + sugar: "n/a", + points: "100", + bonus: "+15 for >=64oz in day", + }, + { + drink: "Coffee", + volume: "8", + caffeine: "95", + sugar: "?", + points: "50", + bonus: "0 pts after 400mg caffeine", + }, + { + drink: "Coca-Cola", + volume: "8", + caffeine: "34", + sugar: "39", + points: "0", + bonus: "Exceeds sugar", + }, + { + drink: "100% Fruit Juice", + volume: "8", + caffeine: "0", + sugar: "22", + points: "50", + bonus: "0 pts after 30.5g sugar", + }, + { + drink: "Dairy Milk (low-fat)", + volume: "8", + caffeine: "0", + sugar: "12", + points: "50", + bonus: "+0.5 calcium bonus", + }, ]; export default function PointsGuidePage() { - return ( -
-

- Points Guide -

-

- Learn how many points you receive for each drink! -

+ return ( +
+

+ Points Guide +

+

+ Learn how many points you receive for each drink! +

- -
    - Game Points System: -
      -
    • +15 points for drinking ≥100 oz of water
    • -
    • +10 points for keeping caffeine < 200 mg
    • -
    • +15 points for staying under the sugar cap all day
    • -
    • Exceeding 400mg caffeine limit or 30.5g sugar limit = 0 pts logged for those drinks
    • -
    +
      + Game Points System: +
        +
      • +15 points for drinking ≥100 oz of water
      • +
      • +10 points for keeping caffeine < 200 mg
      • +
      • +15 points for staying under the sugar cap all day
      • +
      • + {" "} + Exceeding 400mg caffeine limit or 30.5g sugar limit = 0 pts logged + for those drinks{" "} +
      • +
    -
    - -
    - - +
    +
    +
    - Beverage Scoring System -
    + - - - - - - - - - - - - {tableData.map((row, i) => ( - - - - - - - - - ))} - -
    + Beverage Scoring System +
    DrinkVolume (oz)Caffeine (mg)Sugar (g)Points EarnedBonus
    {row.drink}{row.volume}{row.caffeine}{row.sugar}{row.points}{row.bonus}
    -
    + + + Drink + Volume (oz) + Caffeine (mg) + Sugar (g) + Points Earned + Bonus + + + + {tableData.map((row, i) => ( + + {row.drink} + {row.volume} + {row.caffeine} + {row.sugar} + {row.points} + {row.bonus} + + ))} + + +
    +
- - -
- -
-
-
- ); +
+
+
+ ); }