-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.vue
107 lines (90 loc) · 1.4 KB
/
App.vue
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<template>
<div id="app">
<TheHeader />
<transition mode="out-in">
<main id="main">
<router-view />
</main>
</transition>
<TheFooter />
</div>
</template>
<script>
import TheHeader from '@/components/TheHeader.vue';
import TheFooter from '@/components/TheFooter.vue';
export default {
components: {
TheHeader, TheFooter,
},
};
</script>
<style>
* {
box-sizing: border-box;
}
body,
ul,
li,
h1,
h2,
p {
padding: 0px;
margin: 0px;
}
ul {
list-style: none;
}
body {
font-family: "Avenir", Helvetica, Arial, sans-serif;
color: #345;
background: url("./assets/pattern.svg") repeat top;
}
a {
color: #345;
text-decoration: none;
}
img {
max-width: 100%;
display: block;
}
.btn {
display: block;
padding: 10px 30px;
background: #87f;
border-radius: 4px;
color: #fff;
text-align: center;
font-size: 1rem;
box-shadow: 0 4px 8px rgba(30, 60, 90, 0.2);
transition: all 0.3s;
border: none;
font-family: "Avenir", Helvetica, Arial, sans-serif;
cursor: pointer;
}
.btn:hover {
background: #65d;
transform: scale(1.1);
}
#app {
display: flex;
min-height: 100vh;
flex-direction: column;
}
#main {
flex: 1;
}
.v-enter,
.v-leave-to {
opacity: 0;
}
.v-enter {
transform: translate3d(0, -20px, 0);
}
.v-leave-to {
transform: translate3d(0, 20px, 0);
}
.v-enter-active,
.v-leave-active {
transition: all 0.3s;
}
</style>