Skip to content

Commit fa5e6a2

Browse files
Merge pull request #6 from 0xPlaygrounds/update-social-links
Update social links
2 parents 72a9d02 + f86d77e commit fa5e6a2

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { PostHogClientProvider } from '@/components/analytics/PostHogProvider';
55
import { Suspense } from 'react';
66

77
export const metadata: Metadata = {
8-
title: 'Plagrounds',
8+
title: 'Playgrounds',
99
description: 'Fearless AI Company',
1010
openGraph: {
1111
title: 'Playgrounds',

src/components/footer.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use client';
22

33
import Image from 'next/image';
4+
import { SOCIAL_LINKS, CONTACT_INFO } from '../constants/socialLinks';
45
import posthog from 'posthog-js';
56

67
export const Footer = () => {
@@ -28,10 +29,10 @@ export const Footer = () => {
2829
<span className="uppercase text-[#D4D4D4]">contact</span>
2930
<div className="flex flex-col gap-y-4">
3031
<a
31-
href="mailto:info@playgrounds.com"
32+
href={`mailto:${CONTACT_INFO.email}`}
3233
className="hover:underline"
3334
>
34-
info@playgrounds.com
35+
{CONTACT_INFO.email}
3536
</a>
3637
</div>
3738
</div>
@@ -63,7 +64,7 @@ export const Footer = () => {
6364
<span className="uppercase text-[#D4D4D4]">contact</span>
6465
<div className="flex flex-col gap-y-4">
6566
<a
66-
href="mailto:info@playgrounds.com"
67+
href={`mailto:${CONTACT_INFO.email}`}
6768
className="hover:underline"
6869
onClick={() => {
6970
posthog.capture('cta_click', {
@@ -72,7 +73,7 @@ export const Footer = () => {
7273
});
7374
}}
7475
>
75-
info@playgrounds.com
76+
{CONTACT_INFO.email}
7677
</a>
7778
</div>
7879
</div>
@@ -86,7 +87,7 @@ export const Footer = () => {
8687
<span className="uppercase text-[#D4D4D4]">follow us</span>
8788
<div className="flex flex-col gap-y-4">
8889
<a
89-
href="https://github.com/0xPlaygrounds"
90+
href={SOCIAL_LINKS.github}
9091
target="_blank"
9192
className="hover:underline"
9293
onClick={() => {
@@ -99,7 +100,7 @@ export const Footer = () => {
99100
Github
100101
</a>
101102
<a
102-
href="https://www.youtube.com/@arcdotfun"
103+
href={SOCIAL_LINKS.youtube}
103104
target="_blank"
104105
className="hover:underline"
105106
onClick={() => {
@@ -112,7 +113,7 @@ export const Footer = () => {
112113
Youtube
113114
</a>
114115
<a
115-
href="https://x.com/Playgrounds0x"
116+
href={SOCIAL_LINKS.x}
116117
target="_blank"
117118
className="hover:underline"
118119
onClick={() => {

src/components/navbar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use client';
22

33
import Image from 'next/image';
4+
import { SOCIAL_LINKS } from '../constants/socialLinks';
45
import posthog from 'posthog-js';
56

67
export const Navbar = () => {
@@ -15,7 +16,7 @@ export const Navbar = () => {
1516
/>
1617
<div className="flex font-medium gap-x-2 items-center">
1718
<a
18-
href="https://github.com/0xPlaygrounds"
19+
href={SOCIAL_LINKS.github}
1920
target="_blank"
2021
rel="noopener noreferrer"
2122
className="h-8 cursor-pointer flex border bg-black border-[#333333] hover:border-white/50 transition duration-300 ease-in-out rounded items-center px-3 text-[13px] justify-center"

src/constants/socialLinks.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export const SOCIAL_LINKS = {
2+
github: 'https://github.com/0xPlaygrounds',
3+
youtube: 'https://www.youtube.com/@arcdotfun',
4+
x: 'https://x.com/ryzomeai',
5+
};
6+
7+
export const CONTACT_INFO = {
8+
email: 'info@playgrounds.com',
9+
};

0 commit comments

Comments
 (0)