Skip to content

Commit 29c2aa6

Browse files
committed
Customisations
1 parent bf12116 commit 29c2aa6

File tree

8 files changed

+629
-331
lines changed

8 files changed

+629
-331
lines changed

.gitpod.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# This configuration file was automatically generated by Gitpod.
2+
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
3+
# and commit this file to your remote git repository to share the goodness with others.
4+
5+
tasks:
6+
- init: yarn install && yarn run build
7+
command: yarn run start
8+
9+

readme.md renamed to README.md.old

File renamed without changes.

components/GitHubShareButton.tsx

Lines changed: 0 additions & 48 deletions
This file was deleted.

components/NotionPage.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import { PageHead } from './PageHead'
2929
import { PageAside } from './PageAside'
3030
import { Footer } from './Footer'
3131
import { NotionPageHeader } from './NotionPageHeader'
32-
import { GitHubShareButton } from './GitHubShareButton'
3332

3433
import styles from './styles.module.css'
3534

@@ -285,8 +284,6 @@ export const NotionPage: React.FC<types.PageProps> = ({
285284
pageAside={pageAside}
286285
footer={footer}
287286
/>
288-
289-
<GitHubShareButton />
290287
</>
291288
)
292289
}

pages/_app.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ import 'react-notion-x/src/styles.css'
88
import 'katex/dist/katex.min.css'
99

1010
// used for code syntax highlighting (optional)
11-
import 'prismjs/themes/prism-coy.css'
11+
// import 'prismjs/themes/prism-coy.css'
1212

1313
// this might be better for dark mode
14-
// import 'prismjs/themes/prism-okaidia.css'
14+
import '../styles/prism-night-owl.css'
15+
// import 'prismjs/themes/prism-tomorrow.css'
1516

1617
// global style overrides for notion
1718
import 'styles/notion.css'

site.config.ts

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

33
export default siteConfig({
44
// the site's root Notion page (required)
5-
rootNotionPageId: '7875426197cf461698809def95960ebf',
5+
rootNotionPageId: 'dfc2059132ed4a1bb2714090c66013b3',
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)
@@ -11,15 +11,15 @@ export default siteConfig({
1111
// basic site info (required)
1212
name: 'Next.js Notion Starter Kit',
1313
domain: 'nextjs-notion-starter-kit.transitivebullsh.it',
14-
author: 'Travis Fischer',
14+
author: 'Ankur Paul',
1515

1616
// open graph metadata (optional)
1717
description: 'Example Next.js Notion Starter Kit Site',
1818

1919
// social usernames (optional)
20-
twitter: 'transitive_bs',
21-
github: 'transitive-bullshit',
22-
linkedin: 'fisch2',
20+
twitter: 'ankurpauldotdev',
21+
github: 'nooobcoder',
22+
linkedin: 'ankur-paul-888b4411b',
2323

2424
// default notion icon and cover images for site-wide consistency (optional)
2525
// page-specific values will override these site-wide defaults
@@ -47,16 +47,16 @@ export default siteConfig({
4747

4848
// whether to use the default notion navigation style or a custom one with links to
4949
// important pages
50-
navigationStyle: 'default'
51-
// navigationStyle: 'custom',
52-
// navigationLinks: [
53-
// {
54-
// title: 'About',
55-
// pageId: 'f1199d37579b41cbabfc0b5174f4256a'
56-
// },
57-
// {
58-
// title: 'Contact',
59-
// pageId: '6a29ebcb935a4f0689fe661ab5f3b8d1'
60-
// }
61-
// ]
50+
// navigationStyle: 'default'
51+
navigationStyle: 'custom',
52+
navigationLinks: [
53+
{
54+
title: 'About',
55+
pageId: 'f1199d37579b41cbabfc0b5174f4256a'
56+
},
57+
{
58+
title: 'Contact',
59+
pageId: '6a29ebcb935a4f0689fe661ab5f3b8d1'
60+
}
61+
]
6262
})

styles/prism-night-owl.css

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
/**
2+
* MIT License
3+
* Copyright (c) 2018 Sarah Drasner
4+
* Sarah Drasner's[@sdras] Night Owl
5+
* Ported by Sara vieria [@SaraVieira]
6+
* Added by Souvik Mandal [@SimpleIndian]
7+
*/
8+
9+
code[class*='language-'],
10+
pre[class*='language-'] {
11+
color: #d6deeb;
12+
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
13+
text-align: left;
14+
white-space: pre;
15+
word-spacing: normal;
16+
word-break: normal;
17+
word-wrap: normal;
18+
line-height: 1.5;
19+
font-size: 1em;
20+
21+
-moz-tab-size: 4;
22+
-o-tab-size: 4;
23+
tab-size: 4;
24+
25+
-webkit-hyphens: none;
26+
-moz-hyphens: none;
27+
-ms-hyphens: none;
28+
hyphens: none;
29+
}
30+
31+
pre[class*='language-']::-moz-selection,
32+
pre[class*='language-'] ::-moz-selection,
33+
code[class*='language-']::-moz-selection,
34+
code[class*='language-'] ::-moz-selection {
35+
text-shadow: none;
36+
background: rgba(29, 59, 83, 0.99);
37+
}
38+
39+
pre[class*='language-']::selection,
40+
pre[class*='language-'] ::selection,
41+
code[class*='language-']::selection,
42+
code[class*='language-'] ::selection {
43+
text-shadow: none;
44+
background: rgba(29, 59, 83, 0.99);
45+
}
46+
47+
@media print {
48+
code[class*='language-'],
49+
pre[class*='language-'] {
50+
text-shadow: none;
51+
}
52+
}
53+
54+
/* Code blocks */
55+
pre[class*='language-'] {
56+
padding: 1em;
57+
margin: 0.5em 0;
58+
overflow: auto;
59+
}
60+
61+
:not(pre) > code[class*='language-'],
62+
pre[class*='language-'] {
63+
color: white;
64+
background: #011627;
65+
}
66+
67+
:not(pre) > code[class*='language-'] {
68+
padding: 0.1em;
69+
border-radius: 0.3em;
70+
white-space: normal;
71+
}
72+
73+
.token.comment,
74+
.token.prolog,
75+
.token.cdata {
76+
color: rgb(99, 119, 119);
77+
font-style: italic;
78+
}
79+
80+
.token.punctuation {
81+
color: rgb(199, 146, 234);
82+
}
83+
84+
.namespace {
85+
color: rgb(178, 204, 214);
86+
}
87+
88+
.token.deleted {
89+
color: rgba(239, 83, 80, 0.56);
90+
font-style: italic;
91+
}
92+
93+
.token.symbol,
94+
.token.property {
95+
color: rgb(128, 203, 196);
96+
}
97+
98+
.token.tag,
99+
.token.operator,
100+
.token.keyword {
101+
color: rgb(127, 219, 202);
102+
}
103+
104+
.token.boolean {
105+
color: rgb(255, 88, 116);
106+
}
107+
108+
.token.number {
109+
color: rgb(247, 140, 108);
110+
}
111+
112+
.token.constant,
113+
.token.function,
114+
.token.builtin,
115+
.token.char {
116+
color: rgb(130, 170, 255);
117+
}
118+
119+
.token.selector,
120+
.token.doctype {
121+
color: rgb(199, 146, 234);
122+
font-style: italic;
123+
}
124+
125+
.token.attr-name,
126+
.token.inserted {
127+
color: rgb(173, 219, 103);
128+
font-style: italic;
129+
}
130+
131+
.token.string,
132+
.token.url,
133+
.token.entity,
134+
.language-css .token.string,
135+
.style .token.string {
136+
color: rgb(173, 219, 103);
137+
}
138+
139+
.token.class-name,
140+
.token.atrule,
141+
.token.attr-value {
142+
color: rgb(255, 203, 139);
143+
}
144+
145+
.token.regex,
146+
.token.important,
147+
.token.variable {
148+
color: rgb(214, 222, 235);
149+
}
150+
151+
.token.important,
152+
.token.bold {
153+
font-weight: bold;
154+
}
155+
156+
.token.italic {
157+
font-style: italic;
158+
}

0 commit comments

Comments
 (0)