-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (74 loc) · 3.82 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<title>Product modal</title>
</head>
<body>
<!-- Global Container -->
<div class="flex items-center justify-center min-h-screen bg-slate-100">
<!-- card Container -->
<div
class="flex flex-col p-6 m-3 space-y-10 bg-white rounded-2xl shadow-2xl md:flex-row md:space-y-0 md:space-x-10 md:m-0 md:p-16">
<!-- Image div -->
<div>
<img src="assets/headphone.png" alt="" class="mx-auto
duration-200 w-60 hover:scale-105" />
</div>
<!-- Content -->
<div class="flex flex-col space-y-6">
<!-- Label & Description Container-->
<div class="flex flex-col mb-4 space-y-3 text-center md:text-left">
<div>
<div class="inline-block px-3 py-1 text-sm text-white bg-black rounded-full">
Free Shipping
</div>
</div>
<!-- Title -->
<div class="max-w-sm text-2xl font-medium">
Razer Kraken Kutty Edt Gaming Headset Quartz
</div>
<!-- Price Container -->
<div class="flex flex-col mb-4 space-y-3 text-center md:text-left">
<p class="line-through">$799</p>
<p class="text-5xl font-bold">$499</p>
<p class="text-sm font-light text-gray-400">
This offrer is valid until April 3rd or as long as stock lasts!
</p>
</div>
<!-- button Group -->
<div class="group">
<button
class="w-full transition-all duration-150 bg-blue-700 text-white border-b-8 border-b-blue-700 rounded-lg group-hover:border-t-8 group-hover:border-b-0 group-hover:bg-blue-700 group-hover:border-t-blue-700 group-hover:shadow-lg">
<div class="px-8 py-4 duration-150 bg-blue-500 rounded-lg group-hover:bg-blue-700">
Add to cart
</div>
</button>
</div>
<!-- Stock -->
<div class="flex item-center space-x-3 group">
<div class="w-3 h-3 bg-green-400 rounded-full group-hover:animate-ping"></div>
<div class="text-sm">50+ pcs. in stock</div>
</div>
<!-- Bottom Buttons Container -->
<div class="flex flex-col space-y-4 md:space-y-0 md:space-x-4 md:flex-row">
<button
class="flex item-center justify-center py-3 px-5 space-x-3 border-2 border-gray-300 rounded-lg shadow-sm hover:bg-opacity-30 hover:shadow-lg hover:-translate-y-0.5 transition-all duration-150">
<img src="assets/weight.png" alt="" class="w-8" />
<span>Add to cart</span>
</button>
<button
class="flex item-center justify-center py-3 px-5 space-x-3 border-2 border-gray-300 rounded-lg shadow-sm hover:bg-opacity-30 hover:shadow-lg hover:-translate-y-0.5 transition-all duration-150">
<img src="assets/heart.png" alt="" class="w-8" />
<span>Add to wishlist</span>
</button>
</div>
</div>
</div>
</div>
</div>
</body>
</html>