Skip to content

Commit

Permalink
Links to other apps (#502)
Browse files Browse the repository at this point in the history
* added links to other applications at bottom of page

* make not dependent on array indexing

* replace standard a tag with next Link

---------

Co-authored-by: Cyril Joby <[email protected]>
  • Loading branch information
cyriljoby and Cyril Joby authored Dec 17, 2024
1 parent e2c9ee1 commit c586e02
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Button from "@/lib/components/Button/Button";
import Link from "next/link";

interface ConfirmationDetailsProps {
isLoggedIn: boolean;
Expand All @@ -15,6 +16,9 @@ export default async function ConfirmationDetails({
roleText,
role,
}: ConfirmationDetailsProps) {
const otherRoles = ["Hacker", "Mentor", "Volunteer"].filter(
(r) => r !== role,
);
return (
<div className="flex flex-col items-center gap-8 px-4 py-6 mx-4 max-w-screen-lg md:p-6 md:px-10 md:py-8 border-[2px] md:border-[5px] border-[var(--color-white)] text-[var(--color-white)] bg-[var(--color-black)]">
<h1 className="text-5xl text-center">Before Applying</h1>
Expand Down Expand Up @@ -61,6 +65,22 @@ export default async function ConfirmationDetails({
}
isLightVersion
/>

<p>
Interested in being a{" "}
{otherRoles.map((role, index) => (
<span key={role}>
<Link
href={role === "Hacker" ? `/apply` : `/${role.toLowerCase()}`}
className="text-[#FBA80A] underline"
>
{role}
</Link>
{index < otherRoles.length - 1 ? " or " : " "}
</span>
))}
instead?
</p>
</div>
);
}

0 comments on commit c586e02

Please sign in to comment.