Skip to content

Commit

Permalink
Polity-Dance
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Tetarwal committed Aug 12, 2024
1 parent 6fdf769 commit 482122b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion views/profile.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.light-mode .articles{
background-color: transparent;
}
/* Navbar Styles */
.navbar {
display: flex;
Expand Down Expand Up @@ -210,7 +214,7 @@
<div class="articles grid-masonry max-w-screen-lg py-6 px-4">
<% if(user.articles.length != 0){ %>
<% user.articles.reverse().forEach(article => { %>
<a href="/articles/<%= user.username %>/<%= article.title %>" class="grid-item peacockk border border-zinc-700 p-4">
<a href="/articles/<%= user.username %>/<%= article.title %>" class="articles grid-item peacockk border border-zinc-700 p-4">
<img src="<%= article.articlePic %>" alt="<%= article.articlePic %>" class="rounded-lg">
<h3 class="font-bold mt-2"><%= article.title %></h3>
</a>
Expand Down
8 changes: 6 additions & 2 deletions views/profileAll.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
color: white;
}
.light-mode .articles{
background-color: transparent;
}
.navbar a {
padding: 0.5rem 1rem;
font-size: 1rem;
Expand Down Expand Up @@ -208,8 +212,8 @@

<div class="grid-masonry max-w-screen-lg py-6 px-4">
<% user.articles.forEach(article => { %>
<a href="/articles/<%= user.username %>/<%= article.title %>" class="grid-item peacockk border border-zinc-700 p-4">
<img src="<%= article.articlePic %>" alt="<%= article.articlePic %>">
<a href="/articles/<%= user.username %>/<%= article.title %>" class="articles grid-item peacockk border border-zinc-700 p-4">
<img src="<%= article.articlePic %>" alt="<%= article.articlePic %>" class="rounded-lg">
<h3 class="font-bold mt-2"><%= article.title %></h3>
</a>
<% }); %>
Expand Down

0 comments on commit 482122b

Please sign in to comment.