style(subscription): refine plan card layout
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.userSlot {
|
.userSlot {
|
||||||
padding: var(--spacing-md, 12px) 0;
|
padding: 25px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cardSlot {
|
.cardSlot {
|
||||||
|
|||||||
@@ -3,10 +3,12 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
height: 154px;
|
||||||
padding: var(--spacing-sm) var(--spacing-xs) 0;
|
padding: var(--spacing-sm) var(--spacing-xs) 0;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
border-radius: var(--radius-lg);
|
border-radius: 13px;
|
||||||
|
border-style: solid;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -27,14 +29,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.selected {
|
.selected {
|
||||||
border-color: var(--color-accent);
|
border-color: #f657a0;
|
||||||
border-width: 2px;
|
border-width: 3px;
|
||||||
box-shadow: 0 6px 16px rgba(248, 77, 150, 0.28);
|
box-shadow: 0 3px 5px rgba(247, 89, 168, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.firstSelected {
|
||||||
|
padding-top: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
margin: 0 0 var(--spacing-xs);
|
margin-top: var(--spacing-xl);
|
||||||
font-size: var(--font-size-sm);
|
font-size: var(--font-size-md);
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: var(--color-auth-text-primary);
|
color: var(--color-auth-text-primary);
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
@@ -44,6 +50,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
margin-top: 20px;
|
||||||
gap: 2px;
|
gap: 2px;
|
||||||
color: #000;
|
color: #000;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
@@ -72,10 +79,11 @@
|
|||||||
|
|
||||||
.perDayBar {
|
.perDayBar {
|
||||||
align-self: stretch;
|
align-self: stretch;
|
||||||
margin: 0 calc(-1 * var(--spacing-xs)) 0;
|
margin: auto calc(-1 * var(--spacing-xs)) 0;
|
||||||
padding: 6px 0;
|
padding: 6px 0;
|
||||||
|
border-radius: 0 0 13px 13px;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
font-size: var(--font-size-xs);
|
font-size: var(--font-size-md);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ export function SubscriptionPlanCard({
|
|||||||
const classes = [
|
const classes = [
|
||||||
styles.card,
|
styles.card,
|
||||||
selected ? styles.selected : "",
|
selected ? styles.selected : "",
|
||||||
|
selected && gradientIndex === 0 ? styles.firstSelected : "",
|
||||||
className,
|
className,
|
||||||
]
|
]
|
||||||
.filter(Boolean)
|
.filter(Boolean)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
min-height: 100dvh;
|
min-height: 100dvh;
|
||||||
background: var(--color-page-background);
|
background: var(--color-page-background);
|
||||||
padding: 30px 20px 10px;
|
padding: 30px 30px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
@@ -44,10 +44,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.autoRenewCaption {
|
.autoRenewCaption {
|
||||||
margin: var(--spacing-md) 0 0;
|
margin-top: var(--spacing-xxl);
|
||||||
padding: 0 var(--spacing-xs);
|
padding: 0 var(--spacing-xs);
|
||||||
font-size: var(--font-size-sm);
|
font-size: var(--font-size-md);
|
||||||
color: var(--color-text-secondary);
|
color: #3c3b3b;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user