From 02893354de7832843840541342f42ea65b458737 Mon Sep 17 00:00:00 2001 From: ImAlpha Date: Sat, 19 Oct 2024 18:27:46 -0700 Subject: [PATCH] update text colors --- frontend/package.json | 2 +- frontend/src/app/page.tsx | 62 ++++++++++++++++++++++++++++----------- 2 files changed, 46 insertions(+), 18 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 74ed1ba..a3fc538 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,7 +4,7 @@ "private": true, "proxy": "http://192.168.50.107:5580/", "scripts": { - "dev": "next dev", + "dev": "next dev --turbo", "build": "next build", "start": "next start -p 3003", "lint": "next lint" diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index 0ced094..90a0810 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -36,22 +36,20 @@ export default function Home() { await sendEmail(formData); // Send new order email to self - const clientEmail = formData.get('senderEmail') as string + const clientEmail = formData.get("senderEmail") as string; // console.log(JSON.stringify({"senderEmail":clientEmail})) await fetch("/api/emails", { method: "POST", headers: { "Content-type": "application/json", }, - body: JSON.stringify({"senderEmail":clientEmail}), - }) - .catch((error) => { - console.error(error); - }); - + body: JSON.stringify({ senderEmail: clientEmail }), + }).catch((error) => { + console.error(error); + }); const response = await fetch("/backend/new-order", { - // const response = await fetch("http://localhost:5080/new-order", { + // const response = await fetch("http://localhost:5080/new-order", { method: "POST", headers: { "Content-type": "application/json", @@ -68,19 +66,47 @@ export default function Home() { emails: "", orders: "", }); - alert("Order Placed! Please check your email.") + alert("Order Placed! Please check your email."); } return (
{/* Title */} -
- Kevo's Attire -
-

All sizes - $25

-
-
-

Youth-S/M/L/2XL - Adult-S/M/L/2XL

+
+

+ Kevo's Attire +

+
+
+

+ Youth:{" "} + + S | M{" "} + | L + +

+

+ Adult:{" "} + + S | M{" "} + | L{" "} + | XL{" "} + | 2XL + +

+
+
+

+ Small - Large: $25 +

+

+ XL - 2XL: $27 +

+
@@ -98,7 +124,9 @@ export default function Home() { >

Example Order

-

example@example.com

+
+

example@example.com

+

1 blue Terminator Youth M

1 black Bear-Relax Adult XL