First Commit
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
import type { BunextPageModuleMeta } from "@moduletrace/bunext/types";
|
||||
import Section from "@/src/components/twui/layout/Section";
|
||||
import Loading from "@/src/components/twui/elements/Loading";
|
||||
import Row from "@/src/components/twui/layout/Row";
|
||||
import Span from "@/src/components/twui/layout/Span";
|
||||
import { useEffect } from "react";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
import Logo from "@/src/components/general/logo";
|
||||
import Paper from "@/src/components/twui/elements/Paper";
|
||||
import Container from "@/src/components/twui/layout/Container";
|
||||
import Center from "@/src/components/twui/layout/Center";
|
||||
import { SiteData } from "@/src/data/site-data";
|
||||
|
||||
export default function LogoutPage() {
|
||||
useEffect(() => {
|
||||
setTimeout(() => {
|
||||
window.location.pathname = "/";
|
||||
}, 1000);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<Section
|
||||
className={twMerge(
|
||||
"h-screen w-screen px-0 items-center justify-center",
|
||||
)}
|
||||
>
|
||||
<Center>
|
||||
<Paper className="w-auto p-10 items-center">
|
||||
<Logo
|
||||
text_props={{
|
||||
className: "text-dark",
|
||||
}}
|
||||
/>
|
||||
<Row>
|
||||
<Loading />
|
||||
<Span>Logging out ...</Span>
|
||||
</Row>
|
||||
</Paper>
|
||||
</Center>
|
||||
</Section>
|
||||
);
|
||||
}
|
||||
|
||||
export const meta: BunextPageModuleMeta = {
|
||||
title: `Logging Out | ${SiteData["SiteName"]}`,
|
||||
description: `You are being logged out and redirected to the homepage.`,
|
||||
};
|
||||
Reference in New Issue
Block a user