Improve subscription UI with large tier buttons

- Replace dropdown tier selection with attractive visual buttons
- Add tier-button CSS with hover effects and selection states
- Remove 'or pay by card' divider from subscription form for cleaner UI
- Update JavaScript to handle tier button selection events
- Fix Stripe module import conflict by renaming stripe directory to stripe_config
- Add responsive grid layout for tier buttons on mobile devices
This commit is contained in:
2025-10-07 17:22:51 +01:00
parent bfdcee8602
commit 3ddbc40bb5
2655 changed files with 516264 additions and 2 deletions

View File

@@ -842,3 +842,169 @@ button {
cursor: pointer;
}
#result { margin-top: 12px; min-height: 20px; }
/* Payment Type Tabs */
.payment-type-tabs {
display: flex;
margin-bottom: 24px;
border-radius: 12px;
overflow: hidden;
border: 1px solid var(--border-color);
}
.tab-button {
flex: 1;
padding: 12px 16px;
border: none;
background: var(--bg-secondary);
color: var(--text-secondary);
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: all 0.2s ease;
}
.tab-button.active {
background: var(--accent);
color: white;
}
.tab-button:hover:not(.active) {
background: var(--border-color);
color: var(--text-primary);
}
/* Payment Forms */
.payment-form {
display: none;
}
.payment-form.active {
display: block;
}
/* Subscription specific styles */
#subscription-form select {
margin-bottom: 16px;
}
#subscription-form input[type="email"] {
margin-bottom: 16px;
}
/* Subscription result styling */
#subscription-result {
margin-top: 16px;
padding: 12px;
border-radius: 8px;
font-weight: 500;
}
/* Tier Button Styling */
.tier-buttons {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin: 20px 0;
}
.tier-button {
background: var(--bg-secondary);
border: 2px solid var(--border-color);
border-radius: 16px;
padding: 24px 20px;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.tier-button:hover {
border-color: var(--accent);
background: var(--bg-input);
transform: translateY(-2px);
box-shadow: 0 8px 25px var(--shadow);
}
.tier-button.selected {
border-color: var(--accent);
background: var(--accent);
color: white;
transform: translateY(-2px);
box-shadow: 0 8px 25px var(--shadow);
}
.tier-button.selected .tier-description {
color: rgba(255, 255, 255, 0.9);
}
.tier-icon {
font-size: 32px;
margin-bottom: 8px;
}
.tier-name {
font-size: 20px;
font-weight: 600;
margin-bottom: 4px;
color: var(--text-primary);
}
.tier-button.selected .tier-name {
color: white;
}
.tier-price {
font-size: 24px;
font-weight: 700;
margin-bottom: 8px;
color: var(--accent);
}
.tier-button.selected .tier-price {
color: white;
}
.tier-period {
font-size: 14px;
font-weight: 400;
opacity: 0.8;
}
.tier-description {
font-size: 12px;
color: var(--text-secondary);
line-height: 1.4;
margin-top: 8px;
}
/* Mobile responsive */
@media (max-width: 768px) {
.tier-buttons {
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.tier-button {
padding: 20px 16px;
}
.tier-icon {
font-size: 28px;
}
.tier-name {
font-size: 18px;
}
.tier-price {
font-size: 20px;
}
}
@media (max-width: 480px) {
.tier-buttons {
grid-template-columns: 1fr;
}
}