浏览代码

rtk_alfa1

Gennadysht 1 年之前
父节点
当前提交
2695e75a06
共有 1 个文件被更改,包括 5 次插入3 次删除
  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() {