1- import React , { ReactNode } from 'react' ;
2- import AppBar from '@mui/material/AppBar/AppBar' ;
3- import Toolbar from '@mui/material/Toolbar/Toolbar' ;
4- import { useNavigate } from 'react-router-dom' ;
5- import UserButton from './features/toolbar/components/UserButton' ;
6- import { useIsMobile } from './features/toolbar/hooks/useIsMobile' ;
7- import SearchBar from './features/toolbar/components/SearchBar' ;
1+ import React , { ReactNode } from "react" ;
2+ import AppBar from "@mui/material/AppBar/AppBar" ;
3+ import Toolbar from "@mui/material/Toolbar/Toolbar" ;
4+ import { useNavigate } from "react-router-dom" ;
5+ import UserButton from "./features/toolbar/components/UserButton" ;
6+ import { useIsMobile } from "./features/toolbar/hooks/useIsMobile" ;
7+ import SearchBar from "./features/toolbar/components/SearchBar" ;
8+ import "./App.css" ;
89
9- export const FUEL_GREEN = ' #00f58c' ;
10+ export const FUEL_GREEN = " #00f58c" ;
1011
1112interface AppProps {
1213 children ?: ReactNode ;
1314}
1415
15- function App ( { children} : AppProps ) {
16+ function App ( { children } : AppProps ) {
1617 const navigate = useNavigate ( ) ;
1718 const isMobile = useIsMobile ( ) ;
1819
1920 return (
20- < div
21- style = { {
22- width : '100%' ,
23- display : 'flex' ,
24- flexDirection : 'column' ,
25- textAlign : 'center' ,
26- backgroundColor : 'lightGrey' ,
27- height : '100vh' ,
28- } } >
29- < AppBar position = 'static' >
30- < Toolbar style = { { backgroundColor : '#181818' } } >
31- < div
32- style = { {
33- flexGrow : 1 ,
34- display : 'block' ,
35- color : FUEL_GREEN ,
36- fontSize : '24px' ,
37- fontFamily : 'monospace' ,
38- cursor : 'pointer'
39- } } onClick = { ( ) => navigate ( '/' ) } >
21+ < div className = "app-container" >
22+ < AppBar position = "static" >
23+ < Toolbar className = "app-toolbar" >
24+ < div className = "app-logo" onClick = { ( ) => navigate ( "/" ) } >
4025 forc.pub
4126 </ div >
4227
@@ -45,7 +30,7 @@ function App({children}: AppProps) {
4530 </ Toolbar >
4631 { isMobile && < SearchBar /> }
4732 </ AppBar >
48- { children }
33+ < div className = "app-content" > { children } </ div >
4934 </ div >
5035 ) ;
5136}
0 commit comments