mirror of
https://github.com/mosh-hamedani/game-hub.git
synced 2026-05-21 12:14:32 +02:00
Build a responsive layout
This commit is contained in:
parent
ffb75dad3b
commit
672ec1773f
25
src/App.tsx
25
src/App.tsx
|
|
@ -1,7 +1,26 @@
|
||||||
import { Button, ButtonGroup } from '@chakra-ui/react'
|
import { Grid, GridItem, Show } from "@chakra-ui/react";
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return <Button colorScheme='blue'>Button</Button>;
|
return (
|
||||||
|
<Grid
|
||||||
|
templateAreas={{
|
||||||
|
base: `"nav" "main"`,
|
||||||
|
lg: `"nav nav" "aside main"`,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<GridItem area="nav" bg="coral">
|
||||||
|
Nav
|
||||||
|
</GridItem>
|
||||||
|
<Show above="lg">
|
||||||
|
<GridItem area="aside" bg="gold">
|
||||||
|
Aside
|
||||||
|
</GridItem>
|
||||||
|
</Show>
|
||||||
|
<GridItem area="main" bg="dodgerblue">
|
||||||
|
Main
|
||||||
|
</GridItem>
|
||||||
|
</Grid>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default App
|
export default App;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue