-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
119 lines (105 loc) · 3.9 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Oja</title>
<link rel="icon" href="./assets/undraw_shopping_app_flsj.svg">
<link rel="stylesheet" href="./index.css">
<link rel="manifest" href="./manifest.json">
<script src="./dexie.min.js"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('./sw.js')
});
}
</script>
</head>
<body>
<header>
<nav>
<ul>
<li><img src="./assets/undraw_shopping_app_flsj.svg" class="logo"></li>
<li class="appName">Oja</li>
<li>
<img src="./assets/2020-07-26.jpg" alt="user profile" height="50px"
class="profile">
</li>
</ul>
</nav>
</header>
<main>
<div class="container">
<div class="homeContainer">
<div class="introDiv">
<h1 class="intro">Shopping has never been easier.</h1>
<p>
Not only is Oja a shopping list app, it doubles as a lorem ipsum dolor sit amet, consectetur
adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>
</div>
<div class="slideContainer">
<div class="slides fade">
<div>
<img class="slideImage" src="./assets/basket.jpg" alt="vegetables"
style="width: 100%;">
</div>
</div>
<div class="slides fade">
<div>
<img class="slideImage" src="./assets/pexels-trang-doan-4838747.jpg"
alt="Fruits" style="width: 100%;">
</div>
</div>
<div class="slides fade">
<div>
<img class="slideImage" src="./assets/happy-shopper.jpg"
alt="a happy shopper" style="width: 100%;">
</div>
</div>
</div>
<div class="homeImage">
</div>
</div>
<div class="itemsContainer">
<form id="itemForm">
<h2 class="formTitle">My Shopping List</h2>
<fieldset>
<input type="text" id="nameInput" placeholder="Name of item" required>
<input type="number" id="quantityInput" placeholder="Quantity needed">
<input type="text" id="priceInput" placeholder="Price of item">
</fieldset>
<button type="submit" id="addItemButton">
Add item
</button>
<button id="updateItemButton">
Update item
</button>
</form>
<div id="itemsDiv" class="itemsDiv">
</div>
<div>
<b id="totalPriceDiv"></b>
</div>
<div>
<button id="clearItemsButton" onclick="clearAllItems()">
Clear all items
</button>
</div>
</div>
</div>
</main>
<footer>
<div>
<ol>
<li>
<img src="./assets/undraw_shopping_app_flsj.svg" alt="logo"> © 2021 Oja,
Inc.
</li>
</ol>
</div>
</footer>
<script src="./index.js"></script>
</body>
</html>