mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-16 20:49:23 +00:00
refactor!: refine spacings
BREAKING CAHNGE: some spaces changed
This commit is contained in:
@@ -7,14 +7,16 @@ export type ToolCardProps = Pick<Tool, "Icon" | "longTitle" | "description" | "h
|
||||
export function ToolCard({ Icon, longTitle, description, href }: ToolCardProps) {
|
||||
return (
|
||||
<Link className="rounded" {...{ href }}>
|
||||
<div className="group flex h-80 w-44 flex-col items-center overflow-hidden rounded border bg-card p-5 pt-0 text-card-foreground hover:bg-card-hover">
|
||||
<div className="flex h-44 shrink-0 items-center">
|
||||
<div className="group flex h-80 w-44 flex-col items-center gap-5 overflow-hidden rounded border bg-card p-5 text-card-foreground hover:bg-card-hover">
|
||||
<div className="flex flex-col p-5">
|
||||
<div className="rounded bg-card-icon p-4 group-hover:bg-card-icon-hover">
|
||||
<Icon size={64} />
|
||||
</div>
|
||||
</div>
|
||||
<h2 className="w-full font-semibold">{longTitle}</h2>
|
||||
<p className="mt-1.5 w-full text-xs text-card-muted-foreground">{description}</p>
|
||||
<div className="flex flex-1 flex-col gap-1.5">
|
||||
<h2 className="font-semibold">{longTitle}</h2>
|
||||
<p className="text-xs text-card-muted-foreground">{description}</p>
|
||||
</div>
|
||||
</div>
|
||||
</Link>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user