💄(frontend) darken the background as the mockup
Darken the background as the mockup to make the elements more visible.
This commit is contained in:
@@ -1,8 +1,11 @@
|
|||||||
import { Box } from '@/components';
|
import { Box } from '@/components';
|
||||||
|
import { useCunninghamTheme } from '@/cunningham';
|
||||||
import { Footer } from '@/features/footer/Footer';
|
import { Footer } from '@/features/footer/Footer';
|
||||||
import { HEADER_HEIGHT, Header } from '@/features/header';
|
import { HEADER_HEIGHT, Header } from '@/features/header';
|
||||||
|
|
||||||
export function MainLayout({ children }: { children: React.ReactNode }) {
|
export function MainLayout({ children }: { children: React.ReactNode }) {
|
||||||
|
const { colorsTokens } = useCunninghamTheme();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Box>
|
||||||
<Box $height="100vh">
|
<Box $height="100vh">
|
||||||
@@ -12,6 +15,7 @@ export function MainLayout({ children }: { children: React.ReactNode }) {
|
|||||||
as="main"
|
as="main"
|
||||||
$height={`calc(100vh - ${HEADER_HEIGHT})`}
|
$height={`calc(100vh - ${HEADER_HEIGHT})`}
|
||||||
$width="100%"
|
$width="100%"
|
||||||
|
$background={colorsTokens()['primary-bg']}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in New Issue
Block a user