Browse Source

rtk_alfa1

Gennadysht 1 year ago
parent
commit
2695e75a06
1 changed files with 5 additions and 3 deletions
  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() {