-
Notifications
You must be signed in to change notification settings - Fork 27
/
index.html
232 lines (229 loc) · 8.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>
Shopping Website Landing Page
</title>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet"/>
<style>
.smooth-scroll {
scroll-behavior: smooth;
}
.hover-animate:hover {
transform: scale(1.05);
transition: transform 0.3s ease-in-out;
}
.search-input {
display: none;
transition: display 0.3s ease-in-out;
}
.search-icon:hover + .search-input,
.search-input:hover {
display: inline-block;
}
</style>
</head>
<body class="bg-gray-100 text-gray-800 font-sans smooth-scroll">
<!-- Navigation Bar -->
<nav class="bg-gradient-to-r from-gray-200 to-gray-300 shadow-md py-3">
<div class="container mx-auto px-6 flex justify-between items-center">
<a class="text-2xl font-bold text-gray-800" href="index.html">
Logo
</a>
<div class="flex items-center space-x-4">
<a class="px-4 py-2 text-gray-800 hover:text-gray-900 transition duration-300" href="products.html">
Shop Now
</a>
<a class="px-4 py-2 text-gray-800 hover:text-gray-900 transition duration-300" href="login.html">
Sign In
</a>
<a class="px-4 py-2 text-gray-800 hover:text-gray-900 transition duration-300" href="register.html">
Register
</a>
<a class="px-4 py-2 text-gray-800 hover:text-gray-900 transition duration-300" href="cart.html">
Cart
</a>
<a class="px-4 py-2 text-gray-800 hover:text-gray-900 transition duration-300" href="contact.html">
Contact Us
</a>
<a class="px-4 py-2 text-gray-800 hover:text-gray-900 transition duration-300" href="about.html">
About Us
</a>
<div class="relative">
<span class="text-gray-800 cursor-pointer search-icon">
🔍
</span>
<input class="absolute top-0 left-0 px-4 py-2 rounded-lg border border-gray-300 search-input" placeholder="Search..." type="text"/>
</div>
</div>
</div>
</nav>
<!-- Hero Section -->
<section class="bg-gradient-to-r from-green-400 to-blue-500 text-white py-20">
<div class="container mx-auto text-center">
<h1 class="text-5xl font-bold mb-6 shadow-sm">
Welcome to Our Shopping Site
</h1>
<p class="text-lg mb-6">
Discover the best products at unbeatable prices
</p>
<a class="bg-yellow-500 text-white px-6 py-3 rounded-full hover:bg-yellow-600 transition duration-300 hover-animate" href="products.html">
Shop Now
</a>
</div>
</section>
<!-- Featured Products Section -->
<section class="py-20 bg-gradient-to-r from-blue-100 to-green-100">
<div class="container mx-auto">
<h2 class="text-4xl font-bold text-center mb-12">
Featured Products
</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="bg-white p-6 rounded-lg shadow-lg hover-animate">
<img alt="Featured product 1" class="w-full h-48 object-cover mb-4 rounded" height="200" src="img_17.png" width="300"/>
<h3 class="text-2xl font-bold mb-2">
Product 1
</h3>
<p class="text-gray-700 mb-4">
This is a description of product 1. It is a high-quality product that meets all your needs.
</p>
<a class="bg-blue-500 text-white px-4 py-2 rounded-full hover:bg-blue-600 transition duration-300 hover-animate" href="product1.html">
View Product
</a>
</div>
<div class="bg-white p-6 rounded-lg shadow-lg hover-animate">
<img alt="Featured product 2" class="w-full h-48 object-cover mb-4 rounded" height="200" src="img_15.png" width="300"/>
<h3 class="text-2xl font-bold mb-2">
Product 2
</h3>
<p class="text-gray-700 mb-4">
This is a description of product 2. It offers excellent value and functionality.
</p>
<a class="bg-blue-500 text-white px-4 py-2 rounded-full hover:bg-blue-600 transition duration-300 hover-animate" href="product2.html">
View Product
</a>
</div>
<div class="bg-white p-6 rounded-lg shadow-lg hover-animate">
<img alt="Featured product 3" class="w-full h-48 object-cover mb-4 rounded" height="200" src="img_16.png" width="300"/>
<h3 class="text-2xl font-bold mb-2">
Product 3
</h3>
<p class="text-gray-700 mb-4">
This is a description of product 3. It combines style and performance.
</p>
<a class="bg-blue-500 text-white px-4 py-2 rounded-full hover:bg-blue-600 transition duration-300 hover-animate" href="product3.html">
View Product
</a>
</div>
</div>
</div>
</section>
<!-- Promotional Banners -->
<section class="bg-cover bg-center py-20 relative" style="background-image: url('https://placehold.co/1920x600');">
<div class="bg-gradient-to-r from-yellow-400 to-red-500 opacity-75 absolute inset-0 z-0">
</div>
<div class="container mx-auto text-center relative z-10">
<h2 class="text-4xl font-bold mb-6">
Special Offers
</h2>
<p class="text-lg mb-6">
Don't miss out on our exclusive deals!
</p>
<a class="bg-blue-500 text-white px-6 py-3 rounded-full hover:bg-blue-600 transition duration-300 hover-animate" href="products.html">
Shop Now
</a>
</div>
</section>
<!-- Customer Testimonials -->
<section class="py-20 bg-gradient-to-r from-pink-100 to-purple-100">
<div class="container mx-auto">
<h2 class="text-4xl font-bold text-center mb-12">
What Our Customers Say
</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="bg-white p-6 rounded-lg shadow-lg hover-animate">
<img alt="Customer 1" class="rounded-full w-24 h-24 mx-auto mb-4" height="100" src="img_29.png" width="100"/>
<p class="text-gray-700 mb-4">
"Great shopping experience! Will definitely come back for more."
</p>
<p class="font-bold">
- Customer 1
</p>
</div>
<div class="bg-white p-6 rounded-lg shadow-lg hover-animate">
<img alt="Customer 2" class="rounded-full w-24 h-24 mx-auto mb-4" height="100" src="img_32.png" width="100"/>
<p class="text-gray-700 mb-4">
"Amazing products at amazing prices. Highly recommended!"
</p>
<p class="font-bold">
- Customer 2
</p>
</div>
<div class="bg-white p-6 rounded-lg shadow-lg hover-animate">
<img alt="Customer 3" class="rounded-full w-24 h-24 mx-auto mb-4" height="100" src="img_31.png" width="100"/>
<p class="text-gray-700 mb-4">
"Excellent customer service and fast delivery."
</p>
<p class="font-bold">
- Customer 3
</p>
</div>
</div>
</div>
</section>
<!-- Newsletter Signup -->
<section class="bg-cover bg-center py-20 relative" style="background-image: url('https://placehold.co/1920x600');">
<div class="bg-gray-800 opacity-75 absolute inset-0 z-0">
</div>
<div class="container mx-auto text-center relative z-10">
<h2 class="text-4xl font-bold mb-6 text-white">
Stay Updated
</h2>
<p class="text-lg mb-6 text-gray-300">
Subscribe to our newsletter for the latest updates and offers
</p>
<form class="flex justify-center">
<input class="px-4 py-2 rounded-l-lg border-t mr-0 border-b border-l text-gray-800 border-gray-200 bg-white" placeholder="Your email address" type="email"/>
<button class="px-8 rounded-r-lg bg-blue-500 text-white hover:bg-blue-600 transition duration-300">
Subscribe
</button>
</form>
</div>
</section>
<!-- Footer -->
<footer class="bg-gradient-to-r from-gray-800 to-black text-white py-10">
<div class="container mx-auto text-center">
<div class="mb-6">
<a class="text-2xl font-bold" href="index.html">
Logo
</a>
</div>
<div class="flex justify-center space-x-6 mb-6">
<a class="hover:text-gray-400" href="privacy.html">
Privacy Policy
</a>
<a class="hover:text-gray-400" href="terms.html">
Terms of Service
</a>
<a class="hover:text-gray-400" href="#">
Facebook
</a>
<a class="hover:text-gray-400" href="#">
Twitter
</a>
<a class="hover:text-gray-400" href="#">
Instagram
</a>
</div>
<p class="text-sm">
© 2023 Shopping Website. All rights reserved.
</p>
</div>
</footer>
<!-- Include TailwindCSS via CDN -->
<script src="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.js">
</script>
</body>
</html>