mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 07:09:27 +08:00
左侧栏初步
This commit is contained in:
@@ -1,8 +1,23 @@
|
||||
.page-content {
|
||||
width: 1200px;
|
||||
min-height: calc(100vh - 173px);
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top: 30px;
|
||||
margin-bottom: 100px;
|
||||
}
|
||||
width: 1200px;
|
||||
min-height: calc(100vh - 173px);
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top: 30px;
|
||||
margin-bottom: 100px;
|
||||
}
|
||||
|
||||
.layout-wrap {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.left-menu {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.right-cont {
|
||||
width: calc(100% - 200px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
@@ -1,13 +1,25 @@
|
||||
import React from "react";
|
||||
import styles from "./HomePage.module.css";
|
||||
import { Header, Footer } from "../../compenents";
|
||||
import { Outlet } from "react-router-dom";
|
||||
import { Header, LeftMenu } from "../../compenents";
|
||||
|
||||
export const HomePage: React.FC = () => {
|
||||
return (
|
||||
<>
|
||||
<Header></Header>
|
||||
<div className={styles["page-content"]}>主页</div>
|
||||
<Footer></Footer>
|
||||
<div className={styles["layout-wrap"]}>
|
||||
<div className={styles["left-menu"]}>
|
||||
<LeftMenu />
|
||||
</div>
|
||||
<div className={styles["right-cont"]}>
|
||||
<div className={styles["right-top"]}>
|
||||
<Header></Header>
|
||||
</div>
|
||||
<div className={styles["right-main"]}>
|
||||
{/* 二级路由出口 */}
|
||||
<Outlet />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user