Skip to content

Commit

Permalink
GoogleFont追加
Browse files Browse the repository at this point in the history
  • Loading branch information
sho-ts committed Nov 25, 2021
1 parent 8fc0163 commit 6b3daaa
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
4 changes: 4 additions & 0 deletions frontend/src/assets/css/base.css
Expand Up @@ -3,6 +3,10 @@ img {
height: auto;
}

body {
font-family: 'Noto Sans JP', sans-serif;
}

@media screen and (min-width: 1024px) {
body {
font-size: 18px;
Expand Down
10 changes: 6 additions & 4 deletions frontend/src/components/organisms/Header.tsx
Expand Up @@ -11,10 +11,12 @@ const Header = () => {
const handleModalClose = () => setOpen(false);

return (
<Wrapper>
<SiteLogo />
<ToggleButton alia-label="menu"><span /></ToggleButton>
</Wrapper>
<>
<Wrapper>
<SiteLogo />
<ToggleButton alia-label="menu"><span /></ToggleButton>
</Wrapper>
</>
)
}

Expand Down
16 changes: 15 additions & 1 deletion frontend/src/pages/_document.tsx
@@ -1,4 +1,4 @@
import Document, { DocumentContext } from 'next/document';
import Document, { Html, Head, Main, NextScript, DocumentContext } from 'next/document'
import { ServerStyleSheet } from 'styled-components';

export default class MyDocument extends Document {
Expand Down Expand Up @@ -27,4 +27,18 @@ export default class MyDocument extends Document {
sheet.seal();
}
}

render() {
return (
<Html>
<Head>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap" rel="stylesheet" />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
)
}
}

0 comments on commit 6b3daaa

Please sign in to comment.