We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07befe1 commit 7d9abafCopy full SHA for 7d9abaf
src/assets/logo.png
8.06 KB
src/views/index.vue
@@ -1,5 +1,6 @@
1
<template>
2
<div class="container">
3
+ <div class="logo"></div>
4
<van-cell-group title="Do more difficult things" inset>
5
<van-cell center title="🌗 暗黑模式">
6
<template #right-icon>
@@ -43,9 +44,18 @@ watch(checked,(val) => {
43
44
.container {
45
width: 100vw;
46
height: 100vh;
- padding-top: 80px;
47
+ padding-top: 30px;
48
position: relative;
49
50
+ .logo {
51
+ width: 150px;
52
+ height: 150px;
53
+ background-image: url('@/assets/logo.png');
54
+ background-repeat: no-repeat;
55
+ background-size: 100% 100%;
56
+ background-position: center;
57
+ }
58
+
59
.custom-title {
60
margin-right: 4px;
61
vertical-align: middle;
0 commit comments