added footer links, added email alias check
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import type { Metadata } from "next";
|
||||
import { DiscordLogoIcon, InstagramLogoIcon, ReaderIcon } from "@radix-ui/react-icons";
|
||||
import { HorizontalNav, VerticalNav } from "../_components/Nav";
|
||||
import { Toaster } from "react-hot-toast";
|
||||
import { redirect } from "next/navigation";
|
||||
import { getServerSession } from "../api/auth/[...nextauth]/auth";
|
||||
import { Error } from "_components/Error";
|
||||
@@ -20,7 +19,7 @@ export default async function RootLayout({
|
||||
const session = await getServerSession();
|
||||
|
||||
if (session?.user.isBanned)
|
||||
return <Error title="You are banned from using this service" statusCode={403} />;
|
||||
return <Error title="Dein Account wurde gesperrt!" statusCode={403} />;
|
||||
|
||||
if (!session) redirect(`/login`);
|
||||
|
||||
@@ -32,13 +31,6 @@ export default async function RootLayout({
|
||||
}}
|
||||
>
|
||||
<div className="hero-overlay bg-opacity-30"></div>
|
||||
<div>
|
||||
<Toaster
|
||||
containerStyle={{ zIndex: "999999999" }}
|
||||
position="top-center"
|
||||
reverseOrder={false}
|
||||
/>
|
||||
</div>
|
||||
{/* Card */}
|
||||
<div className="hero-content text-neutral-content text-center w-full max-w-full h-full m-10">
|
||||
<div className="card bg-base-100 shadow-2xl w-full min-h-full h-full max-h-[calc(100vh-13rem)] p-4 flex flex-col mr-24 ml-24">
|
||||
@@ -65,10 +57,10 @@ export default async function RootLayout({
|
||||
<footer className="footer flex justify-between items-center p-4 bg-base-200 mt-4 rounded-lg shadow-md">
|
||||
{/* Left: Impressum & Datenschutz */}
|
||||
<div className="flex gap-4 text-sm">
|
||||
<a href="/impressum" className="hover:text-primary">
|
||||
<a href="https://virtualairrescue.com/impressum/" className="hover:text-primary">
|
||||
Impressum
|
||||
</a>
|
||||
<a href="/datenschutz" className="hover:text-primary">
|
||||
<a href="https://virtualairrescue.com/datenschutz/" className="hover:text-primary">
|
||||
Datenschutzerklärung
|
||||
</a>
|
||||
</div>
|
||||
@@ -80,7 +72,7 @@ export default async function RootLayout({
|
||||
<div className="flex gap-4">
|
||||
<div className="tooltip tooltip-top" data-tip="Discord">
|
||||
<a
|
||||
href="https://discord.com"
|
||||
href="https://discord.gg/yn7uXmmNnG"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="hover:text-primary"
|
||||
@@ -90,7 +82,7 @@ export default async function RootLayout({
|
||||
</div>
|
||||
<div className="tooltip tooltip-top" data-tip="Instagram">
|
||||
<a
|
||||
href="https://instagram.com"
|
||||
href="https://www.instagram.com/virtualairrescue/"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="hover:text-primary"
|
||||
@@ -99,7 +91,7 @@ export default async function RootLayout({
|
||||
</a>
|
||||
</div>
|
||||
<div className="tooltip tooltip-top" data-tip="Knowledgebase">
|
||||
<a href="/docs" className="hover:text-primary">
|
||||
<a href="https://docs.virtualairrescue.com/" className="hover:text-primary">
|
||||
<ReaderIcon className="w-5 h-5" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user