style : add module

Deskripsi:
- add global
- add login
- add varification
- add welcome
- add home

No issue
This commit is contained in:
lukman
2024-07-03 14:27:32 +08:00
parent 497e38cf6f
commit e70103e2f7
10 changed files with 335 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
export const WARNA = {
bgWhite: "#F4F9FD",
biruTua: "#19345E",
}

View File

@@ -0,0 +1,7 @@
import { WARNA } from "./fun/WARNA";
import LayoutLogin from "./layout/layout_login";
import LayoutNavbarHome from "./layout/layout_navbar_home";
export { WARNA }
export { LayoutLogin }
export {LayoutNavbarHome}

View File

@@ -0,0 +1,21 @@
import { Image, rem, Stack, Title } from "@mantine/core";
import React from "react";
import { WARNA } from "../fun/WARNA";
export default function LayoutLogin({
children,
}: {
children: React.ReactNode;
}) {
return (
<>
<Stack justify="center" align="center" pt={rem(50)}>
<Image w={102} h={103} src={"/assets/img/logo/logo-1.png"} alt="logo" />
<Title c={WARNA.biruTua} order={4}>
PERBEKAL DARMASABA
</Title>
</Stack>
{children}
</>
);
}

View File

@@ -0,0 +1,19 @@
import { Box, Grid, Group } from '@mantine/core';
import React from 'react';
import { WARNA } from '../fun/WARNA';
export const LayoutNavbarHome = ({ children }: { children: React.ReactNode }) => {
return (
<>
<Box pt={25} pl={20} pr={20} m={0} pb={25} bg={WARNA.biruTua}
style={{
borderBottomLeftRadius: 20,
borderBottomRightRadius: 20,
}}
>
{children}
</Box>
</>
);
}
export default LayoutNavbarHome