Skip to content

Commit 4375e8a

Browse files
committed
feat: add x to social media and read titles from translation
1 parent 05d9345 commit 4375e8a

File tree

6 files changed

+37
-19
lines changed

6 files changed

+37
-19
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"webp",
3131
"Woocommerce",
3232
"Yekan",
33+
"اینستاگرام",
3334
"چنده"
3435
]
3536
}

src/app/[locale]/layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export const generateMetadata = async (
7878
title: defaultTemplateString,
7979
description,
8080
images: [imageUrl],
81+
creator: '@username',
8182
},
8283
robots: {
8384
index: true,

src/components/Footer/components/Newsletter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const Newsletter = () => {
4343
onSubmit={form.handleSubmit(onSubmit)}
4444
>
4545
<Typography variant="h6">{t('footer.newsletter.title')}</Typography>
46-
<Stack spacing={1} alignItems="center" direction="row">
46+
<Stack spacing={1} alignItems="flex-start" direction="row">
4747
<Controller
4848
name="email"
4949
control={form.control}

src/components/Footer/components/SocialMedia.tsx

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
1-
import { Instagram, Telegram } from '@mui/icons-material';
1+
import { Instagram, Telegram, X } from '@mui/icons-material';
22
import { Stack, Tooltip, Typography } from '@mui/material';
33
import { useTranslations } from 'next-intl';
44
import SocialMediaButton from './SocialMediaButton';
55

6-
const socialMediaButtons = [
7-
{
8-
id: 'instagram',
9-
title: 'Instagram',
10-
icon: <Instagram />,
11-
link: 'https://instagram.com',
12-
},
13-
{
14-
id: 'telegram',
15-
title: 'Telegram',
16-
icon: <Telegram />,
17-
link: 'https://telegram.me/',
18-
},
19-
];
20-
216
const SocialMedia = () => {
227
const t = useTranslations();
238

9+
const socialMediaButtons = [
10+
{
11+
id: 'instagram',
12+
title: t('footer.socialMedia.items.instagram'),
13+
icon: <Instagram />,
14+
link: 'https://instagram.com',
15+
},
16+
{
17+
id: 'telegram',
18+
title: t('footer.socialMedia.items.telegram'),
19+
icon: <Telegram />,
20+
link: 'https://telegram.me/',
21+
},
22+
{
23+
id: 'x',
24+
title: t('footer.socialMedia.items.x'),
25+
icon: <X />,
26+
link: 'https://x.com/',
27+
},
28+
];
29+
2430
return (
2531
<Stack spacing={1}>
2632
<Typography variant="h6">{t('footer.socialMedia.stayTuned')}</Typography>

src/data/i18n/en.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,12 @@
8181
"customerServiceHours:": "Customer Service Hours:"
8282
},
8383
"socialMedia": {
84-
"stayTuned": "Stay Tuned!"
84+
"stayTuned": "Stay Tuned!",
85+
"items": {
86+
"instagram": "Instagram",
87+
"x": "X",
88+
"telegram": "Telegram"
89+
}
8590
},
8691
"links": {
8792
"title": "Useful Links",

src/data/i18n/fa.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@
7777
"customerServiceHours:": "شنبه تا پنجشنبه ساعت 9 تا 18"
7878
},
7979
"socialMedia": {
80-
"stayTuned": "با ما همراه باشید!"
80+
"stayTuned": "با ما همراه باشید!",
81+
"items": {
82+
"instagram": "اینستاگرام",
83+
"x": "اکس",
84+
"telegram": "تلگرام"
85+
}
8186
},
8287
"links": {
8388
"title": "لینک‌های مفید",

0 commit comments

Comments
 (0)