Skip to content

Commit 72c64ee

Browse files
authored
Fixes #9 - adds Material inspired toolbar (#10)
1 parent cc917d6 commit 72c64ee

File tree

1 file changed

+40
-9
lines changed

1 file changed

+40
-9
lines changed

template/src/App.vue

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
<template>
22
<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>
914
</div>
1015
</template>
1116

@@ -23,12 +28,38 @@ export default {
2328
</script>
2429

2530
<style>
31+
body {
32+
margin: 0;
33+
}
34+
2635
#app {
2736
font-family: 'Avenir', Helvetica, Arial, sans-serif;
2837
-webkit-font-smoothing: antialiased;
2938
-moz-osx-font-smoothing: grayscale;
30-
text-align: center;
3139
color: #2c3e50;
32-
margin-top: 60px;
3340
}
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>

0 commit comments

Comments
 (0)