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