upd : page loading
Deskripsi: - membuat page berisikan skeleton loading - untuk page loading No Issues
This commit is contained in:
5
src/app/loading.tsx
Normal file
5
src/app/loading.tsx
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import { LoadingPage } from "@/module/_global";
|
||||||
|
|
||||||
|
export default function Loading() {
|
||||||
|
return <LoadingPage />
|
||||||
|
}
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
import { WARNA } from "./fun/WARNA";
|
import { WARNA } from "./fun/WARNA";
|
||||||
|
import LoadingPage from "./layout/layout_loading_page";
|
||||||
import LayoutLogin from "./layout/layout_login";
|
import LayoutLogin from "./layout/layout_login";
|
||||||
import LayoutNavbarHome from "./layout/layout_navbar_home";
|
import LayoutNavbarHome from "./layout/layout_navbar_home";
|
||||||
|
|
||||||
export { WARNA }
|
export { WARNA }
|
||||||
export { LayoutLogin }
|
export { LayoutLogin }
|
||||||
export {LayoutNavbarHome}
|
export { LayoutNavbarHome }
|
||||||
|
export { LoadingPage }
|
||||||
29
src/module/_global/layout/layout_loading_page.tsx
Normal file
29
src/module/_global/layout/layout_loading_page.tsx
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
import { Box, Group, Skeleton } from "@mantine/core";
|
||||||
|
|
||||||
|
export default function LoadingPage() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Box p={20}>
|
||||||
|
<Skeleton width={"100%"} height={180} radius={"md"} />
|
||||||
|
<Group my={20} justify="space-between" grow>
|
||||||
|
<Skeleton height={50} radius={"md"} />
|
||||||
|
<Skeleton height={50} radius={"md"} />
|
||||||
|
<Skeleton height={50} radius={"md"} />
|
||||||
|
</Group>
|
||||||
|
<Group my={20} justify="space-between" grow>
|
||||||
|
<Skeleton height={100} radius={"md"} />
|
||||||
|
<Skeleton height={100} radius={"md"} />
|
||||||
|
</Group>
|
||||||
|
<Group my={20} justify="space-between" grow>
|
||||||
|
<Skeleton height={100} radius={"md"} />
|
||||||
|
<Skeleton height={100} radius={"md"} />
|
||||||
|
</Group>
|
||||||
|
<Group my={20} justify="space-between" grow>
|
||||||
|
<Skeleton height={100} radius={"md"} />
|
||||||
|
<Skeleton height={100} radius={"md"} />
|
||||||
|
</Group>
|
||||||
|
</Box>
|
||||||
|
</>
|
||||||
|
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user