Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 63 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,66 @@
<!DOCTYPE html>
<html>
<head lang="uk">
<meta charset="UTF-8">
<title>My Page</title>
<html lang="ua">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Shopping Cart</title>
<link rel="stylesheet" type="text/css" href="main.css" />
<link
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined"
rel="stylesheet"
/>
</head>

<body>
<header>
<h1>Супермаркет</h1>
</header>
<main>
<section id="shopping-cart">
<div class="add-product-form">
<form action="#">
<input type="text" id="product-item" placeholder="Назва товару" />
<button
type="submit"
class="add-product"
data-tooltip="Додати товар"
onclick="addProduct()"
onmousedown="event.preventDefault()"
>
<!--Retain focus after clicking Add Product button by preventDefault() on mousedown -->
Додати
</button>
</form>
</div>
</section>

<link rel="stylesheet" type="text/css" href="main.css" />
</head>
<body>
<span class="product-item">
Apple
<span class="amount">4</span>
</span>
</body>
</html>
<aside id="shopping-cart-summary">
<section class="remaining-items">
<div class="product-tag-header">
<h2>Залишилося</h2>
</div>
<ul class="product-tag-list" id="remaining"></ul>
</section>

<section class="purchased-items">
<div class="product-tag-header">
<h2>Куплено</h2>
</div>
<ul class="product-tag-list" id="bought"></ul>
</section>
</aside>
</main>

<footer>
<div class="badge">
<p class="badge-header">Buy list</p>
<p class="trademark">
<span class="created-by">Created by:</span> <br />
<span class="my-name">Oleksandra Malii</span>
</p>
</div>
</footer>

<script src="script.js"></script>
</body>
</html>
Loading