| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- <template>
- <header class="header" role="banner">
- <el-row :gutter="10">
- <el-col :span="6">
- <div class="header-left">
- <a href="/" class="brand" aria-label="Home">
- <img src="/logo.png" alt="DDAC logo" class="brand-logo" width="34" height="34" />
- <h1 class="brand-title">DDAC</h1>
- </a>
- </div>
- </el-col>
- <el-col :span="12">
- <nav class="header-nav" role="navigation" aria-label="Main navigation">
- <div class="nav-item">首页</div>
- <div class="nav-item">产品</div>
- <div class="nav-item">行业解决方案</div>
- <div class="nav-item">文档中心</div>
- <div class="nav-item">了解我们</div>
- </nav>
- </el-col>
- <el-col :span="6">
- <div class="header-right">
- <div>登录</div>
- <div class="register">注册</div>
- </div>
- </el-col>
- </el-row>
- </header>
- </template>
- <script setup>
-
- </script>
- <style lang="scss">
- .header {
- box-sizing: border-box;
- padding: 22px 0;
- }
- .header-left {
- display: flex;
- align-items: center;
- justify-content: right;
- .brand {
- display: flex;
- align-items: center;
- text-decoration: none;
- .brand-logo {
- margin-right: 8px;
- }
- .brand-title {
- color: #FFF;
- font-family: Roboto;
- font-size: 30px;
- font-style: normal;
- font-weight: 700;
- line-height: 36px;
- }
- }
- }
- .header-nav {
- display: flex;
- justify-content: center;
- align-items: center;
- height: 100%;
- .nav-item {
- margin: 0 15px;
- cursor: pointer;
- color: #FFF;
- font-family: "Source Han Sans CN";
- font-size: 14px;
- font-style: normal;
- font-weight: 400;
- line-height: 14px;
- &:hover {
- // color: #000;
- }
- }
- }
- .header-right {
- display: flex;
- align-items: center;
- height: 100%;
- color: #FFF;
- div {
- margin-left: 20px;
- cursor: pointer;
- }
- .register {
- display: flex;
- width: 100px;
- height: 40px;
- justify-content: center;
- align-items: center;
- gap: 10px;
- border-radius: 10px;
- border: 1px solid #7D46FF;
- background: #030014;
- box-shadow: 0.5px 0.5px 18px 0 rgba(125, 70, 255, 0.45) inset;
- }
- }
- </style>
|