-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathApp.vue
54 lines (47 loc) · 1.1 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
<template>
<div class="main">
<Header />
<Content />
<StarTip />
</div>
</template>
<script lang="ts">
import Header from './components/Header.vue'
import Content from './components/Content.vue'
import StarTip from './components/StarTip.vue'
import { useStoreProvide, useStoreInject } from './hooks/store'
export default {
name: 'App',
components: {
Header,
Content,
StarTip,
},
setup() {
useStoreProvide()
const { fetchCategories } = useStoreInject()
fetchCategories()
return {}
},
}
</script>
<style lang="less">
body {
background-color: #f9f9f9;
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@media screen and (orientation: portrait) and (hover: none) and (pointer: coarse) {
.main {
display: grid;
place-items: center;
}
// "Buy me a coffee" button
#bmc-wbtn {
width: 100px !important;
height: 100px !important;
border-radius: 50% !important;
}
}
</style>