diff options
Diffstat (limited to 'views/partials/magicPops.ejs')
-rw-r--r-- | views/partials/magicPops.ejs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/views/partials/magicPops.ejs b/views/partials/magicPops.ejs new file mode 100644 index 0000000..3583b7b --- /dev/null +++ b/views/partials/magicPops.ejs @@ -0,0 +1,14 @@ +<div class='magicPops invis'> + <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> |