style : update style
This commit is contained in:
@@ -3,6 +3,6 @@ export interface IGlobalTema {
|
||||
bgUtama: string
|
||||
bgIcon: string
|
||||
bgFiturHome: string
|
||||
bgFiturDivisi: string
|
||||
bgFiturDivision: string
|
||||
bgTotalKegiatan: string
|
||||
}
|
||||
@@ -17,6 +17,6 @@ export const TEMA = hookstate<IGlobalTema>({
|
||||
bgUtama: "#F4F9FD",
|
||||
bgIcon: "#384288",
|
||||
bgFiturHome: "#FCAA4B",
|
||||
bgFiturDivisi: "#FCAA4B",
|
||||
bgFiturDivision: "#FCAA4B",
|
||||
bgTotalKegiatan: "#DCEED8"
|
||||
})
|
||||
@@ -1,9 +1,9 @@
|
||||
export const WARNA = {
|
||||
bgWhite: "#F4F9FD",
|
||||
// biruTua: "#19345E",
|
||||
biruTua: "#508D4E",
|
||||
// bgIcon: "#384288",
|
||||
bgIcon: "#3C8754",
|
||||
biruTua: "#19345E",
|
||||
// biruTua: "#508D4E",
|
||||
bgIcon: "#384288",
|
||||
// bgIcon: "#3C8754",
|
||||
borderOrange: "#FCAA4B",
|
||||
bgHijauMuda: "#DCEED8",
|
||||
borderBiruMuda: "#9EBDED"
|
||||
|
||||
14
src/module/_global/layout/layout_background.tsx
Normal file
14
src/module/_global/layout/layout_background.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
"use client"
|
||||
import { useHookstate } from '@hookstate/core';
|
||||
import { Container, rem } from '@mantine/core';
|
||||
import React from 'react';
|
||||
import { TEMA } from '../bin/val_global';
|
||||
|
||||
export default function LayoutBackground({ children }: { children: React.ReactNode }) {
|
||||
const tema = useHookstate(TEMA)
|
||||
return (
|
||||
<Container mih={'100vh'} p={0} size={rem(550)} bg={tema.get().bgUtama}>
|
||||
{children}
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user