Skip to content

Commit f6fd4ec

Browse files
authored
Hmt 115 add discord link after registration (#189)
1 parent e1d1e83 commit f6fd4ec

File tree

5 files changed

+78
-16
lines changed

5 files changed

+78
-16
lines changed

src/app/register/team/(pending)/remind/page.tsx

+22-10
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
1-
import Link from "next/link";
2-
31
import PurpleButton from "@/components/PurpleButton";
42

53
export default function page() {
64
// TODO: Add a reminder to join a team in two days
75
return (
8-
<div className="flex w-full flex-col justify-center gap-6 rounded-3xl bg-white p-4 md:p-8">
9-
<div className=" py-24 text-center text-3xl font-bold">
10-
{/* TODO: Update "two" to be dynamic */}
11-
We will remind you to join a team in two days!
6+
<div className="flex w-full flex-col items-center justify-center rounded-3xl p-4 md:p-8">
7+
<div className="flex w-full flex-col justify-center rounded-3xl bg-white p-4 md:p-8">
8+
<div className=" pb-8 text-center text-4xl font-bold">
9+
{/* TODO: Update "two" to be dynamic */}
10+
We will remind you to join a team in two days!
11+
</div>
12+
<div className="p-4 text-center text-3xl font-bold">
13+
In the meantime, join the official Discord!
14+
</div>
15+
<div className="flex items-center justify-center p-2">
16+
<a
17+
target="_blank"
18+
rel="noreferrer"
19+
href={process.env.NEXT_PUBLIC_DISCORD_LINK}
20+
>
21+
<PurpleButton>Official Hackathon Discord</PurpleButton>
22+
</a>
23+
</div>
1224
</div>
13-
<div className="flex justify-end">
14-
<Link href={"/"}>
15-
<PurpleButton>Close</PurpleButton>
16-
</Link>
25+
<div className="pt-8">
26+
<a href="/">
27+
<PurpleButton>Go Home</PurpleButton>
28+
</a>
1729
</div>
1830
</div>
1931
);
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import RegistrationLayout from "@/components/layouts/RegistrationLayout";
2+
3+
export default function Layout({ children }: { children: React.ReactNode }) {
4+
return <RegistrationLayout>{children}</RegistrationLayout>;
5+
}
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import Link from "next/link";
2+
3+
import PurpleButton from "@/components/PurpleButton";
4+
import { Underline } from "@/utils/text-utils";
5+
6+
export default function page() {
7+
return (
8+
<div className="flex w-full flex-col justify-center rounded-xl bg-white p-4 md:p-8">
9+
<div className="gap-6 p-8 text-center font-bold">
10+
<h1 className="flex justify-start pb-4 text-4xl">But First...</h1>
11+
<div className="flex w-full flex-col items-center gap-3 rounded-3xl bg-pastel-green p-8 text-xl">
12+
<div className="w-1/2 rounded-3xl bg-white p-8">
13+
<div className="relative inline-block text-3xl">
14+
<Underline>Join the official Discord!</Underline>
15+
</div>
16+
<div className="pt-8">
17+
<a
18+
target="_blank"
19+
rel="noreferrer"
20+
href={process.env.NEXT_PUBLIC_DISCORD_LINK}
21+
>
22+
<PurpleButton>Hackathon Discord</PurpleButton>
23+
</a>
24+
</div>
25+
</div>
26+
</div>
27+
28+
<div className="flex justify-between pt-8">
29+
<Link href={"/register/team"}>
30+
<PurpleButton>Back</PurpleButton>
31+
</Link>
32+
<Link href={"/register/team/ready"}>
33+
<PurpleButton>Next</PurpleButton>
34+
</Link>
35+
</div>
36+
</div>
37+
</div>
38+
);
39+
}

src/app/register/team/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function page() {
2626
<Link href={"/register/team/remind"}>
2727
<PurpleButton>Remind me later</PurpleButton>
2828
</Link>
29-
<Link href={"/register/team/ready"}>
29+
<Link href={"/register/team/discord"}>
3030
<PurpleButton>Yes!</PurpleButton>
3131
</Link>
3232
</div>

src/components/teamRegistration/JoinTeamInstructions.tsx

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1-
import Link from "next/link";
2-
31
export default function JoinTeamInstructions() {
42
return (
53
<ol className="flex list-inside list-decimal flex-col gap-4 px-6 text-lg font-medium">
64
<li>
75
Join the
8-
<Link href="https://discord.com/" target="_blank">
9-
<span className=" font-bold"> Code the Change YYC Discord </span>
10-
</Link>
6+
<span className=" font-bold">
7+
<a
8+
className="hover:text-awesomer-purple"
9+
target="_blank"
10+
rel="noreferrer"
11+
href={process.env.NEXT_PUBLIC_DISCORD_LINK}
12+
>
13+
{" "}
14+
Code the Change YYC Discord{" "}
15+
</a>
16+
</span>
1117
and navigate to the
1218
<span className="font-bold"> #looking-for-a-team </span> channel.
1319
</li>

0 commit comments

Comments
 (0)