Skip to content

Commit 7bded22

Browse files
committed
feat: add discord invite link
1 parent 7e0dae5 commit 7bded22

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default async function Landing() {
8383

8484
<p className="mt-4 text-sm leading-relaxed text-prog-gray-500 dark:text-slate-200 sm:text-base">
8585
เว็บไซต์ที่ผู้ใช้มากมายเชื่อมั่น ด้วยโจทย์ฝึกเขียนโปรแกรมถึง{' '}
86-
{tasksCount} ข้อ
86+
<b>{tasksCount}</b> ข้อ
8787
<br />
8888
และบทเรียนเกี่ยวกับ Data Structure & Algorithms
8989
</p>

src/app/tasks/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default async function Tasks() {
6464
Tasks
6565
</p>
6666
<p className="text-md text-gray-500 dark:text-gray-300">
67-
Browse over 700+ tasks
67+
Browse Over 800+ Tasks
6868
</p>
6969
</>
7070
}

src/components/RootLayout/Footer/Footer.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useMemo } from 'react'
33
import Image from 'next/image'
44
import Link from 'next/link'
55

6-
import { FacebookLogo, GitHubLogo } from '@/svg/Socials'
6+
import { DiscordLogo, FacebookLogo, GitHubLogo } from '@/svg/Socials'
77

88
import { FooterJoin } from './FooterJoin'
99
import { ThemeSwitch } from './ThemeSwitch'
@@ -49,6 +49,13 @@ export const Footer = () => {
4949
>
5050
<GitHubLogo className="text-[#64748B] dark:text-gray-100" />
5151
</Link>
52+
<Link
53+
href="https://discord.gg/yrtrJ5rQm2"
54+
target="_blank"
55+
rel="noreferrer"
56+
>
57+
<DiscordLogo className="text-[#64748B] dark:text-gray-100" />
58+
</Link>
5259
</div>
5360
<p className="flex w-full flex-col justify-center text-center text-xs text-gray-500 dark:text-gray-100 sm:w-80 sm:text-sm sm:leading-4 md:text-left">
5461
<span>© 2019-{currentYear} the PROGRAMMING.IN.TH team</span>

src/svg/Socials.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,18 @@ export const AuthGitHubLogo = (props: ComponentProps<'svg'>) => {
8888
</svg>
8989
)
9090
}
91+
92+
export const DiscordLogo = (props: ComponentProps<'svg'>) => {
93+
return (
94+
<svg
95+
xmlns="http://www.w3.org/2000/svg"
96+
viewBox="0 0 127.14 96.36"
97+
width="27"
98+
height="27"
99+
fill="currentColor"
100+
{...props}
101+
>
102+
<path d="M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z" />
103+
</svg>
104+
)
105+
}

0 commit comments

Comments
 (0)