From 91148a78181bc4dcc15ceb6a32bf11d215b26869 Mon Sep 17 00:00:00 2001 From: OGreeni Date: Fri, 17 Nov 2023 19:31:37 -0500 Subject: [PATCH] add landing page content --- src/app/components/CollapsibleContent.tsx | 2 +- src/app/components/SectionTitle.tsx | 10 ++++++ src/app/page.tsx | 43 +++++++++++------------ 3 files changed, 32 insertions(+), 23 deletions(-) create mode 100644 src/app/components/SectionTitle.tsx diff --git a/src/app/components/CollapsibleContent.tsx b/src/app/components/CollapsibleContent.tsx index daff524..a8b8cab 100644 --- a/src/app/components/CollapsibleContent.tsx +++ b/src/app/components/CollapsibleContent.tsx @@ -29,7 +29,7 @@ export default function CollapsibleContent(props: CollapsibleContentProps) {
{props.content} diff --git a/src/app/components/SectionTitle.tsx b/src/app/components/SectionTitle.tsx new file mode 100644 index 0000000..0e71e11 --- /dev/null +++ b/src/app/components/SectionTitle.tsx @@ -0,0 +1,10 @@ +import { PropsWithChildren } from "react"; + +interface SectionTitleProps { + text: string; +} + +export default function SectionTitle(props: SectionTitleProps) { + const { text } = props; + return

{text}

; +} diff --git a/src/app/page.tsx b/src/app/page.tsx index d769732..a1da43a 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -4,29 +4,28 @@ import Image from "next/image"; import CollapsibleContent from "@/app/components/CollapsibleContent"; import LoginButton from "@/app/components/LoginButton"; import { useState } from "react"; +import SectionTitle from "@/app/components/SectionTitle"; -// TODO: add HTML semantic elements +// TODO: add HTML semantic elements. export default function Home() { - const [tmp, setTmp] = useState(false); - return ( - <> +
animals
-
+
Help Animals Get Meals
-
-
- Mission statement +
+
+

“Assisting low-income people in becoming independent and @@ -35,18 +34,16 @@ export default function Home() { programming and strong community partnerships.”

-
+
We Provide
{/* TODO: add icons */}
-
+
-
- Volunteers Change Lives -
-

+ +

It is simple to volunteer with us in a role that is
right for you.

@@ -56,23 +53,23 @@ export default function Home() { src="/images/food-aid.jpeg" alt="food aid" fill - objectFit="cover" + style={{ objectFit: "cover" }} />
-
+
Joining Us Is Easy
-

+

Receive the pet products and
support you need right from your
door step.

{/* TODO: add icons */}
-
- Eligibility +
+ {/* TODO: Instagram API support. */} -
Connect with CCA on Instagram
- +
+ +
+
); }