美化头部样式阴影

This commit is contained in:
linxd
2025-07-03 11:33:07 +08:00
parent 1642b5ad81
commit 92a92b17cf
2 changed files with 32 additions and 26 deletions

View File

@ -1,27 +1,31 @@
@import '../baseStyle.less';
.header {
position: relative;
z-index: 1;
display: flex;
align-items: center;
justify-content: space-between;
width: @width;
margin: 0 auto;
.logo {
height: 45px;
.header-container {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
.header {
position: relative;
z-index: 1;
display: flex;
align-items: center;
justify-content: space-between;
width: @width;
margin: 0 auto;
.logo {
height: 45px;
}
.header-menu {
display: flex;
flex: 1;
align-items: center;
justify-content: flex-end;
.ant-menu-horizontal {
line-height: 58px;
border: none;
}
}
.user {
margin-left: 15px;
}
}
}
.header-menu {
display: flex;
flex: 1;
align-items: center;
justify-content: flex-end;
.ant-menu-horizontal {
line-height: 58px;
border: none;
}
}
.user {
margin-left: 15px;
}

View File

@ -7,9 +7,11 @@ import './Header.less';
import HeaderMenu from './HeaderMenu';
const Header: React.FC = (props) => {
return (
<div className="header">
<img className='logo' src={LogoImg} alt="logo" />
<HeaderMenu />
<div className="header-container">
<div className="header">
<img className="logo" src={LogoImg} alt="logo" />
<HeaderMenu />
</div>
</div>
);
};