-
Notifications
You must be signed in to change notification settings - Fork 0
/
cart.html
52 lines (46 loc) · 2 KB
/
cart.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body>
<nav class="block px-4 py-3 text-white bg-slate-900 shadow-md rounded-md mt-5 sticky top-3 mr-10 ml-10 z-10">
<div class="container flex flex-wrap items-center justify-between mx-auto text-gray-100">
<a href="#"
class="mr-4 block cursor-pointer py-1.5 text-base text-gray-200 font-semibold">
iStore
</a>
<div class="flex flex-row items-center gap-5">
<div class="hidden lg:block">
<ul class="flex flex-col gap-2 mt-2 mb-4 lg:mb-0 lg:mt-0 lg:flex-row lg:items-center lg:gap-6">
<li class="flex items-center p-1 text-sm gap-x-2 text-gray-200">
<a href="#" class="flex items-center">
Markets
</a>
</li>
<li class="flex items-center p-1 text-sm gap-x-2 text-gray-200">
<a href="#" class="flex items-center">
Wallet
</a>
</li>
</ul>
</div>
<button id="cartBtn" class="flex items-center p-1 text-md font-bold gap-x-2 text-slate-900 select-none bg-white rounded-md">
Cart (<span id="cartsCounter" class=""> 0 </span>)
</button>
</div>
</div>
</nav>
<div class="block mt-5 mr-10 ml-10">
<div id="productsContainer" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-5 h-fit w-full"></div>
</div>
<div id="cartWapper" class="flex flex-col items-center justify-center h-[100dvh] w-full fixed z-10 top-0 bottom-0 hidden">
<div class="h-[100%] w-[100%] bg-[#000000] z-10 relative opacity-80 hideCart"></div>
<div id="cartsContainer" class="grid grid-cols-1 md:grid-cols-2 gap-2 z-20 absolute md:w-[40%] h-[40%] overflow-y-hidden scroll-y bg-[#FFFFFF] p-5"></div>
</div>
<script src="cart.js"></script>
</body>
</html>