anjam shod

This commit is contained in:
ahmadrezabd
2025-12-15 16:08:40 +03:30
parent b36f1cc22e
commit adc5122b0a
27 changed files with 450 additions and 389 deletions
+25 -25
View File
@@ -49,11 +49,11 @@ const tableData = [
export default function PricingComparator() {
return (
<section className="bg-white py-16 md:py-32">
<section className="bg-background py-16 md:py-32">
<div className="mx-auto max-w-5xl px-6">
<div className="w-full overflow-auto lg:overflow-visible">
<table className="w-[200vw] border-separate border-spacing-x-3 md:w-full dark:[--color-muted:var(--color-zinc-900)]">
<thead className="bg-background sticky top-0">
<table className="w-[200vw] border-separate border-spacing-x-3 md:w-full">
<thead className="bg-background sticky top-0 z-10">
<tr className="*:py-4 *:text-start *:font-medium">
<th className="lg:w-2/5"></th>
<th className="space-y-3">
@@ -63,7 +63,7 @@ export default function PricingComparator() {
<Link href="/login?utm_source=pricing-free">شروع کنید</Link>
</Button>
</th>
<th className="bg-muted rounded-t-(--radius) space-y-3 px-4">
<th className="bg-muted rounded-t-xl space-y-3 px-4 border dark:border-transparent border-border">
<span className="block">حرفه‌ای</span>
<Button asChild size="sm">
<Link href="/login?utm_source=pricing-professional">
@@ -88,19 +88,19 @@ export default function PricingComparator() {
<span>ویژگی‌ها</span>
</td>
<td></td>
<td className="bg-muted border-none px-4"></td>
<td className="bg-muted border-x dark:border-x-transparent border-border px-4"></td>
<td></td>
</tr>
{tableData.slice(-4).map((row, index) => (
<tr key={index} className="*:border-b *:py-3">
<tr key={index} className="*:border-b *:dark:border-b-transparent *:border-border *:py-3">
<td className="text-muted-foreground">{row.feature}</td>
<td>
<td className="text-foreground">
{row.free === true ? (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="currentColor"
className="size-4"
className="size-4 text-primary"
>
<path
fillRule="evenodd"
@@ -112,14 +112,14 @@ export default function PricingComparator() {
row.free
)}
</td>
<td className="bg-muted border-none px-4">
<div className="-mb-3 border-b py-3">
<td className="bg-muted border-x border-border px-4">
<div className="-mb-3 border-b dark:border-b-transparent border-border py-3">
{row.pro === true ? (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="currentColor"
className="size-4"
className="size-4 text-primary"
>
<path
fillRule="evenodd"
@@ -128,17 +128,17 @@ export default function PricingComparator() {
/>
</svg>
) : (
row.pro
<span className="text-foreground">{row.pro}</span>
)}
</div>
</td>
<td>
<td className="text-foreground">
{row.startup === true ? (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="currentColor"
className="size-4"
className="size-4 text-primary"
>
<path
fillRule="evenodd"
@@ -158,19 +158,19 @@ export default function PricingComparator() {
<span>مدل‌های هوش مصنوعی</span>
</td>
<td></td>
<td className="bg-muted border-none px-4"></td>
<td className="bg-muted border-x dark:border-x-transparent border-border px-4"></td>
<td></td>
</tr>
{tableData.map((row, index) => (
<tr key={index} className="*:border-b *:py-3">
<tr key={index} className="*:border-b *:dark:border-b-transparent *:border-border *:py-3">
<td className="text-muted-foreground">{row.feature}</td>
<td>
<td className="text-foreground">
{row.free === true ? (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="currentColor"
className="size-4"
className="size-4 text-primary"
>
<path
fillRule="evenodd"
@@ -182,14 +182,14 @@ export default function PricingComparator() {
row.free
)}
</td>
<td className="bg-muted border-none px-4">
<div className="-mb-3 border-b py-3">
<td className="bg-muted border-x border-border px-4">
<div className="-mb-3 border-b dark:border-b-transparent border-border py-3">
{row.pro === true ? (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="currentColor"
className="size-4"
className="size-4 text-primary"
>
<path
fillRule="evenodd"
@@ -198,17 +198,17 @@ export default function PricingComparator() {
/>
</svg>
) : (
row.pro
<span className="text-foreground">{row.pro}</span>
)}
</div>
</td>
<td>
<td className="text-foreground">
{row.startup === true ? (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="currentColor"
className="size-4"
className="size-4 text-primary"
>
<path
fillRule="evenodd"
@@ -225,7 +225,7 @@ export default function PricingComparator() {
<tr className="*:py-6">
<td></td>
<td></td>
<td className="bg-muted rounded-b-(--radius) border-none px-4"></td>
<td className="bg-muted rounded-b-xl border-x border-b dark:border-x-transparent dark:border-b-transparent border-border px-4"></td>
<td></td>
</tr>
</tbody>