- {faqs.map((item) => (
-
- {item.q}
- {item.a}
-
- ))}
+
+
+
+
FAQ
+
سوالات متداول
+
+
+
+ {faqs.map((item, index) => (
+
+
+
+ {String(index + 1).padStart(2, "0")}
+
+
+
+
+ ))}
+
);
diff --git a/src/components/FeaturedCategories.tsx b/src/components/FeaturedCategories.tsx
index 6d9d2cd..41ed4be 100644
--- a/src/components/FeaturedCategories.tsx
+++ b/src/components/FeaturedCategories.tsx
@@ -1,7 +1,6 @@
import { categories } from "@/data/content";
import { toFaDigits } from "@/lib/format";
import {
- imageAlt,
slotHref,
slotImages,
type StaticImageSlot,
@@ -19,11 +18,14 @@ export function FeaturedCategories({ slot }: Props) {
images.length > 0
? images.map((image, index) => {
const fallback = categories[index];
+ const titleFa = (image.titleFa || image.title || fallback?.title || "").trim();
+ const titleEn = (image.titleEn || "").trim();
return {
id: image.id,
image,
fallbackSrc: fallback?.image ?? categories[0].image,
- title: imageAlt(image, fallback?.title ?? ""),
+ titleFa,
+ titleEn: titleFa && titleEn && titleEn !== titleFa ? titleEn : "",
href: slotHref(image) || "#",
count: fallback?.count,
subtext: image.subtext,
@@ -33,7 +35,8 @@ export function FeaturedCategories({ slot }: Props) {
id: category.id,
image: undefined,
fallbackSrc: category.image,
- title: category.title,
+ titleFa: category.title,
+ titleEn: category.titleEn && category.titleEn !== category.title ? category.titleEn : "",
href: "#",
count: category.count,
subtext: undefined as string | null | undefined,
@@ -52,14 +55,23 @@ export function FeaturedCategories({ slot }: Props) {
-
{item.title}
+
{item.titleFa}
+ {item.titleEn ? (
+
+ {item.titleEn}
+
+ ) : null}
{item.subtext ? (
{item.subtext}
) : item.count != null ? (
diff --git a/src/components/Icons.tsx b/src/components/Icons.tsx
index 1bad6ef..ce3aa48 100644
--- a/src/components/Icons.tsx
+++ b/src/components/Icons.tsx
@@ -158,6 +158,14 @@ export function IconPlus({ className = "size-5" }: IconProps) {
);
}
+export function IconMinus({ className = "size-5" }: IconProps) {
+ return (
+
+ );
+}
+
export function IconClose({ className = "size-6" }: IconProps) {
return (