intro.vue
1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<template>
<div class="intro-container">
<div class="intro-box">
<div class="intro-title">BLOG</div>
<div class="intro-desc">
个人博客 – 个人博客
</div>
</div>
<img src="../../../images/cloud-left.png" class="cloud-left" />
<img src="../../../images/cloud-right.png" class="cloud-right" />
<img src="../../../images/grass-confetti.png" class="grass-confetti" />
</div>
</template>
<script>
export default {
name: "bookCover",
components: {},
props: {},
computed: {},
data() {
return {};
},
watch: {},
created() { },
mounted() { },
beforeDestroy() { },
methods: {},
};
</script>
<style lang="less" scoped>
.intro-container {
background: linear-gradient(to bottom, #c6dde4, #fefeff);
position: relative;
width: 100%;
overflow: hidden;
min-height: 240px;
.intro-box {
margin: 0;
position: absolute;
top: 50%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%);
text-align: center;
z-index: 99;
.intro-title {
color: @thinColor;
font-family: lato, sans-serif;
font-size: 3.5em;
letter-spacing: 10px;
margin-top: 0;
margin-bottom: 0;
text-shadow: rgb(198, 221, 228) -1px -1px 1px,
rgb(254, 254, 255) 1px 1px 1px;
margin-bottom: 20px;
}
.intro-desc {
color: @mainColor;
font-size: 1em;
font-weight: 400;
padding: 0.2em 0;
letter-spacing: 5px;
text-transform: capitalize;
margin-top: 0;
margin-bottom: 0;
text-shadow: rgb(198, 221, 228) -1px -1px 1px,
rgb(254, 254, 255) 1px 1px 1px;
}
}
img {
position: absolute;
bottom: 0;
object-fit: contain;
&.cloud-left {
top: 0;
left: 300px;
}
&.cloud-right {
top: 0;
right: 300px;
}
}
}
</style>