File tree Expand file tree Collapse file tree 6 files changed +89
-23
lines changed Expand file tree Collapse file tree 6 files changed +89
-23
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,21 @@ export const NotionPage: React.FC<types.PageProps> = ({
156
156
const router = useRouter ( )
157
157
const lite = useSearchParam ( 'lite' )
158
158
159
+ React . useEffect ( ( ) => {
160
+ const intro = document . getElementsByClassName (
161
+ 'notion-block-e2937a32ee344038bc1fb55c74a22d8f'
162
+ )
163
+ if ( intro && intro . length > 0 ) intro [ 0 ] . id = 'link-intro'
164
+ const careers = document . getElementsByClassName (
165
+ 'notion-block-85f68c0cbfd44be5a0d85a3137a673de'
166
+ )
167
+ if ( careers && careers . length > 0 ) careers [ 0 ] . id = 'link-careers'
168
+ const projects = document . getElementsByClassName (
169
+ 'notion-block-781d9405d3494e808dcdfc106dc8e46d'
170
+ )
171
+ if ( projects && projects . length > 0 ) projects [ 0 ] . id = 'link-projects'
172
+ } , [ ] )
173
+
159
174
const components = React . useMemo (
160
175
( ) => ( {
161
176
nextImage : Image ,
@@ -282,11 +297,11 @@ export const NotionPage: React.FC<types.PageProps> = ({
282
297
mapPageUrl = { siteMapPageUrl }
283
298
mapImageUrl = { mapImageUrl }
284
299
searchNotion = { config . isSearchEnabled ? searchNotion : null }
285
- pageAside = { pageAside }
300
+ // pageAside={pageAside}
286
301
footer = { footer }
287
302
/>
288
303
289
- < GitHubShareButton />
304
+ { /* <GitHubShareButton /> */ }
290
305
</ >
291
306
)
292
307
}
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { useDarkMode } from 'lib/use-dark-mode'
9
9
import { navigationStyle , navigationLinks , isSearchEnabled } from 'lib/config'
10
10
11
11
import styles from './styles.module.css'
12
+ import Link from 'next/link'
12
13
13
14
const ToggleThemeButton = ( ) => {
14
15
const [ hasMounted , setHasMounted ] = React . useState ( false )
@@ -49,7 +50,7 @@ export const NotionPageHeader: React.FC<{
49
50
< div className = 'notion-nav-header-rhs breadcrumbs' >
50
51
{ navigationLinks
51
52
?. map ( ( link , index ) => {
52
- if ( ! link . pageId && ! link . url ) {
53
+ if ( ! link . pageId && ! link . url && ! link . id ) {
53
54
return null
54
55
}
55
56
@@ -63,7 +64,7 @@ export const NotionPageHeader: React.FC<{
63
64
{ link . title }
64
65
</ components . PageLink >
65
66
)
66
- } else {
67
+ } else if ( link . url ) {
67
68
return (
68
69
< components . Link
69
70
href = { link . url }
@@ -73,6 +74,17 @@ export const NotionPageHeader: React.FC<{
73
74
{ link . title }
74
75
</ components . Link >
75
76
)
77
+ } else {
78
+ return (
79
+ < span
80
+ style = { { padding : 8 } }
81
+ className = { cs ( styles . navLink , 'breadcrumb' , 'button' ) }
82
+ >
83
+ < Link href = { link . id } key = { index } scroll = { true } >
84
+ { link . title }
85
+ </ Link >
86
+ </ span >
87
+ )
76
88
}
77
89
} )
78
90
. filter ( Boolean ) }
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ export interface NavigationLink {
38
38
title : string
39
39
pageId ?: string
40
40
url ?: string
41
+ id ?: string
41
42
}
42
43
43
44
export const siteConfig = ( config : SiteConfig ) : SiteConfig => {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export default class MyDocument extends Document {
6
6
render ( ) {
7
7
return (
8
8
< IconContext . Provider value = { { style : { verticalAlign : 'middle' } } } >
9
- < Html lang = 'ko' >
9
+ < Html lang = 'ko' style = { { scrollBehavior : 'smooth' } } >
10
10
< Head >
11
11
< link rel = 'shortcut icon' href = '/favicon.ico' />
12
12
< link
Original file line number Diff line number Diff line change @@ -60,20 +60,24 @@ export default siteConfig({
60
60
'/projects-traffin' : 'TRAFFIN-24971d0c6a8e470e8d05ac7ed12327d4' ,
61
61
'/projects-hyowonlife' : '750da52c857648978e315f5d11c00daf' ,
62
62
'/projects-tothesky' : 'toTheSky-1b33457e15fa4ba3851eb685f2edbfac'
63
- }
63
+ } ,
64
64
65
65
// whether to use the default notion navigation style or a custom one with links to
66
66
// important pages
67
- // navigationStyle: 'default'
68
- // navigationStyle: 'custom',
69
- // navigationLinks: [
70
- // {
71
- // title: 'About',
72
- // pageId: 'f1199d37579b41cbabfc0b5174f4256a'
73
- // },
74
- // {
75
- // title: 'Contact',
76
- // pageId: '6a29ebcb935a4f0689fe661ab5f3b8d1'
77
- // }
78
- // ]
67
+ // navigationStyle: 'default',
68
+ navigationStyle : 'custom' ,
69
+ navigationLinks : [
70
+ {
71
+ title : 'Intro' ,
72
+ id : '#link-intro'
73
+ } ,
74
+ {
75
+ title : 'Careers' ,
76
+ id : '#link-careers'
77
+ } ,
78
+ {
79
+ title : 'Projects' ,
80
+ id : '#link-projects'
81
+ }
82
+ ]
79
83
} )
Original file line number Diff line number Diff line change 342
342
font-weight : 700 ;
343
343
}
344
344
345
- .notion-page-icon-inline {
346
- min-width : 28 px ;
347
- max-width : 28 px ;
348
- min-height : 28 px ;
349
- max-height : 28 px ;
345
+ .notion-page-title . notion-page- icon-inline {
346
+ min-width : 32 px ;
347
+ max-width : 32 px ;
348
+ min-height : 32 px ;
349
+ max-height : 32 px ;
350
350
display : flex;
351
351
}
352
352
353
353
.notion-page-icon-inline img {
354
354
align-self : center;
355
355
justify-self : center;
356
+ object-fit : contain;
357
+ }
358
+
359
+ .notion-callout .notion-page-icon-inline {
360
+ min-width : 22px ;
361
+ max-width : 22px ;
362
+ min-height : 22px ;
363
+ max-height : 22px ;
364
+ display : flex;
365
+ }
366
+
367
+ .notion-page-link {
368
+ height : 48px ;
369
+ padding-left : 8px ;
370
+ padding-right : 8px ;
371
+ border-radius : 16px ;
372
+ }
373
+
374
+ .notion-callout {
375
+ border-radius : 16px ;
376
+ }
377
+
378
+ .notion-asset-wrapper .notion-asset-wrapper-image {
379
+ max-width : 200px ;
380
+ }
381
+
382
+ .notion-block-04d8bdc32ebd4a1bb9314bb30c02e279 .notion-h-title {
383
+ font-size : 2.75rem ;
384
+ background : linear-gradient (to right, # 0b6e99 0% , # 6b079a 100% );
385
+ background-clip : text;
386
+ color : transparent;
387
+ -webkit-text-fill-color : transparent;
388
+ box-decoration-break : clone;
389
+ font-weight : 900 ;
356
390
}
You can’t perform that action at this time.
0 commit comments