From 03652b7180a48deea4b2c48bfc8c4e9f436d681d Mon Sep 17 00:00:00 2001 From: Surya Vemulapalli Date: Sat, 29 Mar 2025 22:01:01 -0400 Subject: [PATCH] Added a logged-in homepage --- React/src/app/page.tsx | 45 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 37 insertions(+), 8 deletions(-) diff --git a/React/src/app/page.tsx b/React/src/app/page.tsx index b9a7dc2..fcd37b0 100644 --- a/React/src/app/page.tsx +++ b/React/src/app/page.tsx @@ -17,26 +17,26 @@ export default async function Home() {
- + - +
-

Fauxcall

-

Set emergency contacts

-

if you stop speaking or say the codeword, these contacts will be notified

+

Fauxcall

+

Set emergency contacts

+

If you stop speaking or say the codeword, these contacts will be notified

{/* form for setting codeword */}
e.preventDefault()}> setCodeword(e.target.value)} - placeholder="codeword" + placeholder="Codeword" className="border border-gray-300 rounded-md p-2" />
{/* form for adding contacts */} @@ -48,7 +48,7 @@ export default async function Home() { placeholder="contacts (comma separated)" className="border border-gray-300 rounded-md p-2" /> - +
); @@ -58,6 +58,35 @@ export default async function Home() {

Welcome, {session.user.name}!

+ +

Fauxcall

+

Set emergency contacts

+

If you stop speaking or say the codeword, these contacts will be notified

+ {/* form for setting codeword */} +
e.preventDefault()}> + setCodeword(e.target.value)} + placeholder="Codeword" + className="border border-gray-300 rounded-md p-2" + /> + +
+ {/* form for adding contacts */} +
e.preventDefault()}> + setContacts(e.target.value.split(","))} + placeholder="contacts (comma separated)" + className="border border-gray-300 rounded-md p-2" + /> + +
+