Commit 2057de14 by xinla

暗黑 logo 调整判断等

1 parent a5d3659d

77.9 KB | W: | H:

146 KB | W: | H:

vue3-lw-pc/public/static/LOGO_TEXT_DARK.png
vue3-lw-pc/public/static/LOGO_TEXT_DARK.png
vue3-lw-pc/public/static/LOGO_TEXT_DARK.png
vue3-lw-pc/public/static/LOGO_TEXT_DARK.png
  • 2-up
  • Swipe
  • Onion skin

3.13 KB | W: | H:

123 KB | W: | H:

vue3-lw-pc/public/static/LOGO_TEXT_LIGHT.png
vue3-lw-pc/public/static/LOGO_TEXT_LIGHT.png
vue3-lw-pc/public/static/LOGO_TEXT_LIGHT.png
vue3-lw-pc/public/static/LOGO_TEXT_LIGHT.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -37,6 +37,9 @@
--card-margin: 16px; /* 卡片间距 */
--top-nav-heght: 64px; /* 顶部导航条高度 */
/* 通用字体白色 */
--font-white: #fff;
/* 通用字体黑灰色阶 */
--font-black: #1d2129;
--font-black-2: hsl(0, 0%, 20%); /* #333*/
......@@ -48,9 +51,7 @@
--font-black-8: hsl(0, 0%, 80%); /* #ccc #ddd*/
--font-black-9: hsl(0, 0%, 90%); /* #e6e6e6 #eee*/
--font-white: #fff; /* 通用字体白色 */
/* 背景色,暗黑模式下为黑色 */
/* 通用背景白色,暗黑模式下为黑色 */
--bg-white: #fff;
/* 通用背景黑灰色阶 */
......@@ -74,19 +75,21 @@
/* 暗黑模式 */
.dark {
--font-white: #f2f2f2;
--font-black: var(--font-white);
--font-black-2: var(--font-black-8);
--font-black-3: var(--font-black-7);
--font-black-4: var(--font-black-6);
--bg-black-6: var(--bg-black-7);
--bg-black-7: var(--bg-black-6);
--bg-black-8: var(--bg-black-5);
--bg-white: #141414;
--bg-black-6: hsl(0, 0%, 70%);
--bg-black-7: hsl(0, 0%, 60%);
--bg-black-8: hsl(0, 0%, 50%);
--bg-black-9: var(--bg-black-4);
--bg-black-10: var(--bg-black-3);
--bg-black-11: var(--bg-black-2);
--bg-white: #141414;
}
/* 项目定制原子类 */
......
......@@ -2,7 +2,7 @@
<transition name="sidebarLogoFade">
<div class="logo-container" :class="{ collapse: collapse }">
<router-link key="collapse" class="sidebar-logo-link" to="/">
<img v-if="logo" :src="logo" class="sidebar-logo" />
<img :src="$store.app.isDark ? lwConfig.LOGO_TEXT_LIGHT : lwConfig.LOGO_TEXT_DARK" class="sidebar-logo" />
</router-link>
<hamburger />
</div>
......@@ -23,7 +23,6 @@ export default {
data() {
return {
title: process.env.VUE_APP_TITLE,
logo: this.lwConfig.LOGO_TEXT_DARK,
}
},
}
......@@ -48,9 +47,9 @@ export default {
& .sidebar-logo-link {
& .sidebar-logo {
max-height: 44px;
max-width: 170px;
max-width: 160px;
vertical-align: middle;
margin-right: 12px;
margin: 0 12px 0 10px;
}
& .sidebar-title {
......
......@@ -11,13 +11,10 @@ import router from './router'
const app = createApp(App)
import ElementPlus, { ElNotification } from 'element-plus'
import 'element-plus/theme-chalk/dark/css-vars.css'
import 'element-plus/dist/index.css'
app.use(ElementPlus, {})
import 'element-plus/theme-chalk/dark/css-vars.css'
import { useDark, useToggle } from '@vueuse/core'
useDark()
import '@/styles/index.scss'
// svg图标
......
import Cookies from 'js-cookie'
import { useDark, useToggle } from '@vueuse/core'
const state = {
sidebar: {
......@@ -8,6 +9,7 @@ const state = {
device: 'desktop',
size: Cookies.get('size') || 'medium',
busininessDesc: undefined,
isDark: useDark(),
}
const actions = {
......
<template>
<div class="login cc fcbw">
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
<img class="logo" :src="lwConfig.LOGO_TEXT_DARK" alt="" />
<img class="logo" :src="$store.app.isDark ? lwConfig.LOGO_TEXT_LIGHT : lwConfig.LOGO_TEXT_DARK" alt="" />
<div class="login-title">欢迎来到{{ lwConfig.SYSTEM_NAME }}</div>
<div class="login-text">登录你的账户</div>
<template v-if="loginType === 'account'">
......@@ -193,7 +193,7 @@ export default {
border-radius: 56px;
.logo {
position: absolute;
height: 58px;
height: 28px;
left: 38px;
top: 38px;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!