-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshop.css
More file actions
246 lines (210 loc) · 4.31 KB
/
shop.css
File metadata and controls
246 lines (210 loc) · 4.31 KB
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
/* Reset some default styles */
body, h1, h2, p, ul, li, form {
margin: 0;
padding: 0;
}
/* Set a background color and text color */
body {
background-color: #f7f7f7;
color: #333;
font-family: Arial, sans-serif;
}
/* Style the top bar */
.top-bar {
background-color: #ffffff;
color: #fff;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0;
}
/* Style the search bar */
.search-bar {
flex: 1;
display: flex;
align-items: center;
padding-left: 20px;
}
.search-bar input[type="text"] {
padding: 10px;
border: none;
border-radius: 5px;
font-size: 16px;
background-color: #d2d2d2;
}
.search-button {
background-color: #ff6b6b;
color: #ffffff;
border: none;
border-radius: 5px;
padding: 10px 20px;
margin-left: 10px;
cursor: pointer;
}
/* Style the logo */
.logo {
flex: 0.1;
text-align: center;
}
.logo img {
max-width: 100%;
}
/* Style the user icons */
.user-icons {
flex: 1;
display: flex;
justify-content: flex-end;
align-items: center;
padding-right: 20px;
}
.user-icons a {
margin-left: 20px;
width: 30px; /* Adjust the width as needed */
height: 30px; /* Adjust the height as needed */
}
.user-icons a img {
max-width: 100%;
max-height: 100%;
}
/* Style the header/navigation */
header {
background-color: #ffffff;
color: #fff;
padding: 20px 0;
}
nav ul {
list-style: none;
text-align: center;
}
nav ul li {
display: inline;
margin-right: 20px;
}
nav ul li a {
text-decoration: none;
color: #ff6b6b;
font-weight: bold;
transition: color 0.3s ease;
}
nav ul li a:hover {
color: #be5656;
}
/* Style the hero section */
.hero {
text-align: center;
padding: 120px 0;
background-image: url('../images/bgwallpaper.jpg');
background-size: cover;
background-position: center;
color: #fff;
}
.hero h1 {
font-size: 48px;
margin-bottom: 20px;
}
.hero p {
font-size: 20px;
margin-bottom: 30px;
}
.btn {
display: inline-block;
padding: 15px 30px;
background-color: #ff6b6b;
color: #fff;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
transition: background-color 0.3s ease;
}
.btn:hover {
background-color: #be5656;
}
/* Style the featured products section */
.featured-products {
text-align: center;
padding: 80px 0;
overflow: hidden; /* Hide overflowing content */
}
.featured-products h2 {
font-size: 36px;
margin-bottom: 40px;
color: #333;
}
.product-carousel {
display: flex;
gap: 20px;
overflow-x: auto; /* Enable horizontal scrolling */
padding: 20px 0;
}
.product {
flex: 0 0 calc(33.33% - 20px); /* Adjust the width based on the number of products you want to display */
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
text-align: center;
padding: 20px;
}
.product:hover {
transform: translateY(-10px);
}
.product img {
width: 100%; /* Set the width to 100% to scale images within the container */
height: auto; /* Maintain the aspect ratio of the images */
max-width: 300px; /* Set the maximum width as needed */
max-height: 200px; /* Set the maximum height as needed */
}
.price {
font-weight: bold;
color: #ff6b6b;
font-size: 24px;
}
/* Hide scrollbar in Firefox and IE */
.product-carousel::-webkit-scrollbar {
display: none;
}
/* Style the newsletter section */
.newsletter {
text-align: center;
background-color: #ff6b6b;
color: #fff;
padding: 80px 0;
}
.newsletter h2 {
font-size: 36px;
margin-bottom: 30px;
}
.newsletter p {
font-size: 20px;
margin-bottom: 40px;
}
form input[type="email"] {
padding: 15px;
width: 300px;
border: none;
border-radius: 5px;
font-size: 18px;
}
form button.btn {
padding: 15px 30px;
background-color: #333;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
transition: background-color 0.3s ease;
}
form button.btn:hover {
background-color: #ff6b6b;
}
/* Style the footer */
footer {
text-align: center;
padding: 40px 0;
background-color: #333;
color: #fff;
}
footer p {
font-size: 18px;
}