Skip to content

Commit 85e805e

Browse files
committed
initial commit
1 parent 0e40674 commit 85e805e

File tree

5 files changed

+54
-15
lines changed

5 files changed

+54
-15
lines changed

components/Footer.tsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as React from 'react'
22

33
import { FaEnvelopeOpenText } from '@react-icons/all-files/fa/FaEnvelopeOpenText'
4+
import { FaFacebook } from '@react-icons/all-files/fa/FaFacebook'
45
import { FaGithub } from '@react-icons/all-files/fa/FaGithub'
56
import { FaLinkedin } from '@react-icons/all-files/fa/FaLinkedin'
67
import { FaMastodon } from '@react-icons/all-files/fa/FaMastodon'
@@ -36,7 +37,9 @@ export const FooterImpl: React.FC = () => {
3637

3738
return (
3839
<footer className={styles.footer}>
39-
<div className={styles.copyright}>Copyright {currentYear} {config.author}</div>
40+
<div className={styles.copyright}>
41+
Copyright {currentYear} {config.author}
42+
</div>
4043

4144
<div className={styles.settings}>
4245
{hasMounted && (
@@ -53,6 +56,18 @@ export const FooterImpl: React.FC = () => {
5356
</div>
5457

5558
<div className={styles.social}>
59+
{config.twitter && (
60+
<a
61+
className={styles.twitter}
62+
href={`https://www.facebook.com/${config.twitter}`}
63+
title={`Facebook @${config.twitter}`}
64+
target='_blank'
65+
rel='noopener noreferrer'
66+
>
67+
<FaFacebook />
68+
</a>
69+
)}
70+
5671
{config.twitter && (
5772
<a
5873
className={styles.twitter}

components/PageSocial.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,23 @@ interface SocialLink {
1414
}
1515

1616
const socialLinks: SocialLink[] = [
17+
config.facebook && {
18+
name: 'facebook',
19+
href: `https://www.facebook.com/${config.facebook}`,
20+
title: `Facebook @${config.facebook}`,
21+
icon: (
22+
<svg
23+
fill='#000000'
24+
width='800px'
25+
height='800px'
26+
viewBox='0 0 24 24'
27+
xmlns='http://www.w3.org/2000/svg'
28+
>
29+
<path d='M12.001 2.002c-5.522 0-9.999 4.477-9.999 9.999 0 4.99 3.656 9.126 8.437 9.879v-6.988h-2.54v-2.891h2.54V9.798c0-2.508 1.493-3.891 3.776-3.891 1.094 0 2.24.195 2.24.195v2.459h-1.264c-1.24 0-1.628.772-1.628 1.563v1.875h2.771l-.443 2.891h-2.328v6.988C18.344 21.129 22 16.992 22 12.001c0-5.522-4.477-9.999-9.999-9.999z' />
30+
</svg>
31+
)
32+
},
33+
1734
config.twitter && {
1835
name: 'twitter',
1936
href: `https://twitter.com/${config.twitter}`,

lib/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export const description: string = getSiteConfig('description', 'Notion Blog')
5454
export const language: string = getSiteConfig('language', 'en')
5555

5656
// social accounts
57+
export const facebook: string | null = getSiteConfig('facebook', null)
5758
export const twitter: string | null = getSiteConfig('twitter', null)
5859
export const mastodon: string | null = getSiteConfig('mastodon', null)
5960
export const github: string | null = getSiteConfig('github', null)

lib/site-config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ export interface SiteConfig {
1010
description?: string
1111
language?: string
1212

13+
facebook?: string
1314
twitter?: string
1415
github?: string
1516
linkedin?: string
1617
newsletter?: string
1718
youtube?: string
1819
zhihu?: string
19-
mastodon?: string;
20+
mastodon?: string
2021

2122
defaultPageIcon?: string | null
2223
defaultPageCover?: string | null

site.config.ts

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,25 @@ import { siteConfig } from './lib/site-config'
22

33
export default siteConfig({
44
// the site's root Notion page (required)
5-
rootNotionPageId: '7875426197cf461698809def95960ebf',
5+
rootNotionPageId: '67b39848cef94612b01ca6c1dc4d81a6',
66

77
// if you want to restrict pages to a single notion workspace (optional)
88
// (this should be a Notion ID; see the docs for how to extract this)
99
rootNotionSpaceId: null,
1010

1111
// basic site info (required)
12-
name: 'Next.js Notion Starter Kit',
13-
domain: 'nextjs-notion-starter-kit.transitivebullsh.it',
14-
author: 'Travis Fischer',
12+
name: 'JavaScript Cebu Community',
13+
domain: 'jscebu.org',
14+
author: 'JavaScript Cebu',
1515

1616
// open graph metadata (optional)
17-
description: 'Example Next.js Notion Starter Kit Site',
17+
description: 'Community homepage for JavaScript Cebu',
1818

1919
// social usernames (optional)
20-
twitter: 'transitive_bs',
21-
github: 'transitive-bullshit',
22-
linkedin: 'fisch2',
20+
facebook: 'JavascriptCebu',
21+
twitter: 'JavascriptCebu',
22+
github: 'javascriptcebu',
23+
// linkedin: 'fisch2',
2324
// mastodon: '#', // optional mastodon profile URL, provides link verification
2425
// newsletter: '#', // optional newsletter URL
2526
// youtube: '#', // optional youtube channel name or `channel/UCGbXXXXXXXXXXXXXXXXXXXXXX`
@@ -42,11 +43,15 @@ export default siteConfig({
4243
// any pages defined here will override their default URL paths
4344
// example:
4445
//
45-
// pageUrlOverrides: {
46-
// '/foo': '067dd719a912471ea9a3ac10710e7fdf',
47-
// '/bar': '0be6efce9daf42688f65c76b89f8eb27'
48-
// }
49-
pageUrlOverrides: null,
46+
pageUrlOverrides: {
47+
'/mission-vision': '0c6ba96856cb4941b4f5eb8f0a9d2c25',
48+
'/members': 'c69fd58103314a0a871b5f072b9a8ef8',
49+
'/ideas': 'ab4c593485a04708aef5aa418bdac513',
50+
'/meeting-notes': '7cf10a64c4c64281845df4adc45a1f95',
51+
'/tasks': '7e7678d78abd4bde8be7226af06c3487',
52+
'/official-links': 'cb911533889445dfa31333f69e65eb0e'
53+
},
54+
// pageUrlOverrides: null,
5055

5156
// whether to use the default notion navigation style or a custom one with links to
5257
// important pages. To use `navigationLinks`, set `navigationStyle` to `custom`.

0 commit comments

Comments
 (0)