Skip to content

Commit 7d9abaf

Browse files
committed
style(logo): change logo file 💄
1 parent 07befe1 commit 7d9abaf

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/assets/logo.png

8.06 KB
Loading

src/views/index.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<template>
22
<div class="container">
3+
<div class="logo"></div>
34
<van-cell-group title="Do more difficult things" inset>
45
<van-cell center title="🌗 暗黑模式">
56
<template #right-icon>
@@ -43,9 +44,18 @@ watch(checked,(val) => {
4344
.container {
4445
width: 100vw;
4546
height: 100vh;
46-
padding-top: 80px;
47+
padding-top: 30px;
4748
position: relative;
4849
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+
4959
.custom-title {
5060
margin-right: 4px;
5161
vertical-align: middle;

0 commit comments

Comments
 (0)