From ebb6bdb57f60a59711ea7e5c7eb3d3602b08386a Mon Sep 17 00:00:00 2001 From: stewartkwokca Date: Tue, 18 Jun 2024 20:39:34 -0700 Subject: [PATCH 1/2] add discord redirect --- pages/discord.tsx | 28 ++++++++++++++++++++++++++++ styles/Discord.module.scss | 15 +++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 pages/discord.tsx create mode 100644 styles/Discord.module.scss diff --git a/pages/discord.tsx b/pages/discord.tsx new file mode 100644 index 0000000..b1c9d36 --- /dev/null +++ b/pages/discord.tsx @@ -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 ( +
+ +
+

Redirecting you now...

+

+ + Click here if you are not redirected automatically + +

+
+ +
+
+ ); +} diff --git a/styles/Discord.module.scss b/styles/Discord.module.scss new file mode 100644 index 0000000..bf6d0c6 --- /dev/null +++ b/styles/Discord.module.scss @@ -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; +} From 080676e778d8385bdedb4998c250da12c5d98470 Mon Sep 17 00:00:00 2001 From: Benson Liu Date: Tue, 18 Jun 2024 20:42:46 -0700 Subject: [PATCH 2/2] chore: update `next.config.js` --- next.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/next.config.js b/next.config.js index f31daa3..d5e4e38 100644 --- a/next.config.js +++ b/next.config.js @@ -20,6 +20,7 @@ const nextConfig = { return { "/": { page: "/" }, "/about": { page: "/about" }, + "/discord": { page: "/discord" }, "/members": { page: "/members" }, "/events": { page: "/events" }, "/archive": { page: "/archive" },