Skip to content

Commit 3bc6ee8

Browse files
committed
minor styles
1 parent f236591 commit 3bc6ee8

File tree

5 files changed

+16
-25
lines changed

5 files changed

+16
-25
lines changed

public/css/style.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ a:hover {
1919
text-decoration: none;
2020
}
2121

22-
/* .card {
23-
24-
} */
22+
.post-details {
23+
width: 80%;
24+
}

views/home.handlebars

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<div class="col-12 col-md-8 col-xl-6 mt-3">
44
{{>posts}}
55
</div>
6-
76
</div>
87
</div>
98

views/layouts/main.handlebars

+2-4
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@
1818
<body>
1919
{{>main-menu}}
2020

21-
<div class="container-fluid">
22-
<div class="row justify-content-center">
21+
2322
{{{body}}}
24-
</div>
25-
</div>
23+
2624

2725
{{#if logged_in}}
2826
<script src="/js/logout.js"></script>

views/partials/posts.handlebars

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{{#each posts}}
2-
32
<a href="/post/{{id}}" class="post-link">
4-
<div class="card">
3+
<div class="card mt-3">
54
<h5 class="card-header">
65
{{title}}
76
</h5>

views/post-details.handlebars

+10-15
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
1+
<div class="row justify-content-center mt-3">
12

2-
3-
<section class="card">
3+
<section class="card post-details">
44
<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">
106

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}}
1311
</div>
14-
{{/if}}
12+
1513
<div class="card-body">
1614
<h5 class="card-title">{{post.title}}</h5>
17-
1815
<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>
2317
</div>
2418
</a>
2519
</section>
2620

21+
</div>

0 commit comments

Comments
 (0)