Skip to content

Commit

Permalink
Merge pull request #81 from codersforcauses/issue-64-Create_landing_page
Browse files Browse the repository at this point in the history
Issue 64 create landing page
  • Loading branch information
ErikaKK authored Jan 24, 2025
2 parents afba9c6 + fcc76e6 commit d1a0864
Show file tree
Hide file tree
Showing 14 changed files with 328 additions and 15 deletions.
9 changes: 9 additions & 0 deletions client/public/sponsor-logos/Casio.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions client/public/sponsor-logos/DoE.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions client/public/sponsor-logos/ECU.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions client/public/sponsor-logos/MAWA.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions client/public/sponsor-logos/Murdoch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions client/public/sponsor-logos/New-Edition.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions client/public/sponsor-logos/UWA.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions client/src/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { useFetchData } from "@/hooks/use-fetch-data";
import { User } from "@/types/user";

import Sidebar from "./sidebar";
import Footer from "./ui/footer";

interface LayoutProps {
children: React.ReactNode;
Expand Down Expand Up @@ -47,6 +48,7 @@ export default function Layout({ children }: LayoutProps) {
<div>
<Navbar />
<main>{children}</main>
<Footer />
</div>
);
}
Expand Down
2 changes: 2 additions & 0 deletions client/src/components/ui/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const buttonVariants = cva(
"tab-active": "bg-gray-200 text-black rounded-bl-none rounded-br-none", // to use in `MathInput` component
"tab-inactive":
"bg-gray-500 hover:bg-primary text-black rounded-bl-none rounded-br-none", // to use in `MathInput` component
inactive:
"bg-background text-grey border border-grey hover:bg-grey hover:text-black",
},
size: {
default: "h-10 px-4 py-2",
Expand Down
23 changes: 23 additions & 0 deletions client/src/components/ui/footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import Link from "next/link";

export default function Footer() {
return (
<div className="flex items-center justify-between gap-10 bg-[--nav-background] px-10 py-12 text-center max-md:flex-col">
<h5>Western Australian Junior mathematics Olympiad</h5>
<div className="flex flex-shrink items-center justify-between gap-20 text-xl font-medium">
<Link href="/news" className="hover:animate-bounce">
News
</Link>
<Link href="/awards" className="hover:animate-bounce">
Awards
</Link>
<Link href="/resources" className="hover:animate-bounce">
Resources
</Link>
<Link href="/contact" className="hover:animate-bounce">
Contact us
</Link>
</div>
</div>
);
}
39 changes: 39 additions & 0 deletions client/src/components/ui/sponsor.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import Image from "next/image";

import Casio from "../../../public/sponsor-logos/Casio.svg";
import DoE from "../../../public/sponsor-logos/DoE.svg";
import ECU from "../../../public/sponsor-logos/ECU.svg";
import MAWA from "../../../public/sponsor-logos/MAWA.svg";
import Murdoch from "../../../public/sponsor-logos/Murdoch.svg";
import NewEdition from "../../../public/sponsor-logos/New-Edition.svg";
import UWA from "../../../public/sponsor-logos/UWA.svg";

const images = [
{ src: DoE, href: "https://www.education.wa.edu.au/", name: "DoE" },
{ src: UWA, href: "https://www.uwa.edu.au/", name: "UWA" },
{ src: MAWA, href: "https://mawainc.org.au/", name: "MAWA" },
{ src: ECU, href: "https://www.ecu.edu.au/", name: "ECU" },
{ src: NewEdition, href: "https://newedition.com.au", name: "NewEdition" },
{ src: Murdoch, href: "https://www.murdoch.edu.au/", name: "Murdoch" },
{ src: Casio, href: "https://casioeducation.com.au/", name: "Casio" },
];

export default function Sponsor() {
return (
<div className="overflow-x-hidden">
<div className="flex w-full animate-slide list-none flex-nowrap items-center gap-9">
{[...images, ...images].map((item, index) => (
<a
href={item.href}
key={index}
target="_blank"
rel="noopener noreferrer"
className="h-28 flex-shrink-0"
>
<Image src={item.src} alt={`Logo of ${item.name}`} height={100} />
</a>
))}
</div>
</div>
);
}
Loading

0 comments on commit d1a0864

Please sign in to comment.