File tree Expand file tree Collapse file tree 1 file changed +40
-9
lines changed Expand file tree Collapse file tree 1 file changed +40
-9
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div id =" app" >
3
- <img src =" ./assets/logo.png" alt =" Vue PWA" >
4
- {{#router}}
5
- <router-view ></router-view >
6
- {{else}}
7
- <hello ></hello >
8
- {{/router}}
3
+ <header >
4
+ <span >Vue.js PWA</span >
5
+ </header >
6
+ <main >
7
+ <img src =" ./assets/logo.png" alt =" Vue.js PWA" >
8
+ {{#router}}
9
+ <router-view ></router-view >
10
+ {{else}}
11
+ <hello ></hello >
12
+ {{/router}}
13
+ </main >
9
14
</div >
10
15
</template >
11
16
@@ -23,12 +28,38 @@ export default {
23
28
</script >
24
29
25
30
<style >
31
+ body {
32
+ margin : 0 ;
33
+ }
34
+
26
35
#app {
27
36
font-family : ' Avenir' , Helvetica , Arial , sans-serif ;
28
37
-webkit-font-smoothing : antialiased ;
29
38
-moz-osx-font-smoothing : grayscale ;
30
- text-align : center ;
31
39
color : #2c3e50 ;
32
- margin-top : 60px ;
33
40
}
34
- </style >
41
+
42
+ main {
43
+ text-align : center ;
44
+ margin-top : 40px ;
45
+ }
46
+
47
+ header {
48
+ margin : 0 ;
49
+ height : 56px ;
50
+ padding : 0 16px 0 24px ;
51
+ background-color : #4fc08d ;
52
+ color : #ffffff ;
53
+ }
54
+
55
+ header span {
56
+ display : block ;
57
+ position : relative ;
58
+ font-size : 20px ;
59
+ line-height : 1 ;
60
+ letter-spacing : .02em ;
61
+ font-weight : 400 ;
62
+ box-sizing : border-box ;
63
+ padding-top : 16px ;
64
+ }
65
+ </style >
You can’t perform that action at this time.
0 commit comments