Skip to content

Commit

Permalink
Merge pull request #90 from Siddhi-sahu/footer-enhancement
Browse files Browse the repository at this point in the history
fixed Footer
  • Loading branch information
sudo-dpkg authored Oct 29, 2024
2 parents 04afa12 + 386a7a1 commit 0cc70a8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,15 @@ img {

/* Footer */
.footer {
margin: 4rem;
/* margin: 4rem; */
text-align: center;
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: #a39f9f;
color: #000;

}


Expand Down
16 changes: 10 additions & 6 deletions views/admin/dashboard.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<div class="admin-title">
<h2>Posts</h2>
<a href="/add-post" class="button">+ Add New</a>
<div class="admin-content">

<div class="admin-title">
<h2>Posts</h2>
<a href="/add-post" class="button">+ Add New</a>
</div>

<ul class="admin-posts">
Expand All @@ -11,11 +13,13 @@
</a>
<div class="admin-post-controls">
<a href="/edit-post/<%= post._id %>" class="btn">Edit</a>
<form action="/delete-post/<%= post._id %>?_method=DELETE" method="POST">
<input type="submit" value="Delete" class="btn-delete btn">
</form>
</div>
</li>
<% }) %>
</ul>
<% }) %>
</ul>

</div>

0 comments on commit 0cc70a8

Please sign in to comment.