refactor: update EmptyState and PublicOfferingCard components for improved UI consistency
- Enhanced the EmptyState component by adjusting button properties to include left icons for better visual alignment. - Refactored the PublicOfferingCard component to simplify the layout of pricing notes, improving readability and consistency in design. - Made minor adjustments to spacing and layout properties across both components to enhance overall user experience.
This commit is contained in:
parent
88ca636b59
commit
de5a210e6f
@ -58,13 +58,20 @@ export function EmptyState({
|
|||||||
|
|
||||||
{action &&
|
{action &&
|
||||||
(action.href ? (
|
(action.href ? (
|
||||||
<Button as="a" href={action.href} size={isCompact ? "sm" : "default"}>
|
<Button
|
||||||
<PlusIcon className="h-4 w-4 mr-2" />
|
as="a"
|
||||||
|
href={action.href}
|
||||||
|
size={isCompact ? "sm" : "default"}
|
||||||
|
leftIcon={<PlusIcon className="h-4 w-4" />}
|
||||||
|
>
|
||||||
{action.label}
|
{action.label}
|
||||||
</Button>
|
</Button>
|
||||||
) : (
|
) : (
|
||||||
<Button onClick={action.onClick} size={isCompact ? "sm" : "default"}>
|
<Button
|
||||||
<PlusIcon className="h-4 w-4 mr-2" />
|
onClick={action.onClick}
|
||||||
|
size={isCompact ? "sm" : "default"}
|
||||||
|
leftIcon={<PlusIcon className="h-4 w-4" />}
|
||||||
|
>
|
||||||
{action.label}
|
{action.label}
|
||||||
</Button>
|
</Button>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@ -132,7 +132,7 @@ function PublicTierCard({ tier }: { tier: TierInfo }) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="mb-2">
|
<div className="mb-2">
|
||||||
<div className="flex items-baseline gap-0.5 flex-wrap">
|
<div className="flex items-baseline gap-0.5">
|
||||||
<span className="text-lg font-bold text-foreground">
|
<span className="text-lg font-bold text-foreground">
|
||||||
¥{tier.monthlyPrice.toLocaleString()}
|
¥{tier.monthlyPrice.toLocaleString()}
|
||||||
{tier.maxMonthlyPrice &&
|
{tier.maxMonthlyPrice &&
|
||||||
@ -140,10 +140,11 @@ function PublicTierCard({ tier }: { tier: TierInfo }) {
|
|||||||
`~${tier.maxMonthlyPrice.toLocaleString()}`}
|
`~${tier.maxMonthlyPrice.toLocaleString()}`}
|
||||||
</span>
|
</span>
|
||||||
<span className="text-[10px] text-muted-foreground">/mo</span>
|
<span className="text-[10px] text-muted-foreground">/mo</span>
|
||||||
|
</div>
|
||||||
{tier.pricingNote && (
|
{tier.pricingNote && (
|
||||||
<span
|
<span
|
||||||
className={cn(
|
className={cn(
|
||||||
"text-[10px] ml-1",
|
"text-[10px] block",
|
||||||
tier.tier === "Platinum" ? "text-primary" : "text-amber-600"
|
tier.tier === "Platinum" ? "text-primary" : "text-amber-600"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
@ -151,7 +152,6 @@ function PublicTierCard({ tier }: { tier: TierInfo }) {
|
|||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<p className="text-[11px] text-muted-foreground mb-2">{tier.description}</p>
|
<p className="text-[11px] text-muted-foreground mb-2">{tier.description}</p>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user