add text to login screen

This commit is contained in:
Lea 2024-01-17 22:09:48 +01:00
parent a32e31bb6c
commit 92eed41ace
Signed by: Lea
GPG key ID: 1BAFFE8347019C42
2 changed files with 11 additions and 1 deletions

View file

@ -16,7 +16,7 @@ const SMTP_PORT = "465";
const IMAP_PORT = "993";
const SMTP_SECURITY = "SSL/TLS";
const IMAP_SECURITY = "SSL/TLS";
const WEBMAIL_URL = "https://webmail.amogus.cloud";
export const WEBMAIL_URL = "https://webmail.amogus.cloud";
export default function SelfService() {
const session = useSession().data;

View file

@ -4,6 +4,7 @@ import { Button, Flex, Heading, Text, Link } from "@radix-ui/themes";
import { Session } from "next-auth";
import { SessionProvider, signIn } from "next-auth/react";
import useThemePreference from "../hooks/useThemePreference";
import { WEBMAIL_URL } from "@/app/self-service/page";
export default function AuthWrapper({
children,
@ -26,6 +27,15 @@ export default function AuthWrapper({
<Flex direction='column' gap='4' m="4" align='center'>
<Heading size='8'>Unauthenticated</Heading>
<Button variant="outline" size='3' onClick={() => signIn()}>Sign in</Button>
<Text size="3" weight="light" className="text-center">
This page is for managing your mail account.
<br />
You can access the webmail{" "}
<Link href={WEBMAIL_URL} target="_blank">
here
</Link>
.
</Text>
</Flex>
<Flex justify="end" className="fixed bottom-0 w-full">
<Text className="opacity-50 p-4 pr-10" weight="light">