Skip to content

Commit

Permalink
Fixed the Discord Link not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hanania committed Nov 12, 2022
1 parent ef59185 commit 47c659a
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions pages/discord.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
import Head from "next/head";
import { useEffect } from "react";

/* eslint-disable @next/next/no-img-element */
export default function fof() {
export default function DiscordRedirect() {
useEffect(() => {
setTimeout(() => {
window.location.href = "https://discord.gg/W2zPcgG9F5";
}, 2000);
}, []);

return (
<>
<Head>
<title>📦 Discord Package Discord 📦</title>
</Head>
<div className="h-screen flex justify-center items-center">
<div className="flex items-center flex-col justify-center lg:flex-row py-28 px-6 md:px-24 lg:px-24 md:py-20 lg:py-32 gap-16 lg:gap-28">
<div className="w-full lg:w-1/4">
Expand All @@ -27,8 +39,6 @@ export default function fof() {
</h1>
</div>
</div>
{/* eslint-disable-next-line react/no-unescaped-entities */}
<script>window.location.href = 'https://discord.gg/W2zPcgG9F5'</script>
</div>
</>
);
Expand Down

0 comments on commit 47c659a

Please sign in to comment.