Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor FreeTrialCard component layout and styles #340

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions components/dashboard/freetrial-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,18 @@ export default function FreeTrialCard({
return (
<Card className="overflow-auto bg-gray-100/10 text-card-foreground">
<div className="grid gap-4">
<CardHeader className="flex-row justify-between pb-4">
<CardTitle className="text-xl font-semibold">
<CardHeader className="flex flex-col items-start justify-between gap-3 pb-4 sm:flex-row sm:items-center sm:gap-4">
<CardTitle className="text-lg font-semibold sm:text-xl">
Subscription & Usage
</CardTitle>
<Badge
variant="secondary"
className="border-primary-800 bg-primary-800/10 px-2 py-1 text-xs text-primary-800"
className="whitespace-nowrap border-primary-800 bg-primary-800/10 px-2 py-1 text-xs text-primary-800 sm:text-sm"
>
Free Trial
</Badge>
</CardHeader>

<CardContent>
<div className="mb-4">
<div className="flex justify-between">
Expand Down