Skip to content

Commit

Permalink
Merge pull request #1232 from dhruv8433/cart-ui
Browse files Browse the repository at this point in the history
Cart UI
  • Loading branch information
sunny0625 authored Jul 2, 2024
2 parents 8a3504a + 39bf255 commit ea1a899
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 3 deletions.
22 changes: 20 additions & 2 deletions Css-files/cart.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

* {
box-sizing: border-box;
font-family: "Bree Serif", serif;
Expand Down Expand Up @@ -126,7 +128,7 @@
}
input,
textarea {
width: 100%;
/* width: 100%; */
}
.coupen {
position: fixed;
Expand Down Expand Up @@ -218,4 +220,20 @@ background-size: 100% 100%;}
transparent 100%,
rgb(247, 4, 4) 75%,
transparent)
}
}


.playfair{
font-family: "Playfair Display", serif;
}

.row{
width: 80%;
}

@media screen and (max-width: 600px) {
.row {
width: 100%;
}

}
54 changes: 53 additions & 1 deletion Html-files/cart.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,67 @@ <h1>C A R T</h1>
<p>Use coupon code <b>qN6FVAn4</b> for 30% off!</p>
</div>

<div class="cart">
<!-- <div class="cart">
<div class="empty-cart">
</div>
<div class="cart-details">
<div id="cart-items">
</div>
<div id="cart-total"></div>
</div>
</div> -->

<div class="row" style="margin-top: 40px;">
<div class="col-md-7">
<h2 class="playfair">Shopping Cart</h2>
<table class="table table-bordered mt-4">
<div class="empty-cart">
<tbody>
<tr>
<div id="cart-items">
</tr>
</tbody>
</table>
<div class="total mt-3">
<p>Subtotal: $149.96</p>
<p>Shipping: $0</p>
<p><strong>Total: $149.96</strong></p>
</div>
<button class="btn btn-outline-primary mt-3">Continue Shopping</button>
</div>
<div class="col-md-5">
<h2 class="playfair">Payment Info</h2>
<div class="card mt-4 p-3">
<div class="mb-3">
<label class="form-label">Payment Method</label>
<div>
<input type="radio" name="paymentMethod" id="creditCard" checked>
<label for="creditCard">Credit Card</label>
<input type="radio" name="paymentMethod" id="paypal" style="margin-left: 10px;">
<label for="paypal">PayPal</label>
</div>
</div>
<div class="mb-3">
<label for="nameOnCard" class="form-label">Name on Card</label>
<input type="text" class="form-control" id="nameOnCard" placeholder="Name on Card">
</div>
<div class="mb-3">
<label for="cardNumber" class="form-label">Card Number</label>
<input type="text" class="form-control" id="cardNumber" placeholder="Card Number">
</div>
<div class="mb-3">
<label for="expirationDate" class="form-label">Expiration Date</label>
<input type="text" class="form-control" id="expirationDate" placeholder="MM/YY">
</div>
<div class="mb-3">
<label for="cvv" class="form-label">CVV</label>
<input type="text" class="form-control" id="cvv" placeholder="CVV">
</div>
<button class="btn btn-primary">Check Out</button>
</div>
</div>
</div>
</div>


<!-- Input Section For Coupon Code -->
Expand Down

0 comments on commit ea1a899

Please sign in to comment.