add text to login screen
This commit is contained in:
parent
a32e31bb6c
commit
92eed41ace
|
@ -16,7 +16,7 @@ const SMTP_PORT = "465";
|
||||||
const IMAP_PORT = "993";
|
const IMAP_PORT = "993";
|
||||||
const SMTP_SECURITY = "SSL/TLS";
|
const SMTP_SECURITY = "SSL/TLS";
|
||||||
const IMAP_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() {
|
export default function SelfService() {
|
||||||
const session = useSession().data;
|
const session = useSession().data;
|
||||||
|
|
|
@ -4,6 +4,7 @@ import { Button, Flex, Heading, Text, Link } from "@radix-ui/themes";
|
||||||
import { Session } from "next-auth";
|
import { Session } from "next-auth";
|
||||||
import { SessionProvider, signIn } from "next-auth/react";
|
import { SessionProvider, signIn } from "next-auth/react";
|
||||||
import useThemePreference from "../hooks/useThemePreference";
|
import useThemePreference from "../hooks/useThemePreference";
|
||||||
|
import { WEBMAIL_URL } from "@/app/self-service/page";
|
||||||
|
|
||||||
export default function AuthWrapper({
|
export default function AuthWrapper({
|
||||||
children,
|
children,
|
||||||
|
@ -26,6 +27,15 @@ export default function AuthWrapper({
|
||||||
<Flex direction='column' gap='4' m="4" align='center'>
|
<Flex direction='column' gap='4' m="4" align='center'>
|
||||||
<Heading size='8'>Unauthenticated</Heading>
|
<Heading size='8'>Unauthenticated</Heading>
|
||||||
<Button variant="outline" size='3' onClick={() => signIn()}>Sign in</Button>
|
<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>
|
||||||
<Flex justify="end" className="fixed bottom-0 w-full">
|
<Flex justify="end" className="fixed bottom-0 w-full">
|
||||||
<Text className="opacity-50 p-4 pr-10" weight="light">
|
<Text className="opacity-50 p-4 pr-10" weight="light">
|
||||||
|
|
Loading…
Reference in a new issue