diff --git a/.gitignore b/.gitignore
index 631d5ae..76b464d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -107,4 +107,4 @@ dist
client/build
api/build
package-lock.json
-prisma/src/
\ No newline at end of file
+prisma/src/
diff --git a/components/header.js b/components/header.js
new file mode 100644
index 0000000..275a493
--- /dev/null
+++ b/components/header.js
@@ -0,0 +1,107 @@
+import React from "react";
+import Image from "next/image";
+
+import { Navbar, Nav, Badge } from "react-bootstrap";
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+import { faDiscord, faGithub } from "@fortawesome/free-brands-svg-icons";
+import Link from "next/link";
+
+import { signIn, signOut, useSession } from "next-auth/client";
+import { faCheckCircle } from "@fortawesome/free-solid-svg-icons";
+import styles from "./header.module.css";
+
+const site_logo = "/assets/img/logo_animated.gif";
+
+export default function Header() {
+ const [session, loading] = useSession();
+
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/components/layout.js b/components/layout.js
new file mode 100644
index 0000000..4730d79
--- /dev/null
+++ b/components/layout.js
@@ -0,0 +1,77 @@
+import Head from "next/head";
+import { Container } from "react-bootstrap";
+import { motion } from "framer-motion";
+
+import Header from "./header";
+import Footer from "./footer";
+
+export default function Layout(props) {
+ return (
+
+
+ {/* HTML Meta Tags */}
+ AutoMuteUs
+
+
+
+ {/* Google / Search Engine Tags */}
+
+
+
+
+ {/* Discord/Facebook Meta Tags */}
+
+
+
+
+
+
+ {/* Twitter Meta Tags */}
+
+
+
+
+
+
+
+ {props.children}
+
+
+
+ );
+}
diff --git a/pages/api/auth/[...nextauth].js b/pages/api/auth/[...nextauth].js
index b58f264..12c20c4 100644
--- a/pages/api/auth/[...nextauth].js
+++ b/pages/api/auth/[...nextauth].js
@@ -42,6 +42,10 @@ const options = {
},
}),
+ pages: {
+ error: "/auth/error",
+ },
+
session: {
jwt: true,
},
diff --git a/pages/api/live.js b/pages/api/live.js
index 59abc17..22f54e4 100644
--- a/pages/api/live.js
+++ b/pages/api/live.js
@@ -1,3 +1,3 @@
export default async function handler(req, res) {
- res.status(200).json([{ status: 200, message: "We are live!" }]);
+ res.status(200).json([{ status: 200, message: "ok" }]);
}
diff --git a/pages/auth/error.js b/pages/auth/error.js
new file mode 100644
index 0000000..8ed0d2e
--- /dev/null
+++ b/pages/auth/error.js
@@ -0,0 +1,47 @@
+import React from "react";
+import Head from "next/head";
+
+import Layout from "../../components/layout";
+import { Button } from "react-bootstrap";
+import { faHome } from "@fortawesome/free-solid-svg-icons";
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+import { faDiscord } from "@fortawesome/free-brands-svg-icons";
+import Link from "next/link";
+import { signIn } from "next-auth/client";
+
+export default class ErrorPage extends React.Component {
+ render() {
+ return (
+
+
+ Authorization Error | AutoMuteUs
+
+ Sign-in Error or Cancellation
+
+ Either try to
+
+ signIn("discord", { callbackUrl: "/" })
+ }
+ >
+
+
+ again, or
+
+
+
+
+
+ );
+ }
+}
diff --git a/pages/index.js b/pages/index.js
index 09c9832..1c56e48 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -1,5 +1,6 @@
import React from "react";
import Head from "next/head";
+import Link from "next/link";
import { Button } from "react-bootstrap";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
@@ -7,11 +8,10 @@ import { faDiscord } from "@fortawesome/free-brands-svg-icons";
import { faCamera, faGem } from "@fortawesome/free-solid-svg-icons";
import Layout from "../components/common/layout";
+import * as util from "../components/utility/client";
import ServerStats from "../components/common/server-stats";
-import Link from "next/link";
const amus_crewmate = "/assets/img/svg/amus_crewmate_robo.svg";
-import * as util from "../components/utility/client";
export default class App extends React.Component {
render() {
return (
@@ -21,50 +21,6 @@ export default class App extends React.Component {
effectActive={true}
innerClassName="flex-column flex-lg-row align-items-center"
>
-
- {/* HTML Meta Tags */}
- AutoMuteUs
-
-
-
- {/* Google / Search Engine Tags */}
-
-
-
-
- {/* Discord/Facebook Meta Tags */}
-
-
-
-
-
-
- {/* Twitter Meta Tags */}
-
-
-
-
Use AutoMuteUs for hands free muting
@@ -87,7 +43,7 @@ export default class App extends React.Component {
Add to Discord