Skip to content

Commit

Permalink
Merge pull request #187 from uclaacm/discord_page
Browse files Browse the repository at this point in the history
add discord redirect page
  • Loading branch information
bliutech authored Jun 19, 2024
2 parents 98c4aa2 + 080676e commit 40c00be
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const nextConfig = {
return {
"/": { page: "/" },
"/about": { page: "/about" },
"/discord": { page: "/discord" },
"/members": { page: "/members" },
"/events": { page: "/events" },
"/archive": { page: "/archive" },
Expand Down
28 changes: 28 additions & 0 deletions pages/discord.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import Link from "next/link";
import Footer from "../components/Footer";

import Navbar from "../components/Navbar";

import styles from "../styles/Discord.module.scss";

import Script from "next/script";

export default function Discord() {
return (
<div>
<Navbar />
<main className={styles.redirect}>
<h1>Redirecting you now...</h1>
<p className={styles.home}>
<Link href="https://discord.gg/H9enFH7g">
Click here if you are not redirected automatically
</Link>
</p>
</main>
<Script id="discord-redirect">
{`window.location.href = "https://discord.gg/H9enFH7g"`}
</Script>
<Footer />
</div>
);
}
15 changes: 15 additions & 0 deletions styles/Discord.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.redirect {
min-height: 90vh;
padding: 4rem 0 4rem 0;
margin: 4rem 20% 0 20%;
text-align: center;
color: #ffba44;
}

.home a {
text-decoration: underline;
}

.home:hover a {
color: #ffba44;
}

0 comments on commit 40c00be

Please sign in to comment.