Gennadysht il y a 1 an
Parent
commit
2695e75a06
1 fichiers modifiés avec 5 ajouts et 3 suppressions
  1. 5 3
      src/App.js

+ 5 - 3
src/App.js

@@ -10,7 +10,9 @@ import { CCategory } from './Components/Category';
 import { CCart } from './Components/Cart';
 import { createBrowserHistory } from "history";
 import { PersistGate } from 'redux-persist/integration/react';
-import { Typography } from '@mui/material';
+import { Box, Drawer, Paper, Typography } from '@mui/material';
+import backImage from "./images/theme_main.png"
+
 export const history = createBrowserHistory();
 
 
@@ -27,9 +29,9 @@ const NotFound = () =>
 
 
 const Main = () =>
-  <div>
+  <Box height="100vh" sx={{ backgroundImage: `url(${backImage})`, backgroundSize: "cover", backgroundRepeat: "no-repeat", backgroundPosition: "center center", marginTop: "-2.5vh" }}>
     <h1>Main page</h1>
-  </div>
+  </Box>
 
 //<EditPost onSave={post => console.log(post)}/>
 function App() {