diff --git a/public/locales/en/setting.json b/public/locales/en/setting.json index 772b973..b703306 100644 --- a/public/locales/en/setting.json +++ b/public/locales/en/setting.json @@ -147,6 +147,10 @@ "harmonyClub": { "title": "Harmony Club", "description": "Encourage repeat purchases by sending discount codes and points to your customers." + }, + "harmonyBook": { + "title": "Harmony Book", + "description": "Improve customer engagement and smooth the path to growth and development of your business by making the scheduling process smarter." } } } \ No newline at end of file diff --git a/public/locales/fa/setting.json b/public/locales/fa/setting.json index 31db3be..ece788a 100644 --- a/public/locales/fa/setting.json +++ b/public/locales/fa/setting.json @@ -147,6 +147,10 @@ "harmonyClub": { "title": "هارمونی کلاب", "description": "با ارسال کد تخفیف و امتیاز به مشتریان کسب و کارتان آنها را به خرید مجدد ترغیب کنید" + }, + "harmonyBook": { + "title": "هارمونی بوک", + "description": "با هوشمندسازی فرایند نوبت‌دهی، تعامل با مشتری را بهبود بخشیده و مسیر رشد و توسعه کسب‌و‌کارتان را هموارتر کنید" } } } \ No newline at end of file diff --git a/src/assets/book-logo.png b/src/assets/book-logo.png new file mode 100644 index 0000000..0d05874 Binary files /dev/null and b/src/assets/book-logo.png differ diff --git a/src/assets/club-logo.png b/src/assets/club-logo.png new file mode 100644 index 0000000..551edea Binary files /dev/null and b/src/assets/club-logo.png differ diff --git a/src/components/layout/ProductsMenu.tsx b/src/components/layout/ProductsMenu.tsx index dd07492..7f5353d 100644 --- a/src/components/layout/ProductsMenu.tsx +++ b/src/components/layout/ProductsMenu.tsx @@ -1,4 +1,4 @@ -import { Menu, Stack, Typography, Box, Button } from '@mui/material'; +import { Menu, Stack, Typography, Box, Button, lighten } from '@mui/material'; import { blue } from '@mui/material/colors'; import { Icon } from '@harmony/kit'; import { ArrowLeft, ArrowRight } from 'iconsax-react'; @@ -43,15 +43,13 @@ export default function ProductsMenu({ }, }} > - {/* 1. Header Link */} {t('products.menu.title')} - - {/* 2. Map through products to create MenuItems */} + {productsData.map((product) => ( - {/* Text Content */} {t(product.titleKey)} @@ -71,7 +68,6 @@ export default function ProductsMenu({ href={product.demoLink} target="_blank" variant="text" - color="club" endIcon={ {t('products.menu.getDemo')} @@ -89,7 +90,7 @@ export default function ProductsMenu({ {product.LogoComponent} ))} - + ); } diff --git a/src/data/products.tsx b/src/data/products.tsx index 9deaf16..3d2f469 100644 --- a/src/data/products.tsx +++ b/src/data/products.tsx @@ -1,4 +1,5 @@ import Logo from '@/components/Logo'; +import { Box } from '@mui/material'; import type { ReactElement } from 'react'; export interface Product { @@ -7,6 +8,7 @@ export interface Product { descriptionKey: string; LogoComponent: ReactElement; demoLink: string; + color: string; } export const productsData: Product[] = [ @@ -14,8 +16,29 @@ export const productsData: Product[] = [ id: 'harmony-club', titleKey: 'products.harmonyClub.title', descriptionKey: 'products.harmonyClub.description', - LogoComponent: , // Reference the component - demoLink: 'https://club.business-harmony.com', + LogoComponent: ( + + ), // Reference the component + demoLink: 'https://business-harmony.com/club/', + color: '#ff5722', + }, + { + id: 'harmony-book', + titleKey: 'products.harmonyBook.title', + descriptionKey: 'products.harmonyBook.description', + LogoComponent: ( + + ), // Reference the component + demoLink: 'https://business-harmony.com/book/', + color: '#d3365d', }, // add more products here ];