feat: update copyright year placeholders and enhance footer styling; add new project titles and descriptions in Persian; implement locale handling in various components
This commit is contained in:
@@ -5,13 +5,14 @@ import images from '@/assets/images/images';
|
||||
import AchievementTextBox from '@/components/layout/achievementTextBox';
|
||||
import SectionTitle from '@/components/layout/sectionTitle';
|
||||
import Button from '@/components/uikit/button';
|
||||
import { TLocales } from '@/models/layout';
|
||||
import { useTranslations } from 'next-intl';
|
||||
import { useParams } from 'next/navigation';
|
||||
|
||||
export default function AboutTopInfo() {
|
||||
const t = useTranslations();
|
||||
const params = useParams();
|
||||
const locale = params.locale as string;
|
||||
const locale = params.locale as TLocales;
|
||||
const routes = routeFactory(t, locale);
|
||||
|
||||
const topInfoAchievementTitles = [
|
||||
@@ -34,6 +35,7 @@ export default function AboutTopInfo() {
|
||||
title={t('pages_about_title')}
|
||||
description={t('com_about_info_title')}
|
||||
description_bold={t('com_about_info_title_bold')}
|
||||
locale={locale}
|
||||
/>
|
||||
</div>
|
||||
<div className="mt-3">
|
||||
@@ -72,6 +74,7 @@ export default function AboutTopInfo() {
|
||||
title={t('pages_about_title')}
|
||||
description={t('com_about_info_title')}
|
||||
description_bold={t('com_about_info_title_bold')}
|
||||
locale={locale}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -2,10 +2,14 @@
|
||||
|
||||
import SectionTitle from '@/components/layout/sectionTitle';
|
||||
import { Icon } from '@/components/uikit/icons';
|
||||
import { TLocales } from '@/models/layout';
|
||||
import { useTranslations } from 'next-intl';
|
||||
import { useParams } from 'next/navigation';
|
||||
|
||||
const TouchUs = () => {
|
||||
const t = useTranslations();
|
||||
const params = useParams();
|
||||
const locale = params.locale as TLocales;
|
||||
|
||||
return (
|
||||
<div className="w-full p-8 md:w-1/2">
|
||||
@@ -13,6 +17,7 @@ const TouchUs = () => {
|
||||
title={t('pages_contact_title')}
|
||||
description={t('com_contact_touch_title')}
|
||||
description_bold={t('com_contact_touch_title_bold')}
|
||||
locale={locale}
|
||||
/>
|
||||
<p className="mt-4 mb-10 text-base font-normal text-gray-600">
|
||||
{t('com_contact_touch_description')}
|
||||
|
||||
@@ -4,6 +4,8 @@ import images from '@/assets/images/images';
|
||||
import SectionTitle from '@/components/layout/sectionTitle';
|
||||
import Image from 'next/image';
|
||||
import { useTranslations } from 'next-intl';
|
||||
import { useParams } from 'next/navigation';
|
||||
import { TLocales } from '@/models/layout';
|
||||
|
||||
export default function HomeStorySection({
|
||||
className = '',
|
||||
@@ -11,6 +13,8 @@ export default function HomeStorySection({
|
||||
className?: string;
|
||||
}) {
|
||||
const t = useTranslations();
|
||||
const params = useParams();
|
||||
const locale = params.locale as TLocales;
|
||||
|
||||
const statisticsData = [
|
||||
{
|
||||
@@ -36,6 +40,7 @@ export default function HomeStorySection({
|
||||
title={t('com_home_story_title')}
|
||||
description={t('com_home_story_slogan')}
|
||||
description_bold={t('com_home_story_slogan_bold')}
|
||||
locale={locale}
|
||||
/>
|
||||
<div className="grid grid-cols-2 gap-3">
|
||||
{[images.homeBanner, images.aboutImg_1].map((e, i) => (
|
||||
|
||||
@@ -5,7 +5,6 @@ import { getProductCategories } from '@/services/products';
|
||||
import Link from 'next/link';
|
||||
import routeFactory from '@/assets/constants/routeFactory';
|
||||
import { getTranslations } from 'next-intl/server';
|
||||
import { ILayoutLocaleParams } from '@/models/layout';
|
||||
import { TLocales } from '@/models/layout';
|
||||
|
||||
interface Props {
|
||||
@@ -30,6 +29,7 @@ export default async function HomePageProducts({ locale }: Props) {
|
||||
title={t('pages_product_categories_title')}
|
||||
description={t('com_home_products_title')}
|
||||
reverseColor
|
||||
locale={locale}
|
||||
/>
|
||||
<h4 className="pt-6 text-base font-extralight tracking-normal text-white lg:pt-10">
|
||||
{t('com_home_products_description')}
|
||||
|
||||
@@ -20,6 +20,7 @@ export default async function HomePageProjects({ locale }: Props) {
|
||||
title={t('pages_projects_title')}
|
||||
description={t('com_home_projects_title')}
|
||||
description_bold={t('com_home_projects_title_bold')}
|
||||
locale={locale}
|
||||
/>
|
||||
<h4 className="pt-10 text-base font-extralight tracking-normal max-lg:hidden">
|
||||
{t('com_home_projects_description')}
|
||||
|
||||
Reference in New Issue
Block a user