首页文件夹

This commit is contained in:
caishi 2021-10-25 11:24:21 +08:00
parent 3bf9de2d4c
commit d37709b1a5
4 changed files with 24 additions and 3 deletions

View File

@ -22,6 +22,11 @@ const ProjectIndex = Loadable({
loading: Loading,
});
const ProjectHome = Loadable({
loader: () => import("./Main/projecthome/Index"),
loading: Loading,
});
// 项目详情放在用户和组织下作为二级菜单存在
// const ProjectDetail = Loadable({
// loader: () => import("./Main/Detail"),
@ -68,6 +73,12 @@ class Index extends Component {
></Route> */}
<Route
path="/explore"
render={(props) => (
<ProjectHome {...this.props} {...props} />
)}
></Route>
<Route
path="/explore/all"
render={(props) => (
<ProjectIndex {...this.props} {...props} />
)}

View File

@ -0,0 +1,10 @@
import React from 'react';
import './Index.scss';
function Index(props) {
return(
<div>首页index</div>
)
}
export default Index;

View File

View File

@ -28,13 +28,13 @@ body>.-task-title {
height:70px;
min-width: 1200px;
z-index: 1000;
background:rgba(255,255,255,1);
background: rgba(0, 0, 0, 0.4);
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.5);
position: fixed;
box-shadow: 0px 0px 14px rgb(0 0 0 / 10%);
}
.headerContent{
width:1200px;
margin:0px auto;
padding:0px 30px;
display: flex;
align-items: center;
height: 100%;