summaryrefslogtreecommitdiff
path: root/views/partials/popular.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/partials/popular.ejs')
-rw-r--r--views/partials/popular.ejs14
1 files changed, 14 insertions, 0 deletions
diff --git a/views/partials/popular.ejs b/views/partials/popular.ejs
new file mode 100644
index 0000000..af83f34
--- /dev/null
+++ b/views/partials/popular.ejs
@@ -0,0 +1,14 @@
+<div class='pops'>
+ <h4>Popular</h4>
+ <div class='popCard'>
+ <% popular.map(p => { %>
+ <div class='popular'>
+ <h5><%= p.title %></h5>
+ <img src="/images/<%= p.author.username %>/<%= p.picture %>" alt="recipe" style='width: 10rem; height: 10rem; object-fit: cover;'>
+ <form action="/recipe/<%= p._id %>">
+ <button>See Recipe</button>
+ </form>
+ </div>
+ <% }) %>
+ </div>
+</div>