Skip to content

Commit 8beed20

Browse files
authored
Merge pull request #440 from dev-five-git/add-preload
Add font preload
2 parents f59dda4 + 880b206 commit 8beed20

File tree

4 files changed

+21
-217
lines changed

4 files changed

+21
-217
lines changed

apps/landing/next.config.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import { DevupUI } from '@devup-ui/next-plugin'
22
import createMDX from '@next/mdx'
3-
import remarkGfm from 'remark-gfm'
43

54
const withMDX = createMDX({
6-
options: {
7-
remarkPlugins: [remarkGfm],
8-
},
5+
// options: {
6+
// remarkPlugins: [remarkGfm],
7+
// },
98
extension: /\.mdx?$/,
109
})
1110

apps/landing/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"react-dom": "^19.2",
2525
"react-markdown": "^10.1",
2626
"react-syntax-highlighter": "^15.6",
27-
"remark-gfm": "^4.0",
2827
"lenis": "1.3"
2928
},
3029
"devDependencies": {
@@ -35,8 +34,6 @@
3534
"@types/react": "^19",
3635
"@types/react-dom": "^19",
3736
"@types/react-syntax-highlighter": "^15.5",
38-
"glob": "^11.0",
39-
"remark": "^15.0",
4037
"typescript": "^5"
4138
}
4239
}

apps/landing/src/app/layout.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,24 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
8080
href="https://cdn.jsdelivr.net/gh/joungkyun/font-d2coding/d2coding.css"
8181
rel="stylesheet"
8282
/>
83+
{[
84+
'ExtraBold',
85+
'Bold',
86+
'SemiBold',
87+
'Medium',
88+
'Regular',
89+
'Light',
90+
'Thin',
91+
].map((font) => (
92+
<link
93+
key={font}
94+
as="font"
95+
crossOrigin="anonymous"
96+
href={`https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-${font}.woff2`}
97+
rel="preload"
98+
type="font/woff2"
99+
/>
100+
))}
83101
<link
84102
href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css"
85103
rel="stylesheet"

pnpm-lock.yaml

Lines changed: 0 additions & 210 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)