fix some bug in some blocks

This commit is contained in:
mr.sabri
2026-07-23 06:55:21 +03:30
parent 89fbd6d158
commit edb3e10469
65 changed files with 1565 additions and 1476 deletions
+15 -8
View File
@@ -73,16 +73,16 @@ interface Feature257Props {
}
const ToolCard = ({ tool }: { tool: ToolItem }) => (
<CardSpotlight className="group flex h-96 flex-col items-start justify-between rounded-md border border-border bg-background p-2 text-start transition-all duration-300 hover:bg-black hover:text-white md:p-4">
<div className="z-10 rounded-md border border-border px-2 py-1 text-xs font-medium transition-colors duration-300 group-hover:border-white md:px-4 md:py-2 md:text-sm">
<CardSpotlight className="group flex h-96 min-w-0 flex-col items-start justify-between overflow-hidden rounded-md border border-border bg-background p-2 text-start transition-all duration-300 hover:bg-black hover:text-white md:p-4">
<div className="z-10 max-w-full rounded-md border border-border px-2 py-1 text-xs font-medium text-balance transition-colors duration-300 group-hover:border-white md:px-4 md:py-2 md:text-sm">
{tool.category}
</div>
<img
src={tool.logo}
alt={tool.imageAlt}
className="mx-auto mb-4 h-24 object-contain [filter:brightness(0)] transition-all duration-300 group-hover:[filter:brightness(1)_invert(1)] dark:invert"
className="mx-auto mb-4 h-24 max-w-full object-contain [filter:brightness(0)] transition-all duration-300 group-hover:[filter:brightness(1)_invert(1)] dark:invert"
/>
<h2 className="z-10 text-xl font-normal transition-colors duration-300 lg:text-3xl">
<h2 className="z-10 max-w-full text-xl font-normal text-balance transition-colors duration-300 lg:text-3xl">
{tool.name}
</h2>
</CardSpotlight>
@@ -90,14 +90,21 @@ const ToolCard = ({ tool }: { tool: ToolItem }) => (
const Feature257 = ({ className }: Feature257Props) => {
return (
<section dir="rtl" lang="fa" className={cn("bg-muted py-16 sm:py-32", className)}>
<div className="container">
<div className="grid grid-cols-1 gap-4 md:grid-cols-2">
<section
dir="rtl"
lang="fa"
className={cn(
"relative w-full overflow-hidden bg-muted py-16 sm:py-32",
className,
)}
>
<div className="container min-w-0">
<div className="grid min-w-0 grid-cols-1 gap-4 md:grid-cols-2">
{TOOLS.slice(0, 2).map((tool) => (
<ToolCard key={tool.id} tool={tool} />
))}
</div>
<div className="mt-4 grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3">
<div className="mt-4 grid min-w-0 grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3">
{TOOLS.slice(2, 9).map((tool) => (
<ToolCard key={tool.id} tool={tool} />
))}