diff --git a/client/assets/hdb-bg.mp4 b/client/assets/hdb-bg.mp4 new file mode 100644 index 0000000..ffad5d6 Binary files /dev/null and b/client/assets/hdb-bg.mp4 differ diff --git a/client/src/components/SiteFooter.tsx b/client/src/components/SiteFooter.tsx index 5760a53..b44d7ba 100644 --- a/client/src/components/SiteFooter.tsx +++ b/client/src/components/SiteFooter.tsx @@ -20,7 +20,7 @@ export default function SiteFooter() {
-

Connecting the neighbourhood together

+

Connecting neighbourhood together

{ /> ); -} +}; export const EmailIcon = () => { return ( @@ -575,8 +575,8 @@ export const EmailIcon = () => { d="M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75" /> - ) -} + ); +}; export const InfoIcon = () => { return ( @@ -594,14 +594,15 @@ export const InfoIcon = () => { d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z" /> - ) -} + ); +}; export const TrophyIcon = () => { return ( { d="M16.5 18.75h-9m9 0a3 3 0 0 1 3 3h-15a3 3 0 0 1 3-3m9 0v-3.375c0-.621-.503-1.125-1.125-1.125h-.871M7.5 18.75v-3.375c0-.621.504-1.125 1.125-1.125h.872m5.007 0H9.497m5.007 0a7.454 7.454 0 0 1-.982-3.172M9.497 14.25a7.454 7.454 0 0 0 .981-3.172M5.25 4.236c-.982.143-1.954.317-2.916.52A6.003 6.003 0 0 0 7.73 9.728M5.25 4.236V4.5c0 2.108.966 3.99 2.48 5.228M5.25 4.236V2.721C7.456 2.41 9.71 2.25 12 2.25c2.291 0 4.545.16 6.75.47v1.516M7.73 9.728a6.726 6.726 0 0 0 2.748 1.35m8.272-6.842V4.5c0 2.108-.966 3.99-2.48 5.228m2.48-5.492a46.32 46.32 0 0 1 2.916.52 6.003 6.003 0 0 1-5.395 4.972m0 0a6.726 6.726 0 0 1-2.749 1.35m0 0a6.772 6.772 0 0 1-3.044 0" /> - ) -} + ); +}; export const PaperAirplaneIcon = () => { return ( - + className="size-6" + > + d="M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5" + /> + + ); +}; + +export const ChevronDoubleDownIcon = () => { + return ( + + ); }; diff --git a/client/src/pages/HomePage.tsx b/client/src/pages/HomePage.tsx index 7566fcb..998ee8a 100644 --- a/client/src/pages/HomePage.tsx +++ b/client/src/pages/HomePage.tsx @@ -1,17 +1,87 @@ -import { Button } from "@nextui-org/react"; import { useNavigate } from "react-router-dom"; +import { ChevronDoubleDownIcon } from "../icons"; +import { Card, ScrollShadow } from "@nextui-org/react"; +import { useEffect, useState } from "react"; +import { retrieveUserInformation } from "../security/users"; export default function HomePage() { const navigate = useNavigate(); + const [userInformation, setUserInformation] = useState(); + + useEffect(() => { + retrieveUserInformation() + .then((value) => { + setUserInformation(value); + }) + .catch(); + }); return ( -
-

Home

- +
+
+ +
+
+
+ ecoconnect logo +
+

+ Connecting neighbourhoods together +

+
+ + +
+
+
+
+

Scroll for more

+ +
+
+
+
+
+

+ Trending events right now +

+ + {[...Array(8)].map((_, index) => ( + +
+
+

+ Sample event {index + 1} +

+

Description of the sample event {index + 1}

+
+
+ ))} +
+
+
+
); }