style: 登录页、主页logo优化
This commit is contained in:
parent
d79b39b7eb
commit
78ce85ba57
BIN
backend/mini.db-shm
Normal file
BIN
backend/mini.db-shm
Normal file
Binary file not shown.
BIN
backend/mini.db-wal
Normal file
BIN
backend/mini.db-wal
Normal file
Binary file not shown.
@ -15,7 +15,10 @@ const menuClick = (menu) => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="sider-menu">
|
<div class="sider-menu">
|
||||||
<div class="logo"></div>
|
<div class="logo">
|
||||||
|
<img src="@/assets/img/fastapi.svg" />
|
||||||
|
<h1>Mini RBAC</h1>
|
||||||
|
</div>
|
||||||
<a-menu theme="dark" mode="inline" v-model:selectedKeys="store.selectKey">
|
<a-menu theme="dark" mode="inline" v-model:selectedKeys="store.selectKey">
|
||||||
<template v-for="menu in store.userMenus" :key="menu.id">
|
<template v-for="menu in store.userMenus" :key="menu.id">
|
||||||
<!-- 0 目录 顶层菜单 -->
|
<!-- 0 目录 顶层菜单 -->
|
||||||
@ -43,10 +46,27 @@ const menuClick = (menu) => {
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.logo {
|
.logo {
|
||||||
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 16px 16px;
|
||||||
|
line-height: 32px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo img {
|
||||||
|
display: inline-block;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
background: rgba(255, 255, 255, 0.3);
|
vertical-align: middle;
|
||||||
margin: 16px;
|
transition: height 0.2s;
|
||||||
background-size: 100% 100%;
|
}
|
||||||
|
|
||||||
|
.logo h1 {
|
||||||
|
margin: 0 0 0 12px;
|
||||||
|
overflow: hidden;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 18px;
|
||||||
|
line-height: 32px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -84,20 +84,21 @@ const submitForm = (formEl) => {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.login {
|
.login {
|
||||||
display: flex;
|
display: flex;
|
||||||
background-color: #2d3a4b;
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
background-image: url("@/assets/img/background.svg");
|
||||||
}
|
}
|
||||||
.continer {
|
.continer {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
height: 300px;
|
height: 300px;
|
||||||
}
|
}
|
||||||
.continer h1 {
|
.continer h1 {
|
||||||
color: #fff;
|
/* color: #fff; */
|
||||||
|
margin-bottom: 30px;
|
||||||
}
|
}
|
||||||
.continer .ant-btn {
|
.continer .ant-btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
Loading…
Reference in New Issue
Block a user