Files
Web-Frontend/client/src/App.jsx
T

53 lines
1.3 KiB
React
Raw Normal View History

2025-07-22 12:56:44 -07:00
import { Global, css } from "@emotion/react";
import Header from './components/layout/Header/Header.jsx';
import Sidebar from './components/layout/Sidebar/Sidebar.jsx';
import Canvas from './components/layout/Canvas/Canvas.jsx';
import { Grid, GridItem, useRecipe, Box } from '@chakra-ui/react';
2025-07-08 11:16:51 -07:00
function App() {
2025-07-15 18:28:37 -07:00
const recipe = useRecipe({ key: "canvas" });
const styles = recipe();
2025-07-08 11:16:51 -07:00
return (
2025-07-22 12:56:44 -07:00
<>
<Global // change the background color of widget shadow when moving
styles={css`
.react-grid-placeholder {
background: #c0d2e3ff !important;
border-color: #a9b6c2ff !important;
box-shadow: 0 0 10px #c0d2e3ff !important;
opacity: 1 !important;
border-radius: 5px;
}
2025-07-22 14:55:28 -07:00
.react-resizable-handle-se {
position: sticky;
right: 0;
bottom: 0;
}
2025-07-22 12:56:44 -07:00
`}
/>
2025-07-15 18:28:37 -07:00
<Grid css={styles}
2025-07-10 07:49:03 -07:00
templateRows="1fr 11fr"
2025-07-16 13:31:05 -07:00
templateColumns="1fr 20fr"
2025-07-08 11:16:51 -07:00
height="100vh"
width="100vw"
>
<GridItem rowSpan={1} colSpan={2}>
<Header />
</GridItem>
<GridItem colSpan={1}>
<Sidebar />
</GridItem>
2025-07-22 11:58:10 -07:00
<GridItem colSpan={1} width="100%">
2025-07-21 14:27:53 -07:00
<Canvas />
</GridItem>
2025-07-08 11:16:51 -07:00
</Grid>
2025-07-22 12:56:44 -07:00
</>
2025-07-08 11:16:51 -07:00
);
}
export default App