diff --git a/src/frontend/apps/desk/src/components/Box.tsx b/src/frontend/apps/desk/src/components/Box.tsx index 2dd8562f..bc199f0c 100644 --- a/src/frontend/apps/desk/src/components/Box.tsx +++ b/src/frontend/apps/desk/src/components/Box.tsx @@ -21,8 +21,10 @@ export interface BoxProps { $height?: CSSProperties['height']; $justify?: CSSProperties['justifyContent']; $overflow?: CSSProperties['overflow']; - $maxWidth?: CSSProperties['maxWidth']; $margin?: MarginPadding; + $maxHeight?: CSSProperties['maxHeight']; + $minHeight?: CSSProperties['minHeight']; + $maxWidth?: CSSProperties['maxWidth']; $minWidth?: CSSProperties['minWidth']; $padding?: MarginPadding; $position?: CSSProperties['position']; @@ -52,5 +54,7 @@ export const Box = styled('div')` ${({ $width }) => $width && `width: ${$width};`} ${({ $maxWidth }) => $maxWidth && `max-width: ${$maxWidth};`} ${({ $minWidth }) => $minWidth && `min-width: ${$minWidth};`} + ${({ $maxHeight }) => $maxHeight && `max-height: ${$maxHeight};`} + ${({ $minHeight }) => $minHeight && `min-height: ${$minHeight};`} ${({ $css }) => $css && `${$css};`} `; diff --git a/src/frontend/apps/desk/src/core/index.ts b/src/frontend/apps/desk/src/core/index.ts index 6af29680..bd2c0cdc 100644 --- a/src/frontend/apps/desk/src/core/index.ts +++ b/src/frontend/apps/desk/src/core/index.ts @@ -1,2 +1 @@ export * from './AppProvider'; -export * from './MainLayout'; diff --git a/src/frontend/apps/desk/src/features/mail-domains/components/MailDomainsLayout.tsx b/src/frontend/apps/desk/src/features/mail-domains/components/MailDomainsLayout.tsx index 7d1e14ac..be220f86 100644 --- a/src/frontend/apps/desk/src/features/mail-domains/components/MailDomainsLayout.tsx +++ b/src/frontend/apps/desk/src/features/mail-domains/components/MailDomainsLayout.tsx @@ -1,9 +1,9 @@ import { PropsWithChildren } from 'react'; import { Box } from '@/components'; -import { MainLayout } from '@/core'; import { useCunninghamTheme } from '@/cunningham'; import { Panel } from '@/features/mail-domains/components/panel'; +import { MainLayout } from '@/layouts'; export function MailDomainsLayout({ children }: PropsWithChildren) { const { colorsTokens } = useCunninghamTheme(); diff --git a/src/frontend/apps/desk/src/features/teams/components/TeamLayout.tsx b/src/frontend/apps/desk/src/features/teams/components/TeamLayout.tsx index ec818228..36ee4f14 100644 --- a/src/frontend/apps/desk/src/features/teams/components/TeamLayout.tsx +++ b/src/frontend/apps/desk/src/features/teams/components/TeamLayout.tsx @@ -1,9 +1,9 @@ import { PropsWithChildren } from 'react'; import { Box } from '@/components'; -import { MainLayout } from '@/core'; import { useCunninghamTheme } from '@/cunningham'; import { Panel } from '@/features/teams'; +import { MainLayout } from '@/layouts'; export function TeamLayout({ children }: PropsWithChildren) { const { colorsTokens } = useCunninghamTheme(); diff --git a/src/frontend/apps/desk/src/core/MainLayout.tsx b/src/frontend/apps/desk/src/layouts/MainLayout.tsx similarity index 100% rename from src/frontend/apps/desk/src/core/MainLayout.tsx rename to src/frontend/apps/desk/src/layouts/MainLayout.tsx diff --git a/src/frontend/apps/desk/src/layouts/PageLayout.tsx b/src/frontend/apps/desk/src/layouts/PageLayout.tsx new file mode 100644 index 00000000..df33e1bd --- /dev/null +++ b/src/frontend/apps/desk/src/layouts/PageLayout.tsx @@ -0,0 +1,15 @@ +import { PropsWithChildren } from 'react'; + +import { Box } from '@/components'; +import { Header } from '@/features/header'; + +export function PageLayout({ children }: PropsWithChildren) { + return ( + +
+ + {children} + + + ); +} diff --git a/src/frontend/apps/desk/src/layouts/index.ts b/src/frontend/apps/desk/src/layouts/index.ts new file mode 100644 index 00000000..eb143cc4 --- /dev/null +++ b/src/frontend/apps/desk/src/layouts/index.ts @@ -0,0 +1,2 @@ +export * from './MainLayout'; +export * from './PageLayout'; diff --git a/src/frontend/apps/desk/src/pages/404.tsx b/src/frontend/apps/desk/src/pages/404.tsx index ac2e61eb..c3a66630 100644 --- a/src/frontend/apps/desk/src/pages/404.tsx +++ b/src/frontend/apps/desk/src/pages/404.tsx @@ -5,7 +5,7 @@ import styled from 'styled-components'; import Icon404 from '@/assets/icons/icon-404.svg'; import { Box, StyledLink, Text } from '@/components'; -import { MainLayout } from '@/core'; +import { MainLayout } from '@/layouts'; import { NextPageWithLayout } from '@/types/next'; const StyledButton = styled(Button)`