-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (50 loc) · 2.36 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CRUD e-commerce</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
</head>
<body class="bg-dark">
<div class="container mt-5">
<div class="row">
<div class="col-md-4 d-inline">
<div class="card">
<div class="card-body">
<form onsubmit="event.preventDefault(), updateProduct()">
<div class="mb-3">
<label for="name" class="form-label">Producto</label>
<input type="text" class="form-control" id="name">
</div>
<div class="mb-3">
<label for="price" class="form-label">Precio</label>
<input type="text" class="form-control" id="price">
</div>
<div class="mb-3">
<label for="price" class="form-label">Imagen URL:</label>
<input type="url" class="form-control" id="image">
</div>
</form>
<button type="submit" onclick="createProduct()" class="btn btn-primary">Crear</button>
<button type="submit" onclick="updateProduct()" class="btn btn-warning">Actualizar</button>
</div>
</div>
</div>
<div class="row" id="products-container">
<!-- Aquí van los productos -->
</div>
</div>
<footer class="text-white mt-5 text-center">
<p>Hecho con <i class="fas fa-heart"></i> en Academlo</p>
<br>
</footer>
<footer class="text-white text-center">
<p>Web Developer: <i class="fas fa-terminal"></i> Alejandro Betancur</p>
</footer>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script src="./assets/js/js.js" type="module"></script>
<script src="https://kit.fontawesome.com/50ead72691.js" crossorigin="anonymous"></script>
</body>
</html>