Gennadysht 1 éve
szülő
commit
2695e75a06
1 módosított fájl, 5 hozzáadás és 3 törlés
  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() {