Skip to content

Commit 557d6d3

Browse files
updated page for mobile view (#233)
Co-authored-by: Burton Jong <[email protected]>
1 parent 7f204e7 commit 557d6d3

File tree

7 files changed

+38
-37
lines changed

7 files changed

+38
-37
lines changed

src/app/participant/layout.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ export default function RoleBasedLayout({
1111

1212
// This example uses the UserBasedNav component in the layout:
1313
return (
14-
<div className="flex w-full flex-col bg-fuzzy-peach">
15-
<main className="">{children}</main>
16-
</div>
14+
<div className="flex w-full flex-1 flex-col bg-fuzzy-peach">{children}</div>
1715
);
1816
}

src/app/participant/profile/layout.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@ import ProfileLinks from "@/components/UserProfile/ProfileLinks";
55

66
const ProfileLayout = ({ children }: { children: React.ReactNode }) => {
77
return (
8-
<div className="w-full">
8+
<>
99
<ProfileHeader />
10-
<div className="flex w-full flex-col bg-fuzzy-peach">
11-
<div className="px-10 md:px-16 md:py-10">
12-
<ProfileLinks />
13-
{children}
14-
</div>
10+
<div className="flex w-full flex-col bg-fuzzy-peach px-10 md:px-16 md:py-10 ">
11+
<ProfileLinks />
12+
{children}
1513
</div>
16-
</div>
14+
</>
1715
);
1816
};
1917

src/app/participant/profile/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const UserProfile = dynamic(
77
{
88
ssr: true,
99
loading: () => (
10-
<div className="flex w-full items-center justify-center">
10+
<div className="flex w-full flex-1 items-center justify-center">
1111
<KevinLoadingRing />
1212
</div>
1313
),

src/app/register/team/discord/page.tsx

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,41 @@ import { Underline } from "@/utils/text-utils";
44

55
export default function page() {
66
return (
7-
<div className="flex w-full flex-col justify-center rounded-xl bg-white p-4 md:p-8">
8-
<div className="gap-6 p-8 text-center font-bold">
9-
<h1 className="flex justify-start pb-4 text-4xl">But First...</h1>
10-
<div className="flex w-full flex-col items-center gap-3 rounded-3xl bg-pastel-green p-8 text-xl">
11-
<div className="w-1/2 rounded-3xl bg-white p-8">
12-
<div className="relative inline-block text-3xl">
7+
<div className="flex w-full flex-col gap-6 rounded-xl bg-white p-8 text-center font-bold">
8+
<h1 className="flex justify-start text-4xl">But First...</h1>
9+
<div className="flex w-full flex-col items-center rounded-3xl bg-pastel-green p-8">
10+
<div className="flex w-1/2 min-w-60 flex-col items-center gap-4 rounded-3xl bg-white p-8">
11+
<div className="text-3xl">
12+
<div className="hidden xl:block">
1313
<Underline>Join the official Discord!</Underline>
1414
</div>
15-
<div className="pt-8">
16-
<a
17-
target="_blank"
18-
rel="noreferrer"
19-
href={process.env.NEXT_PUBLIC_DISCORD_LINK}
20-
>
21-
<PurpleButton>Hackathon Discord</PurpleButton>
22-
</a>
15+
<div className="w-full xl:hidden">
16+
Join the official
17+
<Underline>
18+
<span className="ml-3">Discord!</span>
19+
</Underline>
2320
</div>
2421
</div>
25-
</div>
26-
27-
<div className="flex justify-between pt-8">
28-
<Link href={"/register/team"}>
29-
<PurpleButton>Back</PurpleButton>
30-
</Link>
31-
<Link href={"/register/team/ready"}>
32-
<PurpleButton>Next</PurpleButton>
22+
<Link
23+
target="_blank"
24+
rel="noreferrer"
25+
href={process.env.NEXT_PUBLIC_DISCORD_LINK ?? ""}
26+
>
27+
<PurpleButton className="w-auto px-4">
28+
Hackathon Discord
29+
</PurpleButton>
3330
</Link>
3431
</div>
3532
</div>
33+
34+
<div className="flex flex-col justify-between sm:flex-row">
35+
<Link href={"/register/team"}>
36+
<PurpleButton>Back</PurpleButton>
37+
</Link>
38+
<Link href={"/register/team/ready"}>
39+
<PurpleButton>Next</PurpleButton>
40+
</Link>
41+
</div>
3642
</div>
3743
);
3844
}

src/components/UserProfile/UserProfile.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,8 @@ const UserProfile = () => {
8484

8585
return (
8686
<>
87-
{" "}
8887
{isFetching || userContextIsFetching ? (
89-
<div className="flex w-full items-center justify-center">
88+
<div className="flex w-full flex-1 items-center justify-center">
9089
<KevinLoadingRing />
9190
</div>
9291
) : (

src/components/layouts/MainLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default async function MainLayout({ children }: Props) {
2727
initialUserDetails={userDetails ?? ({} as UserDetailsNoFunctions)}
2828
>
2929
<Header />
30-
<main className="flex flex-col items-center justify-between">
30+
<main className="flex flex-1 flex-col items-center justify-between">
3131
{children}
3232
</main>
3333
<Footer />

src/components/layouts/RegistrationLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function RegistrationLayout({
2424
return (
2525
<div
2626
className={twMerge(
27-
"flex h-[90dvh] w-full flex-1 flex-col items-center justify-center overflow-hidden py-6",
27+
"flex w-full flex-1 flex-col items-center justify-center overflow-hidden",
2828
bgColor,
2929
)}
3030
>

0 commit comments

Comments
 (0)