Skip to content

Commit

Permalink
style: 웹폰트 글로벌 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
wish0ne committed Dec 17, 2023
1 parent e62ce23 commit 799784b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 19 deletions.
2 changes: 2 additions & 0 deletions src/components/GlobalStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Global, css } from "@emotion/react";
import { Link, type HeadFC, type PageProps } from "gatsby";

const globalStyles = css`
@import url("https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
html {
font-size: 62.5%;
background-color: #fbfbfb;
Expand Down
12 changes: 1 addition & 11 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,4 @@ export const query = graphql`

export default HomePage;

export const Head: HeadFC = () => (
<>
<title>dev-wish.com</title>
<link
rel="stylesheet"
as="style"
crossOrigin=""
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable-dynamic-subset.min.css"
/>
</>
);
export const Head: HeadFC = () => <title>dev-wish.com</title>;
6 changes: 5 additions & 1 deletion src/pages/posts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,8 @@ const PostPage: React.FC<PageProps> = () => {

export default PostPage;

export const Head: HeadFC = () => <title>dev-wish.com</title>;
export const Head = () => (
<>
<title>dev-wish.com</title>
</>
);
6 changes: 0 additions & 6 deletions src/pages/posts/{mdx.frontmatter__slug}.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,6 @@ export const query = graphql`
export const Head = ({ data }: PageProps<DataProps>) => (
<>
<title>{data.mdx.frontmatter.title}</title>
<link
rel="stylesheet"
as="style"
crossOrigin=""
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable-dynamic-subset.min.css"
/>
</>
);

Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
"./src/**/*",
"./gatsby-node.ts",
"./gatsby-config.ts",
"./plugins/**/*"
"./plugins/**/*",
"gatsby-browser.tsx"
]
}

0 comments on commit 799784b

Please sign in to comment.