Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added UMSA_LOGO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/assets/UMSA_LOGO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion client/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Team from "./pages/Team";
import Contact from "./pages/Contact";
import Sponsors from "./pages/Sponsors";
import FAQ from "./pages/Frequent-Asked-Question";
import About from "./pages/About";
import HomePage from "./pages/HomePage";

{
/* project team imports */
Expand All @@ -27,6 +27,7 @@ import Alanna from "./pages/project-team/Alanna";
import Tadiwa from "./pages/project-team/Tadiwa";
import Terrence from "./pages/project-team/Terrence";
import Alex from "./pages/project-team/Alex";
import About from "./pages/About";

{
/* admin (CMS) imports */
Expand Down Expand Up @@ -57,6 +58,12 @@ const router = createBrowserRouter([
{ path: "faq", element: <FAQ /> },
{ path: "contact", element: <Contact /> },
{ path: "sponsors", element: <Sponsors /> },

{ path: "alanna", element: <Alanna /> },
{ path: "tadiwa", element: <Tadiwa /> },
{ path: "terrence", element: <Terrence /> },
{ path: "pruna", element: <Pruna /> },
{ path: "alex", element: <Alex /> },
{ path: "about", element: <About /> },
],
},
Expand Down
56 changes: 56 additions & 0 deletions client/src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import { useEffect } from "react";
import { Link } from "react-router-dom";
import logo from "../assets/UMSA_LOGO.png";

export default function HomePage() {
useEffect(() => {
document.title = "Home | UMSA";
}, []);

return (
<div className="flex flex-col items-center text-white px-6 py-12">
<img src={logo} alt="UMSA logo" className="w-20 mb-4" />
<h1 className="text-8xl font-bold mb-2">UMSA</h1>
<p className="text-med text-blue-300 font-medium">
UNION OF MALAYSIAN STUDENTS IN AUCKLAND
</p>
<div className="w-full max-w-2xl aspect-video mt-12 mb-10">
<iframe
className="w-full h-full rounded-lg"
src="https://www.youtube.com/embed/dQw4w9WgXcQ?si=uBbsDjvI95vfXOQA"
title="YouTube video player"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
></iframe>
</div>

<div className="max-w-xl text-center mb-5">
<h2 className="text-3xl font-semibold mb-3">WHO ARE WE?</h2>
<p className="text-white text-lg mb-10">
umsa goated umsa goated umsa goated umsa goated umsa goated umsa
goated umsa goated
</p>
</div>

<div className="w-full max-w-2xl">
<div className="relative rounded-2xl overflow-hidden border border-blue-500/30 bg-blue-950/20 p-10">
<div className="absolute top-0 right-0 w-48 h-48 bg-blue-600/10 rounded-full blur-3xl" />
<h2 className="text-3xl font-semibold mb-3">
MEET THE EXEC TEAM
</h2>
<div className="h-px bg-blue-500 mb-5" />
<p className="text-white mb-8 max-w-md mx-auto text-center">
para abt umsa execs etc
</p>
<Link
to="/team"
className="inline-flex items-center gap-2 bg-blue-600 hover:bg-blue-500 text-white font-bold text-sm rounded-xl px-7 py-4 transition-colors duration-200"
>
MEET THE TEAM →
</Link>
</div>
</div>
</div>
);
}
Loading