mirror of
https://github.com/mosh-hamedani/game-hub.git
synced 2026-05-21 12:14:32 +02:00
Build a navbar
This commit is contained in:
parent
672ec1773f
commit
f54b49d70c
|
|
@ -1,4 +1,5 @@
|
||||||
import { Grid, GridItem, Show } from "@chakra-ui/react";
|
import { Grid, GridItem, Show } from "@chakra-ui/react";
|
||||||
|
import NavBar from "./components/NavBar";
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
|
|
@ -8,8 +9,8 @@ function App() {
|
||||||
lg: `"nav nav" "aside main"`,
|
lg: `"nav nav" "aside main"`,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<GridItem area="nav" bg="coral">
|
<GridItem area="nav">
|
||||||
Nav
|
<NavBar />
|
||||||
</GridItem>
|
</GridItem>
|
||||||
<Show above="lg">
|
<Show above="lg">
|
||||||
<GridItem area="aside" bg="gold">
|
<GridItem area="aside" bg="gold">
|
||||||
|
|
|
||||||
BIN
src/assets/logo.webp
Normal file
BIN
src/assets/logo.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.1 KiB |
13
src/components/NavBar.tsx
Normal file
13
src/components/NavBar.tsx
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
import { HStack, Image, Text } from '@chakra-ui/react'
|
||||||
|
import logo from '../assets/logo.webp';
|
||||||
|
|
||||||
|
const NavBar = () => {
|
||||||
|
return (
|
||||||
|
<HStack>
|
||||||
|
<Image src={logo} boxSize='60px' />
|
||||||
|
<Text>NavBar</Text>
|
||||||
|
</HStack>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default NavBar
|
||||||
Loading…
Reference in a new issue