Skip to content

Commit 8503a62

Browse files
committed
sync checkout data with app.js
1 parent e3e2cff commit 8503a62

File tree

9 files changed

+331
-110
lines changed

9 files changed

+331
-110
lines changed

css/style.css

Lines changed: 80 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,21 @@ body {
120120
}
121121

122122
/* Shopping Cart */
123+
#shopping-cart-button {
124+
position: relative;
125+
}
126+
127+
#shopping-cart-button .quantity-badge {
128+
display: inline-block;
129+
padding: 1px 5px;
130+
background-color: red;
131+
border-radius: 6px;
132+
font-size: 0.8rem;
133+
position: absolute;
134+
top: 0px;
135+
right: -10px;
136+
}
137+
123138
.shopping-cart {
124139
position: absolute;
125140
top: 100%;
@@ -147,30 +162,85 @@ body {
147162
}
148163

149164
.shopping-cart img {
150-
height: 6rem;
165+
height: 4rem;
151166
border-radius: 50%;
152167
}
153168

154169
.shopping-cart h3 {
155170
font-size: 1.4rem;
156-
padding-bottom: 0.5rem;
157171
}
158172

159173
.shopping-cart .item-price {
160174
font-size: 1rem;
161175
}
162176

163-
.shopping-cart .remove-item {
164-
position: absolute;
165-
right: 1rem;
166-
font-size: 1.2rem;
177+
.shopping-cart .cart-item #add,
178+
.shopping-cart .cart-item #remove {
179+
display: inline-block;
180+
padding: 2px 5px;
167181
cursor: pointer;
168-
color: var(--bg);
169-
transition: 0.3s;
182+
margin: 0 8px;
183+
background-color: var(--primary);
184+
color: white;
185+
font-weight: bold;
186+
font-size: 1rem;
187+
border-radius: 6px;
170188
}
171189

172-
.shopping-cart .remove-item:hover {
173-
color: var(--primary);
190+
.shopping-cart h4 {
191+
font-size: 1.6rem;
192+
margin-top: -1rem;
193+
text-align: center;
194+
}
195+
196+
/* Checkout Form */
197+
.form-container {
198+
width: 100%;
199+
display: flex;
200+
justify-content: center;
201+
border-top: 1px dashed black;
202+
margin-top: 1rem;
203+
padding: 1rem;
204+
}
205+
206+
.form-container h5 {
207+
text-align: center;
208+
font-size: 1rem;
209+
}
210+
211+
.form-container form {
212+
width: 100%;
213+
text-align: center;
214+
}
215+
216+
.form-container label {
217+
display: flex;
218+
justify-content: space-around;
219+
align-items: center;
220+
margin: 1rem 0;
221+
}
222+
223+
.form-container span {
224+
text-align: right;
225+
}
226+
227+
.form-container input {
228+
background-color: #ddd;
229+
padding: 5px;
230+
font-size: 0.9rem;
231+
width: 70%;
232+
}
233+
234+
.form-container .checkout-button {
235+
display: block;
236+
padding: 6px 14px;
237+
background-color: var(--primary);
238+
color: white;
239+
font-weight: bold;
240+
font-size: 0.9rem;
241+
border-radius: 20px;
242+
margin: 1rem auto;
243+
cursor: pointer;
174244
}
175245

176246
/* Hero Section */
@@ -408,12 +478,6 @@ body {
408478
font-weight: 700;
409479
}
410480

411-
.products .product-price span {
412-
text-decoration: line-through;
413-
font-weight: lighter;
414-
font-size: 1rem;
415-
}
416-
417481
/* Contact Section */
418482
.contact .row {
419483
display: flex;

img/feather-sprite.svg

Lines changed: 1 addition & 0 deletions
Loading

img/products/1.jpg

-38.9 KB
Loading

img/products/2.jpg

28 KB
Loading

img/products/3.jpg

43.4 KB
Loading

img/products/4.jpg

36.9 KB
Loading

img/products/5.jpg

99.9 KB
Loading

0 commit comments

Comments
 (0)