diff --git a/messages/fa.json b/messages/fa.json index a242b87..95108fa 100644 --- a/messages/fa.json +++ b/messages/fa.json @@ -20,6 +20,10 @@ "title": "دسته بندی ها", "description": "از بین صدها مرکز زیبایی، دقیقا همونی که میخای رو پیدا کن." }, + "Salons": { + "title": "سالن ها و کلینیک های زیبایی", + "description": "از بین صدها مرکز، دقیقا همونی که میخای رو پیدا کن." + }, "Reservation": { "title": "رزرو خدمات زیبایی، ساده\u200Cتر از همیشه", "stations": "مراکز معتبر", diff --git a/public/images/salons/salon.jpg b/public/images/salons/salon.jpg new file mode 100644 index 0000000..68ebe9d Binary files /dev/null and b/public/images/salons/salon.jpg differ diff --git a/src/components/Home/Desktop/Categories/CarouselComponent.tsx b/src/components/Home/Desktop/Categories/CarouselComponent.tsx index 2a222c6..240b362 100644 --- a/src/components/Home/Desktop/Categories/CarouselComponent.tsx +++ b/src/components/Home/Desktop/Categories/CarouselComponent.tsx @@ -68,7 +68,7 @@ export function CarouselComponent({ title, description }: Props) { {categories.map((category) => ( + + {/* 🔥 Animated Header */} + + + +
+

{title}

+

{description}

+
+
+
+ + {/* 🔥 Animated Carousel Items */} + + + {salons.map((category) => ( + + + + + + + {category.salon_name} + + +

{category.salon_name}

+
+
+
+
+
+ ))} +
+
+ + {/* 🔥 Animated Controls */} + + + + + + + + +
+ + ); +} diff --git a/src/components/Home/Desktop/Salons/index.tsx b/src/components/Home/Desktop/Salons/index.tsx new file mode 100644 index 0000000..d8c1c09 --- /dev/null +++ b/src/components/Home/Desktop/Salons/index.tsx @@ -0,0 +1,14 @@ +import { CarouselComponent } from "./CarouselComponent"; +import { useTranslations } from "next-intl"; + +const Salons = () => { + const t = useTranslations("Salons"); + + return ( +
+ +
+ ); +}; + +export default Salons; diff --git a/src/components/Home/Desktop/index.tsx b/src/components/Home/Desktop/index.tsx index 3e409c5..a3fffcb 100644 --- a/src/components/Home/Desktop/index.tsx +++ b/src/components/Home/Desktop/index.tsx @@ -1,6 +1,7 @@ import BannerComponent from "./Banner"; -import Categories from "@/components/Home/Desktop/Categories"; -import Reservation from "@/components/Home/Desktop/Reservation"; +import Categories from "./Categories"; +import Reservation from "./Reservation"; +import Salons from "./Salons"; export default function DesktopHome() { return ( @@ -8,6 +9,7 @@ export default function DesktopHome() { + ); } diff --git a/src/data/mockCategories.ts b/src/data/mockCategories.ts index 89cc469..3dc7450 100644 --- a/src/data/mockCategories.ts +++ b/src/data/mockCategories.ts @@ -45,3 +45,59 @@ export const categories = [ image: "/images/categories/ژل.jpg", }, ]; +export const salons = [ + { + id: 1, + salon_name: "سالن همارو", + rate : "4", + image: "/images/salons/salon.jpg", + }, + { + id: 2, + salon_name: "سالن بیوتی", + rate : "4", + image: "/images/salons/salon.jpg", + }, + { + id: 3, + rate : "4", + salon_name: "سالن عروس", + image: "/images/salons/salon.jpg", + }, + { + id: 4, + rate : "4", + salon_name: "سالن فیشیال", + image: "/images/salons/salon.jpg", + }, + { + id: 5, + rate : "4", + salon_name: "سالن زیبایی", + image: "/images/salons/salon.jpg", + }, + { + id: 7, + rate : "4", + salon_name: "سالن همارو", + image: "/images/salons/salon.jpg", + }, + { + id: 8, + rate : "4", + salon_name: "سالن عروس", + image: "/images/salons/salon.jpg", + }, + { + id: 9, + rate : "4", + salon_name: "سالن بیوتی", + image: "/images/salons/salon.jpg", + }, + { + id: 10, + rate : "4", + salon_name: "سالن بیوتی", + image: "/images/salons/salon.jpg", + }, +];