(app-impress) add layouts

Add layouts folder to the app-impress,
it will contain all the layouts for the app.
For the moment:
- MainLayout.tsx
- PadLayout.tsx
This commit is contained in:
Anthony LC
2024-04-02 17:30:35 +02:00
committed by Anthony LC
parent dfafd335f4
commit 1bf391f26f
9 changed files with 33 additions and 6 deletions

View File

@@ -1,2 +1 @@
export * from './AppProvider';
export * from './MainLayout';

View File

@@ -0,0 +1,26 @@
import { PropsWithChildren } from 'react';
import { Box } from '@/components';
import { useCunninghamTheme } from '@/cunningham';
import { Panel } from '@/features/pads-panel';
import { MainLayout } from './MainLayout';
export function PadLayout({ children }: PropsWithChildren) {
const { colorsTokens } = useCunninghamTheme();
return (
<MainLayout>
<Box $height="inherit" $direction="row">
<Panel />
<Box
$background={colorsTokens()['primary-bg']}
$width="100%"
$height="inherit"
>
{children}
</Box>
</Box>
</MainLayout>
);
}

View File

@@ -0,0 +1,2 @@
export * from './MainLayout';
export * from './PadLayout';

View File

@@ -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)`

View File

@@ -1,7 +1,7 @@
import { ReactElement } from 'react';
import { Box } from '@/components';
import { MainLayout } from '@/core';
import { MainLayout } from '@/layouts';
import { NextPageWithLayout } from '@/types/next';
const Page: NextPageWithLayout = () => {

View File

@@ -1,7 +1,7 @@
import { ReactElement } from 'react';
import { Box } from '@/components';
import { MainLayout } from '@/core';
import { MainLayout } from '@/layouts';
import { NextPageWithLayout } from '@/types/next';
const Page: NextPageWithLayout = () => {

View File

@@ -1,7 +1,7 @@
import { ReactElement } from 'react';
import { Box } from '@/components';
import { MainLayout } from '@/core';
import { MainLayout } from '@/layouts';
import { NextPageWithLayout } from '@/types/next';
const Page: NextPageWithLayout = () => {

View File

@@ -1,7 +1,7 @@
import { ReactElement } from 'react';
import { Box } from '@/components';
import { MainLayout } from '@/core/';
import { MainLayout } from '@/layouts';
import { NextPageWithLayout } from '@/types/next';
const Page: NextPageWithLayout = () => {