Skip to content

Commit 41cb599

Browse files
committed
remove dir
1 parent 410166a commit 41cb599

File tree

8 files changed

+357
-377
lines changed

8 files changed

+357
-377
lines changed

layouts/default.vue

Lines changed: 65 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,90 @@
11
<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>
59
</template>
610
<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+
};
835
</script>
936
<style>
37+
.main {
38+
min-height: 100vh;
39+
}
40+
.main-content {
41+
flex: 1;
42+
}
1043
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;
2053
}
2154
2255
*,
2356
*:before,
2457
*:after {
25-
box-sizing: border-box;
26-
margin: 0;
58+
box-sizing: border-box;
59+
margin: 0;
2760
}
2861
2962
.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;
3669
}
3770
3871
.button--green:hover {
39-
color: #fff;
40-
background-color: #3b8070;
72+
color: #fff;
73+
background-color: #3b8070;
4174
}
4275
4376
.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;
5184
}
5285
5386
.button--grey:hover {
54-
color: #fff;
55-
background-color: #35495e;
87+
color: #fff;
88+
background-color: #35495e;
5689
}
5790
</style>

0 commit comments

Comments
 (0)