-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
203 lines (187 loc) Β· 12.2 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
<!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>Tailwind CSS Grid</title>
</head>
<body>
<!-- title -->
<div class="text-center p-10">
<h1 class="font-bold text-4xl mb-4">Responsive Product card grid</h1>
<h1 class="text-3xl">Tailwind CSS</h1>
</div>
<!-- β
Grid Section - Starts Here π -->
<section id="Projects"
class="w-fit mx-auto grid grid-cols-1 lg:grid-cols-3 md:grid-cols-2 justify-items-center justify-center gap-y-20 gap-x-14 mt-10 mb-5">
<!-- β
Product card 1 - Starts Here π -->
<div class="w-72 bg-white shadow-md rounded-xl duration-500 hover:scale-105 hover:shadow-xl">
<a href="#">
<img src="https://images.unsplash.com/photo-1646753522408-077ef9839300?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwcm9maWxlLXBhZ2V8NjZ8fHxlbnwwfHx8fA%3D%3D&auto=format&fit=crop&w=500&q=60"
alt="Product" class="h-80 w-72 object-cover rounded-t-xl" />
<div class="px-4 py-3 w-72">
<span class="text-gray-400 mr-3 uppercase text-xs">Brand</span>
<p class="text-lg font-bold text-black truncate block capitalize">Product Name</p>
<div class="flex items-center">
<p class="text-lg font-semibold text-black cursor-auto my-3">$149</p>
<del>
<p class="text-sm text-gray-600 cursor-auto ml-2">$199</p>
</del>
<div class="ml-auto"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"
fill="currentColor" class="bi bi-bag-plus" viewBox="0 0 16 16">
<path fill-rule="evenodd"
d="M8 7.5a.5.5 0 0 1 .5.5v1.5H10a.5.5 0 0 1 0 1H8.5V12a.5.5 0 0 1-1 0v-1.5H6a.5.5 0 0 1 0-1h1.5V8a.5.5 0 0 1 .5-.5z" />
<path
d="M8 1a2.5 2.5 0 0 1 2.5 2.5V4h-5v-.5A2.5 2.5 0 0 1 8 1zm3.5 3v-.5a3.5 3.5 0 1 0-7 0V4H1v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4h-3.5zM2 5h12v9a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5z" />
</svg></div>
</div>
</div>
</a>
</div>
<!-- π Product card 1 - Ends Here -->
<!-- β
Product card 2 - Starts Here π -->
<div class="w-72 bg-white shadow-md rounded-xl duration-500 hover:scale-105 hover:shadow-xl">
<a href="#">
<img src="https://images.unsplash.com/photo-1651950519238-15835722f8bb?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwcm9maWxlLXBhZ2V8Mjh8fHxlbnwwfHx8fA%3D%3D&auto=format&fit=crop&w=500&q=60"
alt="Product" class="h-80 w-72 object-cover rounded-t-xl" />
<div class="px-4 py-3 w-72">
<span class="text-gray-400 mr-3 uppercase text-xs">Brand</span>
<p class="text-lg font-bold text-black truncate block capitalize">Product Name</p>
<div class="flex items-center">
<p class="text-lg font-semibold text-black cursor-auto my-3">$149</p>
<del>
<p class="text-sm text-gray-600 cursor-auto ml-2">$199</p>
</del>
<div class="ml-auto"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"
fill="currentColor" class="bi bi-bag-plus" viewBox="0 0 16 16">
<path fill-rule="evenodd"
d="M8 7.5a.5.5 0 0 1 .5.5v1.5H10a.5.5 0 0 1 0 1H8.5V12a.5.5 0 0 1-1 0v-1.5H6a.5.5 0 0 1 0-1h1.5V8a.5.5 0 0 1 .5-.5z" />
<path
d="M8 1a2.5 2.5 0 0 1 2.5 2.5V4h-5v-.5A2.5 2.5 0 0 1 8 1zm3.5 3v-.5a3.5 3.5 0 1 0-7 0V4H1v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4h-3.5zM2 5h12v9a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5z" />
</svg></div>
</div>
</div>
</a>
</div>
<!-- π Product card 2- Ends Here -->
<!-- β
Product card 3 - Starts Here π -->
<div class="w-72 bg-white shadow-md rounded-xl duration-500 hover:scale-105 hover:shadow-xl">
<a href="#">
<img src="https://images.unsplash.com/photo-1651950537598-373e4358d320?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwcm9maWxlLXBhZ2V8MjV8fHxlbnwwfHx8fA%3D%3D&auto=format&fit=crop&w=500&q=60"
alt="Product" class="h-80 w-72 object-cover rounded-t-xl" />
<div class="px-4 py-3 w-72">
<span class="text-gray-400 mr-3 uppercase text-xs">Brand</span>
<p class="text-lg font-bold text-black truncate block capitalize">Product Name</p>
<div class="flex items-center">
<p class="text-lg font-semibold text-black cursor-auto my-3">$149</p>
<del>
<p class="text-sm text-gray-600 cursor-auto ml-2">$199</p>
</del>
<div class="ml-auto"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"
fill="currentColor" class="bi bi-bag-plus" viewBox="0 0 16 16">
<path fill-rule="evenodd"
d="M8 7.5a.5.5 0 0 1 .5.5v1.5H10a.5.5 0 0 1 0 1H8.5V12a.5.5 0 0 1-1 0v-1.5H6a.5.5 0 0 1 0-1h1.5V8a.5.5 0 0 1 .5-.5z" />
<path
d="M8 1a2.5 2.5 0 0 1 2.5 2.5V4h-5v-.5A2.5 2.5 0 0 1 8 1zm3.5 3v-.5a3.5 3.5 0 1 0-7 0V4H1v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4h-3.5zM2 5h12v9a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5z" />
</svg></div>
</div>
</div>
</a>
</div>
<!-- π Product card 3 - Ends Here -->
<!-- β
Product card 4 - Starts Here π -->
<div class="w-72 bg-white shadow-md rounded-xl duration-500 hover:scale-105 hover:shadow-xl">
<a href="#">
<img src="https://images.unsplash.com/photo-1651950540805-b7c71869e689?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwcm9maWxlLXBhZ2V8Mjl8fHxlbnwwfHx8fA%3D%3D&auto=format&fit=crop&w=500&q=60"
alt="Product" class="h-80 w-72 object-cover rounded-t-xl" />
<div class="px-4 py-3 w-72">
<span class="text-gray-400 mr-3 uppercase text-xs">Brand</span>
<p class="text-lg font-bold text-black truncate block capitalize">Product Name</p>
<div class="flex items-center">
<p class="text-lg font-semibold text-black cursor-auto my-3">$149</p>
<del>
<p class="text-sm text-gray-600 cursor-auto ml-2">$199</p>
</del>
<div class="ml-auto"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"
fill="currentColor" class="bi bi-bag-plus" viewBox="0 0 16 16">
<path fill-rule="evenodd"
d="M8 7.5a.5.5 0 0 1 .5.5v1.5H10a.5.5 0 0 1 0 1H8.5V12a.5.5 0 0 1-1 0v-1.5H6a.5.5 0 0 1 0-1h1.5V8a.5.5 0 0 1 .5-.5z" />
<path
d="M8 1a2.5 2.5 0 0 1 2.5 2.5V4h-5v-.5A2.5 2.5 0 0 1 8 1zm3.5 3v-.5a3.5 3.5 0 1 0-7 0V4H1v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4h-3.5zM2 5h12v9a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5z" />
</svg></div>
</div>
</div>
</a>
</div>
<!-- π Product card 4 - Ends Here -->
<!-- β
Product card 5 - Starts Here π -->
<div class="w-72 bg-white shadow-md rounded-xl duration-500 hover:scale-105 hover:shadow-xl">
<a href="#">
<img src="https://images.unsplash.com/photo-1649261191624-ca9f79ca3fc6?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwcm9maWxlLXBhZ2V8NDd8fHxlbnwwfHx8fA%3D%3D&auto=format&fit=crop&w=500&q=60"
alt="Product" class="h-80 w-72 object-cover rounded-t-xl" />
<div class="px-4 py-3 w-72">
<span class="text-gray-400 mr-3 uppercase text-xs">Brand</span>
<p class="text-lg font-bold text-black truncate block capitalize">Product Name</p>
<div class="flex items-center">
<p class="text-lg font-semibold text-black cursor-auto my-3">$149</p>
<del>
<p class="text-sm text-gray-600 cursor-auto ml-2">$199</p>
</del>
<div class="ml-auto"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"
fill="currentColor" class="bi bi-bag-plus" viewBox="0 0 16 16">
<path fill-rule="evenodd"
d="M8 7.5a.5.5 0 0 1 .5.5v1.5H10a.5.5 0 0 1 0 1H8.5V12a.5.5 0 0 1-1 0v-1.5H6a.5.5 0 0 1 0-1h1.5V8a.5.5 0 0 1 .5-.5z" />
<path
d="M8 1a2.5 2.5 0 0 1 2.5 2.5V4h-5v-.5A2.5 2.5 0 0 1 8 1zm3.5 3v-.5a3.5 3.5 0 1 0-7 0V4H1v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4h-3.5zM2 5h12v9a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5z" />
</svg></div>
</div>
</div>
</a>
</div>
<!-- π Product card 5 - Ends Here -->
<!-- β
Product card 6 - Starts Here π -->
<div class="w-72 bg-white shadow-md rounded-xl duration-500 hover:scale-105 hover:shadow-xl">
<a href="#">
<img src="https://images.unsplash.com/photo-1649261191606-cb2496e97eee?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwcm9maWxlLXBhZ2V8NDR8fHxlbnwwfHx8fA%3D%3D&auto=format&fit=crop&w=500&q=60"
alt="Product" class="h-80 w-72 object-cover rounded-t-xl" />
<div class="px-4 py-3 w-72">
<span class="text-gray-400 mr-3 uppercase text-xs">Brand</span>
<p class="text-lg font-bold text-black truncate block capitalize">Product Name</p>
<div class="flex items-center">
<p class="text-lg font-semibold text-black cursor-auto my-3">$149</p>
<del>
<p class="text-sm text-gray-600 cursor-auto ml-2">$199</p>
</del>
<div class="ml-auto"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"
fill="currentColor" class="bi bi-bag-plus" viewBox="0 0 16 16">
<path fill-rule="evenodd"
d="M8 7.5a.5.5 0 0 1 .5.5v1.5H10a.5.5 0 0 1 0 1H8.5V12a.5.5 0 0 1-1 0v-1.5H6a.5.5 0 0 1 0-1h1.5V8a.5.5 0 0 1 .5-.5z" />
<path
d="M8 1a2.5 2.5 0 0 1 2.5 2.5V4h-5v-.5A2.5 2.5 0 0 1 8 1zm3.5 3v-.5a3.5 3.5 0 1 0-7 0V4H1v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4h-3.5zM2 5h12v9a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5z" />
</svg></div>
</div>
</div>
</a>
</div>
<!-- π Product card 6 - Ends Here -->
</section>
<!-- π Grid Section - Ends Here -->
<!-- credit -->
<div class="text-center py-10 px-10">
<h2 class="font-bold text-2xl md:text-4xl mb-4">Thanks to <a href="https://unsplash.com/@nixcreative"
class="underline font-black">Tyler Nix</a> for those AMAZING product images!</h2>
</div>
<!-- Support Me ππ₯° -->
<script src="https://storage.ko-fi.com/cdn/scripts/overlay-widget.js"></script>
<script>
kofiWidgetOverlay.draw('mohamedghulam', {
'type': 'floating-chat',
'floating-chat.donateButton.text': 'Support me',
'floating-chat.donateButton.background-color': '#323842',
'floating-chat.donateButton.text-color': '#fff'
});
</script>
</body>
</html>