fix layout and demo payment
This commit is contained in:
@@ -57,6 +57,11 @@ function PaymentForm({ clientSecret, totalAmount, onSuccess, onCancel }) {
|
|||||||
<p className="cart-payment-total">
|
<p className="cart-payment-total">
|
||||||
Total to pay: <strong>${parseFloat(totalAmount).toFixed(2)}</strong>
|
Total to pay: <strong>${parseFloat(totalAmount).toFixed(2)}</strong>
|
||||||
</p>
|
</p>
|
||||||
|
<div className="cart-demo-banner">
|
||||||
|
<strong>Demo mode</strong> — no real charge. Use test card:
|
||||||
|
<span className="cart-demo-card">4242 4242 4242 4242</span>
|
||||||
|
· any future date · any 3-digit CVC
|
||||||
|
</div>
|
||||||
<PaymentElement />
|
<PaymentElement />
|
||||||
{payError && <p className="cart-error-msg">{payError}</p>}
|
{payError && <p className="cart-error-msg">{payError}</p>}
|
||||||
<div className="cart-payment-actions">
|
<div className="cart-payment-actions">
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ body {
|
|||||||
|
|
||||||
.image-links-container {
|
.image-links-container {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(4, 1fr);
|
grid-template-columns: repeat(3, 1fr);
|
||||||
gap: 2rem;
|
gap: 2rem;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
@@ -710,6 +710,7 @@ body {
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 0 2rem 4rem;
|
padding: 0 2rem 4rem;
|
||||||
display: grid;
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
gap: 1.5rem;
|
gap: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -884,11 +885,15 @@ body {
|
|||||||
.slideshow-container {
|
.slideshow-container {
|
||||||
height: 300px;
|
height: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.image-links-container {
|
.image-links-container {
|
||||||
grid-template-columns: repeat(2, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
gap: 1.5rem;
|
gap: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.info-content {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
.main-title {
|
.main-title {
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
@@ -2637,6 +2642,25 @@ body {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cart-demo-banner {
|
||||||
|
background: #fffbeb;
|
||||||
|
border: 1px solid #fcd34d;
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 0.6rem 0.9rem;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
color: #78350f;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cart-demo-card {
|
||||||
|
font-family: monospace;
|
||||||
|
font-weight: 700;
|
||||||
|
margin: 0 0.25rem;
|
||||||
|
background: #fef3c7;
|
||||||
|
padding: 0.1rem 0.35rem;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
.cart-payment-actions {
|
.cart-payment-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
Reference in New Issue
Block a user