diff --git a/src/module/_global/index.ts b/src/module/_global/index.ts index 9a9f104..e4c5267 100644 --- a/src/module/_global/index.ts +++ b/src/module/_global/index.ts @@ -4,6 +4,7 @@ import LayoutIconBack from "./layout/layout_icon_back"; import LoadingPage from "./layout/layout_loading_page"; import LayoutLogin from "./layout/layout_login"; import LayoutNavbarHome from "./layout/layout_navbar_home"; +import LayoutNavbarNew from "./layout/layout_navbar_new"; import { isDrawer } from "./val/isDrawer"; import { isModal } from "./val/isModal"; @@ -14,4 +15,5 @@ export { LayoutIconBack } export { LoadingPage } export { LayoutDrawer } export { isDrawer } -export { isModal } \ No newline at end of file +export { isModal } +export { LayoutNavbarNew } \ No newline at end of file diff --git a/src/module/_global/layout/layout_drawer.tsx b/src/module/_global/layout/layout_drawer.tsx index df7b558..be177e3 100644 --- a/src/module/_global/layout/layout_drawer.tsx +++ b/src/module/_global/layout/layout_drawer.tsx @@ -10,6 +10,8 @@ export default function LayoutDrawer({ opened, onClose, title, children, size }: content: { backgroundColor: "white", borderRadius: "20px 20px 0px 0px", + maxWidth: 550, + margin: "0 auto", }, }} > diff --git a/src/module/_global/layout/layout_navbar_home.tsx b/src/module/_global/layout/layout_navbar_home.tsx index fa35cd1..84bcd5e 100644 --- a/src/module/_global/layout/layout_navbar_home.tsx +++ b/src/module/_global/layout/layout_navbar_home.tsx @@ -8,7 +8,8 @@ export const LayoutNavbarHome = ({ children }: { children: React.ReactNode }) => style={{ borderBottomLeftRadius: 20, borderBottomRightRadius: 20, - zIndex: 100 + zIndex: 100, + boxShadow: "0px 4px 4px rgba(0, 0, 0, 0.25)" }} > {children} diff --git a/src/module/_global/layout/layout_navbar_new.tsx b/src/module/_global/layout/layout_navbar_new.tsx new file mode 100644 index 0000000..2f2f743 --- /dev/null +++ b/src/module/_global/layout/layout_navbar_new.tsx @@ -0,0 +1,35 @@ +'use client' +import { ActionIcon, Box, Grid, Group, Text, Title } from '@mantine/core'; +import React from 'react'; +import { WARNA } from '../fun/WARNA'; +import LayoutIconBack from './layout_icon_back'; +import _ from 'lodash'; + +export const LayoutNavbarNew = ({ back, title, menu }: { back: string, title: string, menu: React.ReactNode }) => { + return ( + + + + + + + {/* GROUP */} + {_.startCase(title)} + + + + {menu} + + + + + ); +} +export default LayoutNavbarNew \ No newline at end of file diff --git a/src/module/announcement/component/ui/navbar_announcement.tsx b/src/module/announcement/component/ui/navbar_announcement.tsx index 782be67..150cfb9 100644 --- a/src/module/announcement/component/ui/navbar_announcement.tsx +++ b/src/module/announcement/component/ui/navbar_announcement.tsx @@ -1,5 +1,5 @@ "use client" -import { isDrawer, LayoutDrawer, LayoutIconBack, LayoutNavbarHome, WARNA } from '@/module/_global'; +import { isDrawer, LayoutDrawer, LayoutIconBack, LayoutNavbarHome, LayoutNavbarNew, WARNA } from '@/module/_global'; import { ActionIcon, Box, Drawer, Grid, Group, Text } from '@mantine/core'; import { useRouter } from 'next/navigation'; import React from 'react'; @@ -11,23 +11,12 @@ export default function NavbarAnnouncement() { const openDrawer = useHookstate(isDrawer) return ( <> - - - - - - - PENGUMUMAN - - - - openDrawer.set(true)} variant="light" bg={WARNA.bgIcon} size="lg" radius="lg" aria-label="Settings"> - - - - - - + openDrawer.set(true)} variant="light" bg={WARNA.bgIcon} size="lg" radius="lg" aria-label="Settings"> + + + } /> openDrawer.set(false)}> diff --git a/src/module/auth/welcome/view_welcome.tsx b/src/module/auth/welcome/view_welcome.tsx index 0d43a30..0c7c34f 100644 --- a/src/module/auth/welcome/view_welcome.tsx +++ b/src/module/auth/welcome/view_welcome.tsx @@ -1,6 +1,7 @@ "use client"; import { Anchor, + Box, Button, Center, Flex, @@ -37,8 +38,8 @@ export function ViewWelcome() { function onLanjutkan() { if (index === listTextWellcome.length - 1) { - // return router.push("/home"); - return window.location.href = "/home" + return router.replace("/home"); + // return window.location.href = "/home" } setIndex(index + 1); } @@ -51,9 +52,10 @@ export function ViewWelcome() { } return ( - - Lewati - + + router.replace("/home")}>Lewati + + @@ -66,6 +68,8 @@ export function ViewWelcome() { right={0} p={"xl"} align={"center"} + maw={550} + m={"0 auto"} >