Commit 2ebca81b by xinla

首页svg背景暗黑

1 parent dcec1c10
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="218" height="198" viewBox="0 0 218 198"><defs><linearGradient x1="0.5" y1="0" x2="0.5" y2="1" id="master_svg0_1_0523"><stop offset="49.817198514938354%" stop-color="#FFFFFF" stop-opacity="1"/><stop offset="100%" stop-color="#FFFFFF" stop-opacity="0.20000000298023224"/></linearGradient></defs><g style="mix-blend-mode:passthrough"><path d="M178.763,38L202,38C210.837,38,218,45.1634,218,54L218,182C218,190.837,210.837,198,202,198L16,198C7.16344,198,0,190.837,0,182L0,54C0,45.1634,7.16344,38,16,38L39.2366,38C49.636,38,58.4828,30.8652,64.6375,22.4827C74.6473,8.84961,90.7902,0,109,0C127.21,0,143.353,8.84961,153.363,22.4827C159.517,30.8652,168.364,38,178.763,38" fill-rule="evenodd" fill="url(#master_svg0_1_0523)" fill-opacity="1"/></g></svg>
\ No newline at end of file \ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="218"
height="198" viewBox="0 0 218 198">
<defs>
<linearGradient x1="0.5" y1="0" x2="0.5" y2="1" id="master_svg0_1_0523">
<stop offset="49.817198514938354%" stop-color="currentColor" stop-opacity="1" />
<stop offset="100%" stop-color="currentColor" stop-opacity="0.20000000298023224" />
</linearGradient>
</defs>
<g style="mix-blend-mode:passthrough">
<path
d="M178.763,38L202,38C210.837,38,218,45.1634,218,54L218,182C218,190.837,210.837,198,202,198L16,198C7.16344,198,0,190.837,0,182L0,54C0,45.1634,7.16344,38,16,38L39.2366,38C49.636,38,58.4828,30.8652,64.6375,22.4827C74.6473,8.84961,90.7902,0,109,0C127.21,0,143.353,8.84961,153.363,22.4827C159.517,30.8652,168.364,38,178.763,38"
fill-rule="evenodd" fill="url(#master_svg0_1_0523)" fill-opacity="1" />
</g>
</svg>
\ No newline at end of file \ No newline at end of file
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
<div class="index-l"> <div class="index-l">
<div class="flex"> <div class="flex">
<div class="userinfo"> <div class="userinfo">
<div v-html="bgSvg" class="bgSvg"></div>
<div class="portrait"> <div class="portrait">
<img class="portrait-img" :src="$store.user.avatar" alt="" v-if="$store.user.avatar" /> <img class="portrait-img" :src="$store.user.avatar" alt="" v-if="$store.user.avatar" />
<!-- <svg-icon icon="user" class="code-user" v-else></svg-icon> --> <!-- <svg-icon icon="user" class="code-user" v-else></svg-icon> -->
</div> </div>
<div class="wel toe"> <div class="wel toe">
<span>{{ greetings }},</span> <span>{{ greetings }},{{ $store.user.name }}</span>
<span>{{ $store.user.name }}</span>
</div> </div>
<div class="role toe g-bg-lg">{{ roleGroup || '管理员' }}</div> <div class="role toe g-bg-lg">{{ roleGroup || '管理员' }}</div>
</div> </div>
...@@ -171,6 +171,7 @@ import { getUserProfile } from '@/api/system/user' ...@@ -171,6 +171,7 @@ import { getUserProfile } from '@/api/system/user'
import * as api from '@/api/index' import * as api from '@/api/index'
// import { getCustomerServiceQrUrl } from '@/api/login' // import { getCustomerServiceQrUrl } from '@/api/login'
import { CountTo } from 'vue3-count-to' import { CountTo } from 'vue3-count-to'
import bgSvg from './asstes/bg.svg?raw'
export default { export default {
name: 'Index', name: 'Index',
components: { components: {
...@@ -181,6 +182,7 @@ export default { ...@@ -181,6 +182,7 @@ export default {
data() { data() {
return { return {
api, api,
bgSvg,
table: { table: {
currentEdition: '-', // 当前版本 currentEdition: '-', // 当前版本
userNumbers: 0, // 使用人数 userNumbers: 0, // 使用人数
...@@ -417,11 +419,15 @@ export default { ...@@ -417,11 +419,15 @@ export default {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
width: 218px; width: 218px;
background: url('./asstes/bg.svg') no-repeat;
border-radius: var(--border-radius-big); border-radius: var(--border-radius-big);
padding: 0px 20px 20px; padding: 0px 20px 20px;
margin-top: -38px; margin-top: -38px;
.bgSvg {
color: var(--bg-white);
position: absolute;
}
.portrait { .portrait {
position: relative;
padding: 10px; padding: 10px;
.portrait-img { .portrait-img {
display: block; display: block;
...@@ -433,11 +439,13 @@ export default { ...@@ -433,11 +439,13 @@ export default {
} }
} }
.wel { .wel {
position: relative;
font-size: 22px; font-size: 22px;
font-weight: bold; font-weight: bold;
margin: 2px 0 16px; margin: 2px 0 16px;
} }
.role { .role {
position: relative;
color: white; color: white;
padding: 6px 8px; padding: 6px 8px;
font-size: 12px; font-size: 12px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!