From bdb207e0b18bd86014da68ae37ced453333bb69c Mon Sep 17 00:00:00 2001 From: Ray <22254748+rayokamoto@users.noreply.github.com> Date: Mon, 19 Feb 2024 21:01:26 +1030 Subject: [PATCH 1/3] feat(home): Add join us button at end of page --- src/app/(home)/page.tsx | 58 ++++++++++++++++++++++++--------------- src/components/Button.tsx | 5 ++-- 2 files changed, 39 insertions(+), 24 deletions(-) diff --git a/src/app/(home)/page.tsx b/src/app/(home)/page.tsx index a11d102a..912d92a8 100644 --- a/src/app/(home)/page.tsx +++ b/src/app/(home)/page.tsx @@ -1,3 +1,4 @@ +import Button from '@/components/Button'; import Duck from '@/components/Duck'; import FancyRectangle from '@/components/FancyRectangle'; import ImageCarousel from '@/components/ImageCarousel'; @@ -230,41 +231,54 @@ export default function HomePage() { {/* CTA part 2 */} -
+
-
+
{/* */} Rectangle Grid
-
-
- - - - - +
+
+
+ + + + + +
+
+
+
+ + Thinking about Joining? + +

+ New members are always welcome! +

+
+
{' '}
-
-
-
- - Thinking about Joining? - -

- New members are always welcome! -

+ +
+
+
-
{' '} +
- -
); diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 73c1f249..ba12f1ec 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -11,9 +11,10 @@ interface ButtonProps { type?: 'button' | 'submit' | 'reset'; width?: string; loading?: boolean; + font?: string; } -const Button = ({ children, colour, href, onClick, width, type, loading }: ButtonProps) => { +const Button = ({ children, colour, href, onClick, width, type, loading, font }: ButtonProps) => { const isAnchor = !!href; const Component = isAnchor ? 'a' : 'button'; @@ -23,7 +24,7 @@ const Button = ({ children, colour, href, onClick, width, type, loading }: Butto href={isAnchor ? href : undefined} onClick={onClick} type={isAnchor ? undefined : type} - className={`${width} ${BG_COLOURS[colour]} ${isAnchor ? 'hover:bg-yellow' : 'hover:enabled:bg-yellow'} whitespace-nowrap border-2 border-black px-12 py-4 text-lg font-bold transition-colors duration-300 disabled:cursor-wait disabled:grayscale md:px-2 md:py-1 md:text-base lg:px-6 lg:py-2`} + className={`${width} ${font ?? 'text-lg md:text-base'} ${BG_COLOURS[colour]} ${isAnchor ? 'hover:bg-yellow' : 'hover:enabled:bg-yellow'} whitespace-nowrap border-2 border-black px-12 py-4 font-bold transition-colors duration-300 disabled:cursor-wait disabled:grayscale md:px-2 md:py-1 lg:px-6 lg:py-2`} disabled={loading} > {children} From efae9463786258cf529d7c2c6af9a7e656bfb7ac Mon Sep 17 00:00:00 2001 From: Ray <22254748+rayokamoto@users.noreply.github.com> Date: Mon, 19 Feb 2024 21:12:53 +1030 Subject: [PATCH 2/3] fix(home): Center sponsors on screen resize --- src/app/(home)/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/(home)/page.tsx b/src/app/(home)/page.tsx index 912d92a8..855c5117 100644 --- a/src/app/(home)/page.tsx +++ b/src/app/(home)/page.tsx @@ -190,7 +190,7 @@ export default function HomePage() {

Supported By

-
+

Industry's

@@ -206,10 +206,10 @@ export default function HomePage() { if (sponsors.length === 0) return; return ( -

+

{type} Sponsors

-
+
{sponsors.map(({ image, website, name }, i) => ( From 73214f98a8d3e8e3df59f1f9c57862c13918bd58 Mon Sep 17 00:00:00 2001 From: Ray <22254748+rayokamoto@users.noreply.github.com> Date: Mon, 19 Feb 2024 21:38:11 +1030 Subject: [PATCH 3/3] feat(home): Use join us link instead of button --- src/app/(home)/page.tsx | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/src/app/(home)/page.tsx b/src/app/(home)/page.tsx index 855c5117..a47e8463 100644 --- a/src/app/(home)/page.tsx +++ b/src/app/(home)/page.tsx @@ -6,6 +6,7 @@ import Title from '@/components/Title'; import { CAROUSEL_IMAGES } from '@/data/home'; import { SPONSOR_TYPES, getSponsors } from '@/data/sponsors'; import Image from 'next/image'; +import Link from 'next/link'; import { Fragment } from 'react'; export default function HomePage() { @@ -244,8 +245,8 @@ export default function HomePage() { />
-
-
+
+
@@ -259,23 +260,16 @@ export default function HomePage() { Thinking about Joining? -

- New members are always welcome! +

+ New members are always welcome.{' '} + + Join us today! +

-
{' '} -
- -
-
-