|
|
@ -1,18 +1,66 @@ |
|
|
|
import React from 'react'; |
|
|
|
import React from "react"; |
|
|
|
|
|
|
|
import './App.scss'; |
|
|
|
import { Outlet } from 'react-router'; |
|
|
|
import "./App.scss"; |
|
|
|
import { Outlet } from "react-router"; |
|
|
|
import { Layout } from "antd"; |
|
|
|
import { default as AppHeader} from "./components/Header"; |
|
|
|
import { default as AppFooter} from "./components/Footer"; |
|
|
|
import Menu from "./components/Menu"; |
|
|
|
|
|
|
|
const { Header, Footer, Sider, Content } = Layout; |
|
|
|
|
|
|
|
function App() { |
|
|
|
const headerStyle: React.CSSProperties = { |
|
|
|
textAlign: "center", |
|
|
|
color: "#fff", |
|
|
|
height: 64, |
|
|
|
paddingInline: 48, |
|
|
|
lineHeight: "64px", |
|
|
|
backgroundColor: "#4096ff", |
|
|
|
}; |
|
|
|
|
|
|
|
const contentStyle: React.CSSProperties = { |
|
|
|
textAlign: "center", |
|
|
|
minHeight: 120, |
|
|
|
lineHeight: "120px", |
|
|
|
color: "#fff", |
|
|
|
backgroundColor: "#0958d9", |
|
|
|
}; |
|
|
|
|
|
|
|
const siderStyle: React.CSSProperties = { |
|
|
|
textAlign: "center", |
|
|
|
lineHeight: "100vh", |
|
|
|
color: "#fff", |
|
|
|
backgroundColor: "#3165D2", |
|
|
|
}; |
|
|
|
|
|
|
|
const footerStyle: React.CSSProperties = { |
|
|
|
textAlign: "center", |
|
|
|
color: "#fff", |
|
|
|
backgroundColor: "#4096ff", |
|
|
|
}; |
|
|
|
|
|
|
|
const layoutStyle = { |
|
|
|
overflow: "hidden", |
|
|
|
}; |
|
|
|
return ( |
|
|
|
<div className="App"> |
|
|
|
APP |
|
|
|
<aside> |
|
|
|
SIDE |
|
|
|
</aside> |
|
|
|
<div> |
|
|
|
<div className=""> |
|
|
|
<Layout style={layoutStyle}> |
|
|
|
<Sider width="260px" style={siderStyle}> |
|
|
|
<Menu /> |
|
|
|
</Sider> |
|
|
|
<Layout> |
|
|
|
<Header style={headerStyle}> |
|
|
|
<AppHeader /> |
|
|
|
</Header> |
|
|
|
<Content style={contentStyle}> |
|
|
|
<Outlet /> |
|
|
|
</div> |
|
|
|
</Content> |
|
|
|
<Footer style={footerStyle}> |
|
|
|
<AppFooter /> |
|
|
|
</Footer> |
|
|
|
</Layout> |
|
|
|
</Layout> |
|
|
|
</div> |
|
|
|
); |
|
|
|
} |
|
|
|