Skip to content

Commit d86c20c

Browse files
committed
feat: Add youtube channel link
1 parent deb2bbf commit d86c20c

7 files changed

Lines changed: 26 additions & 3 deletions

File tree

public/locales/en/components/home.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@
9898
"instagram.heading": "Follow us on Instagram",
9999
"instagram.body_text": "Get behind-the-scenes looks, community highlights, and visual updates directly from our team.",
100100
"twitter.heading": "Follow us on X (Twitter)",
101-
"twitter.body_text": "Stay up to date with feature drops, announcements, and real-time updates in 280 characters or less."
101+
"twitter.body_text": "Stay up to date with feature drops, announcements, and real-time updates in 280 characters or less.",
102+
"youtube.heading": "Subscribe to our YouTube Channel",
103+
"youtube.body_text": "Watch tutorials, demos, and feature showcases on our official YouTube channel."
102104
},
103105

104106
"testimonials_section": {

public/locales/en/components/navigationbar.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"community.discord": "Discord",
1515
"community.instagram": "Instagram",
1616
"community.twitter": "Twitter (X)",
17+
"community.youtube": "YouTube",
1718
"profile": "Profile",
1819
"login": "Login",
1920
"logout": "Logout",

public/locales/zh/components/home.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@
9595
"instagram.heading": "在 Instagram 关注我们",
9696
"instagram.body_text": "获取幕后花絮、社区亮点和团队的视觉更新。",
9797
"twitter.heading": "在 X(Twitter)关注我们",
98-
"twitter.body_text": "关注功能更新、公告以及实时动态,每条限制在 280 个字符以内。"
98+
"twitter.body_text": "关注功能更新、公告以及实时动态,每条限制在 280 个字符以内。",
99+
"youtube.heading": "订阅我们的 YouTube 频道",
100+
"youtube.body_text": "在我们的官方 YouTube 频道观看教程、演示和功能展示。"
99101
},
100102
"testimonials_section": {
101103
"title": "用户评价",

public/locales/zh/components/navigationbar.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"community.discord": "Discord",
1515
"community.instagram": "Instagram",
1616
"community.twitter": "Twitter (X)",
17+
"community.youtube": "YouTube",
1718
"profile": "个人资料",
1819
"login": "登录",
1920
"logout": "登出",

src/components/Home/CommunitySection.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Box, Button, Typography } from '@mui/material';
22
import { ArrowRight } from 'lucide-react';
33
import { useTranslation } from 'react-i18next';
4-
import { FaDiscord, FaGithub, FaInstagram, FaTwitter } from 'react-icons/fa';
4+
import { FaDiscord, FaGithub, FaInstagram, FaTwitter, FaYoutube } from 'react-icons/fa';
55

66
import { Endpoints } from '@/constants/Endpoints';
77
import useIsDesktop from '@/hooks/useIsDesktop';
@@ -44,6 +44,12 @@ const CommunitySection = (): JSX.Element => {
4444
title: t('community_section.twitter.heading'),
4545
url: Endpoints.twitterCoreUrl,
4646
},
47+
{
48+
Icon: <FaYoutube size={26} />,
49+
text: t('community_section.youtube.body_text'),
50+
title: t('community_section.youtube.heading'),
51+
url: Endpoints.youtubeCoreUrl,
52+
},
4753
];
4854

4955
return (

src/components/NavigationBar/NavigationBar.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import {
3737
FaUserCog,
3838
FaUserFriends,
3939
FaUserSecret,
40+
FaYoutube,
4041
} from 'react-icons/fa';
4142
import { Link, useLocation, useNavigate } from 'react-router-dom';
4243

@@ -258,6 +259,15 @@ const NavigationBar: React.FC<{
258259
<FaTwitter style={{ marginRight: 8 }} />
259260
{t('navigation_bar.community.twitter')}
260261
</MenuItem>
262+
<MenuItem
263+
onClick={() => {
264+
window.open(Endpoints.youtubeCoreUrl);
265+
setCommunityMenuAnchor(null);
266+
}}
267+
>
268+
<FaYoutube style={{ marginRight: 8 }} />
269+
{t('navigation_bar.community.youtube')}
270+
</MenuItem>
261271
</Menu>
262272
</Box>
263273

src/constants/Endpoints.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const Endpoints = {
2727
projectQuickStartUrl: `${import.meta.env.VITE_GALLERY_WEBSITE_URL}/docs/v2/introduction/quickstart`,
2828
projectLlmExampleUrl: `${import.meta.env.VITE_GALLERY_WEBSITE_URL}/docs/v2/examples/llm_conversation`,
2929
twitterCoreUrl: 'https://x.com/reactchatbotify',
30+
youtubeCoreUrl: 'https://www.youtube.com/@react-chatbotify',
3031
};
3132

3233
export { Endpoints };

0 commit comments

Comments
 (0)