This commit is contained in:
12
src/App/AppLayout/index.tsx
Normal file
12
src/App/AppLayout/index.tsx
Normal file
@ -0,0 +1,12 @@
|
||||
import { FC, ReactNode } from "react";
|
||||
|
||||
import style from './style.module.scss'
|
||||
|
||||
interface AppLayoutProp {
|
||||
children?: ReactNode
|
||||
}
|
||||
|
||||
export const AppLayout: FC<AppLayoutProp> = ({ children }) =>
|
||||
<div className={style.container}>
|
||||
{children}
|
||||
</div>
|
16
src/App/AppLayout/style.module.scss
Normal file
16
src/App/AppLayout/style.module.scss
Normal file
@ -0,0 +1,16 @@
|
||||
.container {
|
||||
display: flex;
|
||||
|
||||
width: 100vw;
|
||||
height: 100dvh;
|
||||
|
||||
> * {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
& {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
}
|
11
src/App/index.tsx
Normal file
11
src/App/index.tsx
Normal file
@ -0,0 +1,11 @@
|
||||
import { FC } from "react";
|
||||
import { AppLayout } from "./AppLayout";
|
||||
import { Editor } from "../Editor";
|
||||
import { TransformGrid } from "../TransformGrid";
|
||||
|
||||
export const App: FC = () =>
|
||||
<AppLayout>
|
||||
<Editor />
|
||||
<TransformGrid />
|
||||
</AppLayout>
|
||||
|
Reference in New Issue
Block a user