summaryrefslogtreecommitdiff
path: root/views/partials/popular.ejs
diff options
context:
space:
mode:
authorroot <root@vagrantz.xyz>2021-04-06 10:57:50 +0000
committerroot <root@vagrantz.xyz>2021-04-06 10:57:50 +0000
commit8170d5bc0544fbc02155b8b57751cd1dec33dd69 (patch)
treed5cffb086fe6d5585c1e00ea5d5d2d907e6d2cd6 /views/partials/popular.ejs
initial public commitHEADmaster
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>