-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.ejs
More file actions
91 lines (85 loc) · 2.44 KB
/
Copy pathindex.ejs
File metadata and controls
91 lines (85 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html lang="es">
<!-- Include Head -->
<%- include('../partials/head', {title: title }) %>
<body>
<!-- Header -->
<%- include('../partials/headerNavbar') %>
<!-- /Header -->
<!-- Banner -->
<div class="banner"></div>
<!-- /Banner -->
<!-- ultima visita -->
<!-- <a href="/products/create">
<button class="create">Cargar Producto</button>
</a> -->
<div class="container products-wrapper">
<div class="row">
<div class="col-12">
<h2 class="products-title">Basado en tu última visita</h2>
</div>
<!-- Show the "visited" products -->
<% products.forEach(product=> { %>
<div class="col-12 col-sm-6 col-lg-3">
<section class="product-box">
<a href="/products/<%= product.id %>/detail">
<figure class="product-box_image">
<img src="/images/products/<%= product.image %>" alt="imagen de producto">
</figure>
<article class="product-box_data">
<h2>
<%= product.price %>
</h2>
<span>
<%= product.discount %> % OFF
</span>
<p>
<%= product.name %>
</p>
<i class="fas fa-truck"></i>
</article>
</a>
</section>
</div>
<% }) %>
</div>
</div>
<!-- /ultima visita -->
<!-- Ofertas -->
<div class="container products-wrapper">
<div class="row">
<div class="col-12">
<h2 class="products-title">Ofertas</h2>
</div>
<!-- Show the "in-sale" products -->
<% products.forEach(product=> { %>
<div class="col-12 col-sm-6 col-lg-3">
<section class="product-box">
<a href="/products/<%= product.id %>/detail">
<figure class="product-box_image">
<img src="/images/products/<%= product.image %>" alt="imagen de producto">
</figure>
<article class="product-box_data">
<h2>
<%= product.price %>
</h2>
<span>
<%= product.discount %> % OFF
</span>
<p>
<%= product.name %>
</p>
<i class="fas fa-truck"></i>
</article>
</a>
</section>
</div>
<% }) %>
</div>
</div>
<!-- /Ofertas -->
<!-- footer -->
<%- include('../partials/footer') %>
<!-- /footer -->
</body>
</html>