Files
hipmi/src/app_modules/auth/splash/view.tsx
Bagasbanuna02 9068631c33 #style: Tampilan home
Deskripsi:
- Tampilan tamplate layout positionnya di ganti fixed ( tidak bisa di tarik ke bawah jika sudah menjadi aplikasi )
- UI Home selesai
- UI User search selesai
- UI Notifikasi selesai
## No issuee
2024-07-09 10:25:18 +08:00

48 lines
1.3 KiB
TypeScript

"use client";
import { MainColor } from "@/app_modules/component_global/color/color_pallet";
import ComponentGlobal_SplashScreen from "@/app_modules/component_global/splash/splash_global";
import { BackgroundImage, Center, Image, Paper, Stack } from "@mantine/core";
import { useShallowEffect } from "@mantine/hooks";
import { useRouter } from "next/navigation";
export default function SplashScreen({ data }: { data: any }) {
const router = useRouter();
useShallowEffect(() => {
if (!data) {
setTimeout(() => {
return router.push("/dev/auth/login", { scroll: false });
}, 1000);
} else {
setTimeout(() => {
return router.push("/dev/home", { scroll: false });
}, 1000);
}
}, []);
return (
<>
<BackgroundImage
src={"/aset/global/main_background.png"}
h={"100vh"}
// pos={"static"}
>
<Center h={"100vh"}>
<Stack align="center" justify="center" p={"md"}>
{/* <Title c={"#002e59"}>Welcome to</Title> */}
<Paper
p={{ base: 20, md: 30, lg: 40 }}
bg={"gray.1"}
radius={"100%"}
shadow="xl"
>
<Image height={200} alt="" src={"/aset/logo/logo-hipmi.png"} />
</Paper>
</Stack>
</Center>
</BackgroundImage>
</>
);
}