|
1 | 1 | <template>
|
2 |
| - <div> |
3 |
| - <nuxt /> |
4 |
| - </div> |
| 2 | + <div class="bg-light d-flex flex-column main" id="app"> |
| 3 | + <app-header></app-header> |
| 4 | + <div class="container pt-4 main-content"> |
| 5 | + <nuxt /> |
| 6 | + </div> |
| 7 | + <app-foot></app-foot> |
| 8 | + </div> |
5 | 9 | </template>
|
6 | 10 | <script>
|
7 |
| -export default { name: "layout" }; |
| 11 | +import header from "~/components/app-header.vue"; |
| 12 | +import footer from "~/components/app-footer.vue"; |
| 13 | +export default { |
| 14 | + name: "layout", |
| 15 | + components: { |
| 16 | + "app-header": header, |
| 17 | + "app-foot": footer |
| 18 | + }, |
| 19 | + mounted() { |
| 20 | + this.$nextTick(() => { |
| 21 | + this.$nuxt.$loading.start(); |
| 22 | + setTimeout(() => this.$nuxt.$loading.finish(), 500); |
| 23 | + }); |
| 24 | + // init sentry |
| 25 | + Sentry.init({ |
| 26 | + dsn: "https://[email protected]/1329324" |
| 27 | + }); |
| 28 | + // init baidu seo |
| 29 | + var bp = document.createElement("script"); |
| 30 | + bp.src = "https://zz.bdstatic.com/linksubmit/push.js"; |
| 31 | + var s = document.getElementsByTagName("script")[0]; |
| 32 | + s.parentNode.insertBefore(bp, s); |
| 33 | + } |
| 34 | + }; |
8 | 35 | </script>
|
9 | 36 | <style>
|
| 37 | +.main { |
| 38 | + min-height: 100vh; |
| 39 | +} |
| 40 | +.main-content { |
| 41 | + flex: 1; |
| 42 | +} |
10 | 43 | html {
|
11 |
| - font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", |
12 |
| - Roboto, "Helvetica Neue", Arial, sans-serif; |
13 |
| - font-size: 16px; |
14 |
| - word-spacing: 1px; |
15 |
| - -ms-text-size-adjust: 100%; |
16 |
| - -webkit-text-size-adjust: 100%; |
17 |
| - -moz-osx-font-smoothing: grayscale; |
18 |
| - -webkit-font-smoothing: antialiased; |
19 |
| - box-sizing: border-box; |
| 44 | + font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, |
| 45 | + "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; |
| 46 | + font-size: 16px; |
| 47 | + word-spacing: 1px; |
| 48 | + -ms-text-size-adjust: 100%; |
| 49 | + -webkit-text-size-adjust: 100%; |
| 50 | + -moz-osx-font-smoothing: grayscale; |
| 51 | + -webkit-font-smoothing: antialiased; |
| 52 | + box-sizing: border-box; |
20 | 53 | }
|
21 | 54 |
|
22 | 55 | *,
|
23 | 56 | *:before,
|
24 | 57 | *:after {
|
25 |
| - box-sizing: border-box; |
26 |
| - margin: 0; |
| 58 | + box-sizing: border-box; |
| 59 | + margin: 0; |
27 | 60 | }
|
28 | 61 |
|
29 | 62 | .button--green {
|
30 |
| - display: inline-block; |
31 |
| - border-radius: 4px; |
32 |
| - border: 1px solid #3b8070; |
33 |
| - color: #3b8070; |
34 |
| - text-decoration: none; |
35 |
| - padding: 10px 30px; |
| 63 | + display: inline-block; |
| 64 | + border-radius: 4px; |
| 65 | + border: 1px solid #3b8070; |
| 66 | + color: #3b8070; |
| 67 | + text-decoration: none; |
| 68 | + padding: 10px 30px; |
36 | 69 | }
|
37 | 70 |
|
38 | 71 | .button--green:hover {
|
39 |
| - color: #fff; |
40 |
| - background-color: #3b8070; |
| 72 | + color: #fff; |
| 73 | + background-color: #3b8070; |
41 | 74 | }
|
42 | 75 |
|
43 | 76 | .button--grey {
|
44 |
| - display: inline-block; |
45 |
| - border-radius: 4px; |
46 |
| - border: 1px solid #35495e; |
47 |
| - color: #35495e; |
48 |
| - text-decoration: none; |
49 |
| - padding: 10px 30px; |
50 |
| - margin-left: 15px; |
| 77 | + display: inline-block; |
| 78 | + border-radius: 4px; |
| 79 | + border: 1px solid #35495e; |
| 80 | + color: #35495e; |
| 81 | + text-decoration: none; |
| 82 | + padding: 10px 30px; |
| 83 | + margin-left: 15px; |
51 | 84 | }
|
52 | 85 |
|
53 | 86 | .button--grey:hover {
|
54 |
| - color: #fff; |
55 |
| - background-color: #35495e; |
| 87 | + color: #fff; |
| 88 | + background-color: #35495e; |
56 | 89 | }
|
57 | 90 | </style>
|
0 commit comments