From 7dc2e85fe54ab5a6b7f19de57a9e87febffca470 Mon Sep 17 00:00:00 2001 From: 65160381 <65160381@go.buu.ac.th> Date: Tue, 25 Mar 2025 02:33:27 +0700 Subject: [PATCH] 8.6 --- public/cart.html | 4 ++-- public/checkout.html | 6 ++++-- public/styles/home.css | 13 +++++++++++++ 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/public/cart.html b/public/cart.html index 4f90180..0a23d78 100644 --- a/public/cart.html +++ b/public/cart.html @@ -15,10 +15,10 @@ <!-- Cart items will be dynamically loaded here --> </div> - <button> + <button > <div class="checkout" onclick="goToCheckout()">Checkout</div> </button> - + <footer> <p>© 2025 ASA</p> diff --git a/public/checkout.html b/public/checkout.html index 3780870..feb2bd8 100644 --- a/public/checkout.html +++ b/public/checkout.html @@ -14,10 +14,12 @@ <div class="cart-items" id="cart-items"> <!-- Cart items will be dynamically loaded here --> </div> - + <button > + <div class="checkout-button" onclick="processCheckout()">Confirm and Checkout</div> + </button> <footer> <p>© 2025 ASA</p> - <div class="checkout-button" onclick="processCheckout()">Confirm and Checkout</div> + </footer> <script> diff --git a/public/styles/home.css b/public/styles/home.css index e30a3b8..fa77f24 100644 --- a/public/styles/home.css +++ b/public/styles/home.css @@ -13,6 +13,19 @@ body { min-height: 100vh; } +button { + width: 100%; + padding: 15px; + background-color: #ff7e5f; + color: white; + font-size: 18px; + font-weight: 500; + border: none; + border-radius: 8px; + cursor: pointer; + transition: background-color 0.3s ease; +} + /* Header */ header { width: 100%; -- GitLab