mirror of
https://github.com/FranP-code/API-and-CRUD-for-Ecommerce-with-Node.js-FRONTEND.git
synced 2025-10-12 23:52:33 +00:00
translated to english
This commit is contained in:
22
index.html
22
index.html
@@ -51,10 +51,10 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
Cantidad
|
||||
Quantity
|
||||
</th>
|
||||
<th>
|
||||
Producto
|
||||
Product
|
||||
</th>
|
||||
<th>
|
||||
Tax
|
||||
@@ -111,15 +111,15 @@
|
||||
<div class="botones-de-descuento">
|
||||
|
||||
<button class="button">
|
||||
DESCUENTO DE EMPLEADOS
|
||||
EMPLOTEE DISCOUNT
|
||||
</button>
|
||||
|
||||
<button class="button">
|
||||
VISTA CLIENTE
|
||||
CUSTOMER VIEW
|
||||
</button>
|
||||
|
||||
<button class="button">
|
||||
CÓDIGO PROMOCIONAL
|
||||
CUPPON
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -131,16 +131,16 @@
|
||||
<nav>
|
||||
<ul>
|
||||
<li class="button">
|
||||
BEBIDAS
|
||||
DRINKS
|
||||
</li>
|
||||
<li class="button">
|
||||
COMIDAS
|
||||
FOODS
|
||||
</li>
|
||||
<li class="button">
|
||||
REPOSTERÍA Y PANADERÍA
|
||||
PASTRY AND BAKERY
|
||||
</li>
|
||||
<li class="button">
|
||||
REFRIGERADOS
|
||||
REFRIGERATED
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
@@ -183,7 +183,7 @@
|
||||
|
||||
<div class="opcion">
|
||||
<span class="text">
|
||||
DEBITO
|
||||
DEBIT
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -196,7 +196,7 @@
|
||||
|
||||
<div class="pagar button">
|
||||
|
||||
<span>PAGAR</span>
|
||||
<span>PAY</span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ const pagarLogica = (checkout) => {
|
||||
|
||||
if (JSON.stringify(checkout) === '{}') {
|
||||
|
||||
alert('Por favor, agregue uno o mas productos.')
|
||||
alert('Please, add one or more products to buy.')
|
||||
return
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ const pagarLogica = (checkout) => {
|
||||
mensajeCompra.id = 'mensaje-compra'
|
||||
|
||||
let mensaje = document.createElement('h2')
|
||||
mensaje.innerText = 'Espere, será enviado a la pasarela de pagos en breve...'
|
||||
mensaje.innerText = 'Please wait, it will be sent to the payment gateway shortly...'
|
||||
|
||||
mensajeCompra.appendChild(mensaje)
|
||||
container.appendChild(mensajeCompra)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
//? GLOBAL
|
||||
|
||||
let activeCategory = 'BEBIDAS'
|
||||
let activeCategory = 'DRINKS'
|
||||
let checkout = {}
|
||||
let globalProductos = []
|
||||
|
||||
|
||||
@@ -6,56 +6,56 @@ const traerProductosDeAPI = async () => {
|
||||
name: 'Coca-Cola',
|
||||
price: 3.5,
|
||||
img: './img/cocacola-lata.jpg',
|
||||
category: 'bebidas'
|
||||
category: 'drinks'
|
||||
},
|
||||
|
||||
product2: {
|
||||
name: 'Coca-Cola Zero',
|
||||
price: 3.5,
|
||||
img: './img/cocacola-zero.jpg',
|
||||
category: 'bebidas'
|
||||
category: 'drinks'
|
||||
},
|
||||
|
||||
product3: {
|
||||
name: 'Manzana Post.',
|
||||
price: 3.5,
|
||||
img: './img/postobon-manzana-lata.jpg',
|
||||
category: 'bebidas'
|
||||
category: 'drinks'
|
||||
},
|
||||
|
||||
product4: {
|
||||
name: 'Agua Natural',
|
||||
price: 3.5,
|
||||
img: './img/agua-500ml.jpg',
|
||||
category: 'bebidas'
|
||||
category: 'drinks'
|
||||
},
|
||||
|
||||
product5: {
|
||||
name: 'Naranja Post.',
|
||||
price: 3.5,
|
||||
img: './img/naranja-postobon.jpg',
|
||||
category: 'bebidas'
|
||||
category: 'drinks'
|
||||
},
|
||||
|
||||
product6: {
|
||||
name: 'Tropical 2L',
|
||||
price: 3.5,
|
||||
img: './img/tropical-ecuador-botella.jpg',
|
||||
category: 'bebidas'
|
||||
category: 'drinks'
|
||||
},
|
||||
|
||||
product7: {
|
||||
name: 'Piña Postobon',
|
||||
price: 3.5,
|
||||
img: './img/postobon-pina.jpg',
|
||||
category: 'bebidas'
|
||||
category: 'drinks'
|
||||
},
|
||||
|
||||
product8: {
|
||||
name: 'Asado',
|
||||
price: 15,
|
||||
img: './img/Asado.jpg',
|
||||
category: 'comidas'
|
||||
category: 'foods'
|
||||
|
||||
},
|
||||
|
||||
@@ -63,7 +63,7 @@ const traerProductosDeAPI = async () => {
|
||||
name: "Medialunas Dulces",
|
||||
price: 2,
|
||||
img: './img/Medialunas dulces.jpg',
|
||||
category: 'REPOSTERÍA Y PANADERÍA'
|
||||
category: 'pastry and bakery'
|
||||
},
|
||||
|
||||
product10: {
|
||||
@@ -71,7 +71,7 @@ const traerProductosDeAPI = async () => {
|
||||
name: 'Papas fritas congeladas',
|
||||
price: 5,
|
||||
img: './img/Papas fritas congeladas.jpg',
|
||||
category: 'refrigerados'
|
||||
category: 'refrigerated'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -270,6 +270,8 @@ header .perfil img.profile-menu {
|
||||
flex-grow: 1;
|
||||
|
||||
border-radius: 5px;
|
||||
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.pagina-principal .primer-columna .botones-de-descuento :first-child {
|
||||
@@ -312,6 +314,7 @@ header .perfil img.profile-menu {
|
||||
|
||||
margin: 1vh 0px;
|
||||
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.pagina-principal .segunda-columna nav ul li.active {
|
||||
|
||||
Reference in New Issue
Block a user