Commit 9fe2040b by zhaochengxiang

首页调整

parent fc2a6539
src/assets/home/1.png

75.7 KB | W: | H:

src/assets/home/1.png

245 KB | W: | H:

src/assets/home/1.png
src/assets/home/1.png
src/assets/home/1.png
src/assets/home/1.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/home/menu1.png

3.2 KB | W: | H:

src/assets/home/menu1.png

4.67 KB | W: | H:

src/assets/home/menu1.png
src/assets/home/menu1.png
src/assets/home/menu1.png
src/assets/home/menu1.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/home/menu2.png

3.99 KB | W: | H:

src/assets/home/menu2.png

5.81 KB | W: | H:

src/assets/home/menu2.png
src/assets/home/menu2.png
src/assets/home/menu2.png
src/assets/home/menu2.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/home/menu3.png

4.72 KB | W: | H:

src/assets/home/menu3.png

4.6 KB | W: | H:

src/assets/home/menu3.png
src/assets/home/menu3.png
src/assets/home/menu3.png
src/assets/home/menu3.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/home/menu4.png

4.32 KB | W: | H:

src/assets/home/menu4.png

4.1 KB | W: | H:

src/assets/home/menu4.png
src/assets/home/menu4.png
src/assets/home/menu4.png
src/assets/home/menu4.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
/* 滚动条 */ /* 滚动条 */
::-webkit-scrollbar-track-piece { ::-webkit-scrollbar-track-piece {
background-color:#ededed; background-color:#fff;
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
...@@ -122,11 +122,6 @@ ...@@ -122,11 +122,6 @@
color: #fff !important; color: #fff !important;
} }
.ant-menu-horizontal .ant-menu-submenu-title .anticon {
margin-right: 0 !important;
font-size: 18px !important;
}
.ant-layout-sider .ant-menu-item:after { .ant-layout-sider .ant-menu-item:after {
border: 0 !important; border: 0 !important;
} }
......
...@@ -2,6 +2,7 @@ import React, { useState, Fragment } from "react"; ...@@ -2,6 +2,7 @@ import React, { useState, Fragment } from "react";
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import { Layout, Menu, Icon, message, Avatar } from 'antd'; import { Layout, Menu, Icon, message, Avatar } from 'antd';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import classnames from 'classnames';
import { ContextPath, Open } from '../util'; import { ContextPath, Open } from '../util';
...@@ -11,12 +12,14 @@ import './index.less'; ...@@ -11,12 +12,14 @@ import './index.less';
import { dispatchLatest } from "../model"; import { dispatchLatest } from "../model";
import logo from '../assets/logo.png'; import logo from '../assets/logo.png';
import logoHome from '../assets/logo_home.png';
const { Header, Sider, Content } = Layout; const { Header, Sider, Content } = Layout;
const { SubMenu } = Menu; const { SubMenu } = Menu;
const _Logout = ({session, location}) => session ? const _Logout = ({session, isHome, location}) => session ?
<Menu className={"ml-auto layout-menu"} mode="horizontal" theme="light"
<Menu className={ classnames('logout-menu', isHome?'':'ml-auto') } mode="horizontal" theme="light"
onClick={null}> onClick={null}>
<SubMenu <SubMenu
title={ title={
...@@ -111,22 +114,22 @@ export const HomeLayout = function ({ content, location }) { ...@@ -111,22 +114,22 @@ export const HomeLayout = function ({ content, location }) {
const subMenus = GetSubMenu(routes); const subMenus = GetSubMenu(routes);
return <Layout style={{ minHeight: '100vh' }}> return <Layout style={{ minHeight: '100vh' }}>
<Header style={{}} className={'bg-primary d-flex home-header'}> <Header style={{}} className={'bg-white d-flex home-header'}>
<div className="mr-3"> <div className="mr-3">
<img src={logo} <img src={logoHome}
alt="" style={{ maxHeight: '2rem' }} /> alt="" style={{ maxHeight: '2rem' }} />
</div> </div>
<Menu <Menu
mode="horizontal" theme={'dark'} mode="horizontal"
selectedKeys={[location.pathname]} selectedKeys={[location.pathname]}
style={{ lineHeight: '64px', width: '500px'}}> style={{ lineHeight: '64px'}}>
{subMenus} {subMenus}
</Menu> </Menu>
<Logout /> <Logout isHome={true} />
</Header> </Header>
<Layout style={{ backgroundColor: '#1f2531' }}> <Layout style={{ backgroundColor: '#eee' }}>
{content} {content}
</Layout> </Layout>
......
...@@ -26,13 +26,41 @@ ...@@ -26,13 +26,41 @@
} }
} }
.layout-menu { .layout-menu, .logout-menu {
i, span { i, span {
color: #fff; color: #fff;
} }
} }
} }
.home-header {
justify-content: space-between ;
&.ant-layout-header {
padding: 0 60px;
}
.layout-menu, .logout-menu {
i, span {
color: #000;
}
&:hover {
i, span {
color: #249aec;
}
}
}
.logout-menu {
.anticon-user {
margin-right: 0 !important;
font-size: 18px !important;
}
}
}
.manage-sider-logo { .manage-sider-logo {
display: flex; display: flex;
align-items: center; align-items: center;
......
@import '~antd/es/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.home-container { .home-container {
.home-search { .home-search {
width: 1920px; width: 100%;
height: 700px; height: calc(100vh - 64px - 143px);
background: url('../../assets/home/1.png');
.ant-input-lg { .ant-input-lg {
height: 50px; height: 40px;
line-height: 50px; line-height: 40px;
} }
.ant-btn-lg { .ant-btn-lg {
height: 50px; height: 40px;
font-size: 30px; font-size: 20px;
background-color: #f4c660;
border-color: #f4c660;
} }
} }
...@@ -22,23 +25,30 @@ ...@@ -22,23 +25,30 @@
height: 100%; height: 100%;
} }
p {
margin-bottom: 1rem;
}
.home-menu { .home-menu {
background-color: #fff;
font-size: 20px;
color: #249aec;
img { img {
width: 4rem; width: 43px;
height: 4rem; height: 43px;
transition: all 0.1s linear;
&:hover {
transform: scale(1.1, 1.1);
}
} }
span, a { span, a {
line-height: 4rem; line-height: 40px;
color: #249aec;
} }
&:hover {
background-color: #f4c660;
span, a {
color: #fff;
}
}
} }
.home-grid-outter { .home-grid-outter {
...@@ -53,50 +63,4 @@ ...@@ -53,50 +63,4 @@
} }
} }
} }
@media (max-width: @screen-sm-max) {
.comet {
display: none;
}
}
@media (max-width: 1366px) {
.home-search {
background-position-x: -450px;
background-position-y: -100px;
height: 600px;
.comet{
left: -450px;
top: -100px;
}
}
.home-grid-outter {
height: 950px;
.home-grid {
transform: scale(0.7);
transform-origin: top left;
}
}
}
@media (min-width: @screen-xxl-min) {
.home-search {
background-position-x: 0px;
background-position-y: 0px;
height: 700px;
}
.comet{
left: 0px;
top: 0px;
}
.home-grid-outter {
height: 1350px;
.home-grid {
left: -100px;
transform: scale(1);
}
}
}
} }
...@@ -13,7 +13,7 @@ export default class Metadata extends Component { ...@@ -13,7 +13,7 @@ export default class Metadata extends Component {
<iframe <iframe
title="元数据" title="元数据"
src="/center-home/meta" src="/center-home/meta"
style={{ width: '100%', height: '741px', border: 0 }} style={{ width: '100%', height: 'calc(100vh - 168px - 48px - 5px)', border: 0 }}
/> />
</Card> </Card>
</PageHeaderWrapper> </PageHeaderWrapper>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment