-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
302 lines (292 loc) · 19 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Age of Rock</title>
<meta name="description" content="">
<meta name="keywords" content="tailwind,tailwindcss,tailwind css,css,starter template,free template,store template, shop layout, minimal, monochrome, minimalistic, theme, nordic">
<link href="style/css.css" rel="stylesheet">
<link href="style/animations.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Work+Sans:200,400&display=swap" rel="stylesheet">
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script defer src="src/database.js"></script>
<script defer src="src/shoppingCart.Js"></script>
<script defer src="src/catalog.js"></script>
<script defer src="src/api.js"></script>
<script defer src="src/animations.js"></script>
</head>
<body class="bg-gray-900 text-gray-600 work-sans mx-auto leading-normal text-base tracking-normal">
<!--Nav-->
<nav id="header" class="w-full z-30 top-0 py-1 bg-gray-800" >
<div class="w-full container mx-auto flex flex-wrap items-center justify-between mt-0 px-6 py-3">
<div class="order-1 md:order-2">
<a class="flex items-center tracking-wide no-underline hover:no-underline font-bold text-white-800 text-xl" href="#">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.3006 1.04621C11.7169 1.17743 12 1.56348 12 1.99995V6.99995L16 6.99995C16.3729 6.99995 16.7148 7.20741 16.887 7.53814C17.0592 7.86887 17.0331 8.26794 16.8192 8.57341L9.81924 18.5734C9.56894 18.931 9.11564 19.0849 8.69936 18.9537C8.28309 18.8225 8 18.4364 8 18L8 13H4C3.62713 13 3.28522 12.7925 3.11302 12.4618C2.94083 12.131 2.96694 11.732 3.18077 11.4265L10.1808 1.42649C10.4311 1.06892 10.8844 0.914992 11.3006 1.04621Z" fill="#4A5568"/>
</svg>
ROCK & ROLL
</a>
</div>
<div class="order-2 md:order-3 flex items-center" id="nav-content">
<a id="loginbtn" class="inline-block no-underline hover:text-white" href="#">
<svg class="fill-current hover:text-white" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<circle fill="none" cx="12" cy="7" r="3" />
<path d="M12 2C9.243 2 7 4.243 7 7s2.243 5 5 5 5-2.243 5-5S14.757 2 12 2zM12 10c-1.654 0-3-1.346-3-3s1.346-3 3-3 3 1.346 3 3S13.654 10 12 10zM21 21v-1c0-3.859-3.141-7-7-7h-4c-3.86 0-7 3.141-7 7v1h2v-1c0-2.757 2.243-5 5-5h4c2.757 0 5 2.243 5 5v1H21z" />
</svg>
</a>
<span id="userName"></span>
<a id="viewCart" class="pl-3 ml-2 inline-block no-underline hover:text-white" href="#">
<svg class="fill-current hover:text-white" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M21,7H7.462L5.91,3.586C5.748,3.229,5.392,3,5,3H2v2h2.356L9.09,15.414C9.252,15.771,9.608,16,10,16h8 c0.4,0,0.762-0.238,0.919-0.606l3-7c0.133-0.309,0.101-0.663-0.084-0.944C21.649,7.169,21.336,7,21,7z M17.341,14h-6.697L8.371,9 h11.112L17.341,14z" />
<circle cx="10.5" cy="18.5" r="1.5" />
<circle cx="17.5" cy="18.5" r="1.5" />
</svg>
</a>
<button id="nbmCartItems" class="h-4 w-4 rounded text-gray-600 text-sm pb-5 ml-2"> </button>
</div>
</div>
</nav>
<!-- Shopping Cart -->
<div id="myCart" class="overlay">
<a href="javascript:void(0)" class="closebtn" id="closeCart">×</a>
<div class="overlay-content">
<h4 id ="miniCartText"> Your cart is empty, <a href="#catalogo" id="emptyCart"> GO TO STORE </a> </h4>
<div id="miniCart" >
</div>
<h4 id="totaltext" class="invisible py-2 mt-4 text-2xl">
Total: <span id="miniCarttotalprice" class="invisible"></span><span id="dolarSign" class="invisible"> $</span>
</h4>
<button id="checkout" class="invisible shadow bg-gray-600 hover:bg-gray-900 focus:shadow-outline focus:outline-none text-white font-bold mb-6 py-2 px-4 rounded" type="button" > Go to checkout </button>
<button id="emptyCartbtn" class=" invisible shadow bg-gray-600 hover:bg-gray-900 focus:shadow-outline focus:outline-none mb-6 text-white font-bold py-2 px-4 rounded" type="button" > Empty Cart </button>
</div>
</div>
<!-- Login -->
<div id="login" class=" overlay ">
<a href="javascript:void(0)" class="closebtn" id="closeLogin" >×</a>
<div class="overlay-content">
<h3 class="text-center items-center mb-3 ml-12 invisible" id="loginUnsuc" > Account doesn't exist </h3>
<form class="mx-auto w-full max-w-sm">
<div class="md:flex md:items-center mb-6">
<div class="md:w-1/3">
<label class="block text-gray-500 font-bold md:text-right mb-1 md:mb-0 pr-4" for="emailLogin">
Email
</label>
</div>
<div class="md:w-2/3">
<input class="bg-gray-200 appearance-none border-2 border-gray-200 rounded w-full py-2 px-4 text-gray-700 leading-tight focus:outline-none focus:bg-white focus:border-gray-800" id="emailLogin" type="text" placeholder="Paul McCartney" required>
</div>
</div>
<div class="md:flex md:items-center mb-6">
<div class="md:w-1/3">
<label class="block text-gray-500 font-bold md:text-right mb-1 md:mb-0 pr-4" for="passLogin">
Password
</label>
</div>
<div class="md:w-2/3">
<input class="bg-gray-200 appearance-none border-2 border-gray-200 rounded w-full py-2 px-4 text-gray-700 leading-tight focus:outline-none focus:bg-white focus:border-gray-800" id="passLogin" type="password" placeholder="******" required>
</div>
</div>
<div class="md:flex md:items-center">
<div class="md:w-1/3">
</div>
<div class="md:w-2/3">
<button id="signUpBtn" class="shadow bg-gray-600 hover:bg-gray-900 focus:shadow-outline focus:outline-none text-white font-bold py-2 px-4 rounded" type="button">
Sign Up
</button>
<button id="logIntoAcc" class="shadow bg-gray-600 hover:bg-gray-900 focus:shadow-outline focus:outline-none text-white font-bold py-2 px-4 rounded" type="button">
Log In
</button>
</div>
</div>
</form>
</div>
</div>
<!-- SignUp -->
<div id="signUpForm" class="overlaytop">
<a href="javascript:void(0)" class="closebtn" id="closeSignup" >×</a>
<div class="overlay-content">
<div class="mx-auto w-full max-w-lg">
<div class="flex flex-wrap -mx-3 mb-6">
<div class="max-w-sm md:w-1/2 px-3 mb-6 md:mb-0 items-center ">
<label class="block uppercase item tracking-wide text-gray-700 text-xs font-bold mb-2" for="fullName">
Full Name
</label>
<input class="appearance-none block w-full bg-gray-200 text-gray-700 border border-red-500 rounded py-3 px-4 mb-3 leading-tight focus:outline-none focus:bg-white" id="fullName" type="text" placeholder="John" value="" autocomplete="off" required >
</div>
<div class="max-w-sm md:w-1/2 px-3 ">
<label class="block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2" for="email">
Email
</label>
<input class="appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500" id="email" type="email" placeholder="[email protected]" required>
</div>
</div>
<div class="flex flex-wrap -mx-3 mb-6 items-center">
<div class="max-w-lg px-3">
<label class=" uppercase tracking-normal text-gray-700 text-xs font-bold mb-2" for="password">
Password
</label>
<input class="appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 mb-3 leading-tight focus:outline-none focus:bg-white focus:border-gray-500" id="password" type="password" placeholder="******************" required>
</div>
<div class="max-w-lg px-3 items-center">
<label class="block uppercase tracking-normal text-gray-700 text-xs font-bold mb-2" for="confirmPassword">
Confirm Password
</label>
<input class="appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 mb-3 leading-tight focus:outline-none focus:bg-white focus:border-gray-500" id="confirmPassword" type="password" placeholder="******************" required>
<div>
<!-- <span> <input id="seePassword" class="invisible mr-2 leading-tight " type="checkbox">
<svg class="h-6 w-6" fill="none" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" stroke="currentColor"><path d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path><path d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"></path></svg></span>
-->
</div>
</div>
</div>
<h3 class="text-center items-center mb-3 invisible" id="passwordMatch" > Passwords do not match and fields cant be empty </h3>
<div class="w-full">
<div class="md:flex md:items-center mb-6">
<label class="md:w-1/2 block text-gray-500 font-bold">
<input id="subscription"class="mr-2 leading-tight" type="checkbox">
<span class="text-sm">
Subscribe to our Newsletter!
</span>
</label>
</div>
<button id="createAccount" class="shadow bg-gray-600 hover:bg-gray-900 focus:shadow-outline focus:outline-none text-white font-bold py-2 px-4 rounded" type="button" >
Create Account
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Acc createdSuccesfully -->
<div id="accCreationSucc" class="overlay">
<div class="overlay-content">
<h4 class="w-full z-30 top-0 px-10 py-1 items-center font-semibold text-4xl color-black">
Account Creation Succesful, Welcome <span id="nameofUser"></span>
</h4>
<button id="gotoshopAccSuccess" class="shadow bg-gray-600 hover:bg-gray-900 focus:shadow-outline focus:outline-none text-white font-bold mt-4 py-2 px-4 rounded" type="button" >
Go to Shop
</button>
</div>
<!-- Chechout -->
<div id="checkoutForm" class="overlay">
<a href="javascript:void(0)" class="closebtn" id="closeCheckout" >×</a>
<div class="overlay-content">
<form class="mx-auto w-full max-w-lg">
<div class="flex flex-wrap -mx-3 mb-6">
<div class="w-full md:w-1/2 px-3 mb-6 md:mb-0">
<label class="block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2" for="grid-first-name" required>
Full Name of CardHolder
</label>
<input class="appearance-none block w-full bg-gray-200 text-gray-700 border border-red-500 rounded py-3 px-4 mb-3 leading-tight focus:outline-none focus:bg-white" id="grid-first-name" type="text" placeholder="Ringo Starr" required>
</div>
<div class="w-full md:w-1/2 px-3">
<label class="block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2" for="grid-email">
Expiration date
</label>
<input class="appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500" id="grid-expDate" type="date" placeholder="01/20" required>
</div>
</div>
<div class="flex flex-wrap -mx-3 mb-2">
<div class="w-full px-3 mb-6 md:mb-0">
<label class="block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2" for="grid-state" >
Card Type
</label>
<div class="relative">
<select class="block appearance-none w-full bg-gray-200 border border-gray-200 text-gray-700 py-3 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-gray-500" id="grid-state" >
<option>Visa</option>
<option>Master Card</option>
<option>American Express</option>
</select>
<div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700">
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"/></svg>
</div>
</div>
</div>
</div>
<div class="flex flex-wrap -mx-3 mb-6">
<div class="w-full md:w-1/2 px-3">
<label class="block uppercase tracking-normal text-gray-700 text-xs font-bold mb-2" for="grid-password" >
Card Number
</label>
<input class="appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 mb-3 leading-tight focus:outline-none focus:bg-white focus:border-gray-500" id="grid-cardNumber" type="number" placeholder="****-****-****-****" required>
</div>
<div class="w-full md:w-1/2 px-3">
<label class="block uppercase tracking-normal text-gray-700 text-xs font-bold mb-2" for="grid-number">
CVV
</label>
<input class="appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 mb-3 leading-tight focus:outline-none focus:bg-white focus:border-gray-500" id="grid-cvv" type="number" placeholder="***" required>
</div>
</div>
<div class="w-full">
<div class="w-full">
<button id="confirmPurchase" class="shadow bg-gray-600 hover:bg-gray-900 focus:shadow-outline focus:outline-none text-white font-bold py-2 px-4 rounded" type="button">
Confirm Purchase
</button>
</div>
</div>
</div>
</form>
</div>
</div>
<!-- Our mission -->
<section class=" w-full mx-auto bg-gray-900 flex pt-12 md:pt-0 md:items-center bg-cover bg-right" style="max-width:1600px; height: 32rem; background-image: url('images/bg.jpg');">
</section>
<section id="intro" class="invisible bg-gray-900 ">
<div id="introA" >
<a id="introB" href="#">
Welcome Back
</a>
<p id="introC"> We want to bring back to bring back old memories of the best time of rock with a variety of singles
so just sit back, relax, PUT YOUR HEADPHONES ON and remember the Golden age of Rock.
</div>
</section>
<!-- Deezer Api Search Bar -->
<div class="container my-4 items-center mx-auto w-full ">
<form id="search-form" class="text-center">
<div class="form-group ">
<div class="input-group mb-2">
<h4 class="w-full z-30 top-0 px-10 py-1 items-center font-semibold text-4xl color-black">
Listen to your favorite song while you shop
</h4>
<input type="text" class="form-control md:w-1/2 rounded bg-gray-600 text-black color-black " name="search" placeholder=" Beat it "
aria-label="" aria-describedby="basic-addon1">
<button id="showTracks" class="btn btn-info px-3" type="submit">
</button>
</div>
</div>
</form>
<!--Track Bar-->
<div id="tracks" class="overlay">
<a href="javascript:void(0)" class="closebtn" id="closeTracklist" >×</a>
<div class="overlay-content" id="search-result-wrapper">
<section id="search-tracks" class="my-4 d-none">
<header class="d-flex justify-content-between">
<h2 class="h6 font-weight-normal">Tracks</h2>
</header>
<ul class="list-group"></ul>
</section>
</div>
</div>
</div>
<section class="bg-gray-900 mx-auto py-8 items-center w-full ">
<h1 id="store" class="px-auto mx-auto font-semibold text-4xl text-center color-black">
Store
</h1>
<div id="catalogo" class="container catalogo mx-auto flex items-center flex-wrap pt-4 pb-12" >
<!-- Pure Js Catalog -->
</div>
<h4 id="viewcartText" class=" invisible w-full z-30 top-0 px-10 py-1 text-center items-center font-semibold text-2xl color-black " >
View Cart
</h4>
</section>
<footer class="container mx-auto bg-gray-900 py-8 border-t border-gray-400">
<h3 id="Test" class="font-bold text-gray-600">© Company 2020</h3>
<h3 class="font-bold text-gray-600" id= "about" >
<a href="#intro">Our mission </a>
</h3>
</footer>
</body>
</html>