This repository was archived by the owner on Apr 1, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +34
-34
lines changed Expand file tree Collapse file tree 2 files changed +34
-34
lines changed Original file line number Diff line number Diff line change 44 <!-- This link is an n-link because it links to another Nuxt route -->
55 <n-link class =" logo" to =" /" ><logo /></n-link >
66 </div >
7- <nuxt />
7+ <nuxt class = " content " />
88 <div class =" footer" >
9- <div class =" footer-inner" >
10- <p >
11- <!-- This link is not an n-link because it is external -->
12- <a target =" _blank"
13- rel =" noopener noreferrer"
14- href =" https://github.com/tylermercer/nuxt-netlifycms-boilerplate" >
15- View this project on Github
16- </a >
17- </p >
18- <p >
19- <!-- This is not an n-link because the NetlifyCMS admin page is static.
20- If you make it an n-link, you'll get a "Page could not be found" when
21- you click it. -->
22- <a href =" /admin" >
23- NetlifyCMS Admin Login
24- </a >
25- </p >
26- </div >
9+ <p >
10+ <!-- This link is not an n-link because it is external -->
11+ <a target =" _blank"
12+ rel =" noopener noreferrer"
13+ href =" https://github.com/tylermercer/nuxt-netlifycms-boilerplate" >
14+ View this project on Github
15+ </a >
16+ </p >
17+ <p >
18+ <!-- This is not an n-link because the NetlifyCMS admin page is static.
19+ If you make it an n-link, you'll get a "Page could not be found" when
20+ you click it. -->
21+ <a href =" /admin" >
22+ NetlifyCMS Admin Login
23+ </a >
24+ </p >
2725 </div >
2826 </div >
2927</template >
@@ -44,30 +42,31 @@ export default {
4442 margin-left : auto ;
4543 margin-right : auto ;
4644 height : 100vh ;
47- padding-top : 40px ;
45+ padding : 40px 20 px 10 px 20 px ;
4846}
4947
50- .header , .footer {
48+ .header {
5149 display : flex ;
5250 flex-direction : row ;
5351 align-items : center ;
5452 justify-content : center ;
55- margin-bottom : 40px ;
5653 width : 100% ;
5754}
58-
59- .footer {
55+ .content {
6056 margin-top : 40px ;
57+ margin-bottom : 40px ;
6158}
6259
63- .footer-inner {
60+ .footer {
6461 background-color : whitesmoke ;
6562 width : 100% ;
66- padding : 20px ;
6763 display : flex ;
6864 flex-direction : row ;
6965 justify-content : space-between ;
7066}
67+ .footer > * {
68+ padding : 20px ;
69+ }
7170
7271.logo {
7372 display : block ;
Original file line number Diff line number Diff line change 11<template lang="html">
22 <div class =" post" >
3- <h1 >{{title}}</h1>
3+ <h1 class = " title " >{{title}}</h1>
44 <p class =" date" >Posted by {{author}} on {{date}}</p>
5- <div class =" post-content " v-html =" $md.render(body)" />
6- <p class =" back-link " ><n -link to = " / " >Back</n-link ></p>
5+ <div class =" body " v-html =" $md.render(body)" />
6+ <p class =" back" ><a class = " back -link" @click = " $router.back() " >Back</a ></p>
77 </div>
88</template >
99
@@ -30,18 +30,19 @@ export default {
3030 </script >
3131
3232<style lang="css" scoped>
33- .back-link , .date , .post-content {
33+ .back , .date , .body {
3434 padding-top : 10px ;
3535}
36+ .back-link {
37+ text-decoration : underline ;
38+ color : #3b8070 ;
39+ cursor : pointer ;
40+ }
3641
3742.date {
3843 color : darkgray ;
3944}
4045.post {
41- max-width : 600px ;
42- margin-left : auto ;
43- margin-right : auto ;
44- margin-top : 20px ;
4546 background-color : whitesmoke ;
4647 padding : 20px ;
4748}
You can’t perform that action at this time.
0 commit comments