diff --git a/apps/website/src/pages/dashboard/index.astro b/apps/website/src/pages/dashboard/index.astro
index c181eb0..cbb93ab 100644
--- a/apps/website/src/pages/dashboard/index.astro
+++ b/apps/website/src/pages/dashboard/index.astro
@@ -2,7 +2,9 @@
import { getSession } from "auth-astro/server";
const session = await getSession(Astro.request);
-console.log(session);
+if (!session) {
+ return Astro.redirect("/auth/login");
+}
---
-{session ? Welcome {session.user?.name}
: Not logged in
}
+Welcome {session.user?.name}
diff --git a/apps/website/src/pages/index.astro b/apps/website/src/pages/index.astro
index 5a9ab2d..fa5021e 100644
--- a/apps/website/src/pages/index.astro
+++ b/apps/website/src/pages/index.astro
@@ -2,8 +2,11 @@
import Layout from "~/layouts/Layout.astro";
import Invite from "~/components/Invite.astro";
import Computer from "~/components/Computer.astro";
+import Settings from "~/components/Settings.astro";
import Logo from "~/assets/logo.png";
import { Image } from "astro:assets";
+
+export const prerender = true;
---
@@ -32,15 +35,22 @@ import { Image } from "astro:assets";
Add to Discord
+
+
+ Dashboard
diff --git a/apps/website/tailwind.config.cjs b/apps/website/tailwind.config.cjs
index af6fbd3..7f98fbf 100644
--- a/apps/website/tailwind.config.cjs
+++ b/apps/website/tailwind.config.cjs
@@ -1,15 +1,17 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
- content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
- theme: {
- extend: {
- colors: {
- dark: "#111111",
- },
- fontFamily: {
- body: ["Montserrat", "sans-serif"],
- },
- },
- },
- plugins: [],
+ content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
+ theme: {
+ extend: {
+ colors: {
+ dark: "#111111",
+ blue: "#5865F2",
+ gold: "#FFA500",
+ },
+ fontFamily: {
+ body: ["Montserrat", "sans-serif"],
+ },
+ },
+ },
+ plugins: [],
};