File tree 5 files changed +16
-25
lines changed
5 files changed +16
-25
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,6 @@ a:hover {
19
19
text-decoration : none;
20
20
}
21
21
22
- /* .card {
23
-
24
- } */
22
+ . post-details {
23
+ width : 80 % ;
24
+ }
Original file line number Diff line number Diff line change 3
3
<div class =" col-12 col-md-8 col-xl-6 mt-3" >
4
4
{{> posts }}
5
5
</div >
6
-
7
6
</div >
8
7
</div >
9
8
Original file line number Diff line number Diff line change 18
18
<body >
19
19
{{> main-menu }}
20
20
21
- <div class =" container-fluid" >
22
- <div class =" row justify-content-center" >
21
+
23
22
{{{ body }}}
24
- </div >
25
- </div >
23
+
26
24
27
25
{{ #if logged_in }}
28
26
<script src =" /js/logout.js" ></script >
Original file line number Diff line number Diff line change 1
1
{{ #each posts }}
2
-
3
2
<a href =" /post/{{ id }} " class =" post-link" >
4
- <div class =" card" >
3
+ <div class =" card mt-3 " >
5
4
<h5 class =" card-header" >
6
5
{{ title }}
7
6
</h5 >
Original file line number Diff line number Diff line change
1
+ <div class =" row justify-content-center mt-3" >
1
2
2
-
3
- <section class =" card" >
3
+ <section class =" card post-details" >
4
4
<a href =" /post/{{ post.id }} " >
5
- <div class =" card-header " >
6
-
7
- {{ #if logged_in }}
8
- <p style =" display: inline;" >Posted By:</p >
9
- <h5 style =" display: inline;" >
5
+ <div class =" card-header" >
10
6
11
- {{ username }}
12
- </h5 >
7
+ {{ #if logged_in }}
8
+ <p style =" display: inline;" >Posted By:</p >
9
+ <h5 style =" display: inline;" >{{ username }} </h5 >
10
+ {{ /if }}
13
11
</div >
14
- {{ /if }}
12
+
15
13
<div class =" card-body" >
16
14
<h5 class =" card-title" >{{ post.title }} </h5 >
17
-
18
15
<p class =" card-text" > {{ post.text }} </p >
19
- <p class =" card-text date" >
20
- {{ createdAt }}
21
-
22
- </p >
16
+ <p class =" card-text date" >{{ createdAt }} </p >
23
17
</div >
24
18
</a >
25
19
</section >
26
20
21
+ </div >
You can’t perform that action at this time.
0 commit comments