Browse Source

layout theme

master
liujiangyong 2 years ago
parent
commit
c5c5cf66d0
  1. 5
      web/client/src/layout/components/header/index.js
  2. 19
      web/client/src/layout/components/header/style.css
  3. 2
      web/client/src/layout/components/sider/index.js
  4. 2
      web/client/src/layout/containers/layout/index.js

5
web/client/src/layout/components/header/index.js

@ -38,14 +38,15 @@ const Header = props => {
</span> </span>
<div className={styles['header-title']} style={{}}> <div className={styles['header-title']} style={{}}>
{/* <img src='/assets/images/logo.png' style={{ margin: '0 12px 4px 12px', height: 42, borderRadius: 4 }} /> */} {/* <img src='/assets/images/logo.png' style={{ margin: '0 12px 4px 12px', height: 42, borderRadius: 4 }} /> */}
运维巡检平台 <div className={styles['title-cn']}>运维巡检平台</div>
<div className={styles['title-en']}>RUNNING MANAGEMENT SYSTEM</div>
</div> </div>
</div> </div>
<div id="nav" className={styles['header-nav']}> <div id="nav" className={styles['header-nav']}>
<Menu <Menu
mode='horizontal' mode='horizontal'
selectedKeys={[current]} selectedKeys={[current]}
style={{ border: 0, background: '#1890ff' }} style={{ border: 0, background: '#0B1930' }}
onClick={handelClick} onClick={handelClick}
theme={'light'} theme={'light'}
items={[{ items={[{

19
web/client/src/layout/components/header/style.css

@ -2,7 +2,7 @@
position: relative; position: relative;
height: 65px; height: 65px;
min-width: 520px; min-width: 520px;
background-color: #1890ff; background-color: #0B1930;
} }
.header-fold { .header-fold {
@ -12,13 +12,26 @@
} }
.header-title { .header-title {
line-height: 60px; margin-top: 19px;
height: 60px;
display: inline-block; display: inline-block;
font-size: 20px;
color: #fff; color: #fff;
text-shadow: 0 4px 3px rgba(54, 77, 108, 0.20); text-shadow: 0 4px 3px rgba(54, 77, 108, 0.20);
} }
.header-title .title-cn {
font-family: YouSheBiaoTiHei;
font-size: 18px;
line-height: 18px;
letter-spacing: 3px;
}
.header-title .title-en {
font-family: D-DINExp-Italic;
line-height: 8px;
font-size: 8px;
}
.header-nav { .header-nav {
float: right; float: right;
} }

2
web/client/src/layout/components/sider/index.js

@ -58,7 +58,7 @@ const Sider = (props) => {
return ( return (
<Menu id="sider" mode="inline" <Menu id="sider" mode="inline"
theme={'light'} theme={'dark'}
selectedKeys={selectedKeys} selectedKeys={selectedKeys}
openKeys={openKeys} openKeys={openKeys}
onSelect={(e) => { onSelect={(e) => {

2
web/client/src/layout/containers/layout/index.js

@ -83,7 +83,7 @@ const LayoutContainer = props => {
/> />
</Layout.Header> </Layout.Header>
<Layout> <Layout>
<Layout.Sider trigger={null} collapsible collapsed={collapsed} theme={'light'}> <Layout.Sider trigger={null} collapsible collapsed={collapsed} theme={'dark'}>
<Sider <Sider
sections={sections} sections={sections}
dispatch={dispatch} dispatch={dispatch}

Loading…
Cancel
Save