Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
svalpr-ufps committed Sep 30, 2024
1 parent ab803a9 commit 747c8ef
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
9 changes: 1 addition & 8 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,11 @@ <h1>Shop Online</h1>
</ul>
</nav>
</header>
<div class="container">
<h1>Product List</h1>
<select id="categorySelect">
<option value="all">All categories</option>
</select>
<div id="productList"></div>
</div>
<main>
<section>
<label for="categorySelect">Select category</label>
<select id="categorySelect">
<option value="">All</option>
<option value="">All categories</option>
</select>
</section>

Expand Down
4 changes: 2 additions & 2 deletions app/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ function showNotification(message) {

goToCartBtn.addEventListener('click', () => {
alert('Vas al carrito con ' + cart.length + ' productos.');
window.location.href = 'carrito/index.html';
window.location.href = "carrito/index.html";
});

logoutBtn.addEventListener('click', () => {
alert('Has cerrado sesión.');
window.location.href='../login/index.html';
window.location.href= "../login/index.html";
});
5 changes: 4 additions & 1 deletion login/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
</div>
<input type="submit" value="Ingresar" class="login__submit" />
</form>
<a href="registro.html">Register</a>
<div class="flex-container">
<a href="registro.html">Register</a>
</div>

</main>

<script src="./scripts.js"></script>
Expand Down
6 changes: 6 additions & 0 deletions login/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@
.login__submit {
margin-top: 1rem;
width: 100%;
}

.flex-container {
display: flex;
justify-content: center;
align-items: center;
}
2 changes: 1 addition & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

* {
margin: 0;
padding: 0;
padding: 10px;
box-sizing: border-box;
}

Expand Down

0 comments on commit 747c8ef

Please sign in to comment.