Skip to content

Commit 13aabbe

Browse files
committed
layout에서 global style을 import하도록 변경
1 parent 4629fab commit 13aabbe

File tree

4 files changed

+50
-26
lines changed

4 files changed

+50
-26
lines changed

gatsby-browser.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
import '@fontsource/montserrat';
2-
import './src/styles/_reset.scss';
3-
import './src/styles/_colors.scss';
4-
import './src/styles/_global-style.scss';
5-
import './src/styles/_markdown-style.scss';
6-
import 'prismjs/themes/prism-tomorrow.css';
1+
require('typeface-montserrat');

src/components/layout/style.scss

-18
This file was deleted.

src/components/layout/index.js renamed to src/layout/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { useStaticQuery, graphql } from 'gatsby';
3-
import PageHeader from '../page-header';
4-
import PageFooter from '../page-footer';
3+
import PageHeader from '../components/page-header';
4+
import PageFooter from '../components/page-footer';
55
import './style.scss';
66

77
const Layout = ({ children }) => {

src/layout/style.scss

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
@use '../styles/variables'as *;
2+
@use '../styles/mixins'as *;
3+
@use '../styles/reset'as *;
4+
@use '../styles/colors'as *;
5+
6+
* {
7+
box-sizing: border-box;
8+
appearance: none;
9+
}
10+
11+
html {
12+
width: 100%;
13+
height: 100%;
14+
overflow-y: scroll;
15+
font-size: 14px;
16+
}
17+
18+
body {
19+
background-color: var(--background-color) !important;
20+
}
21+
22+
23+
a {
24+
color: var(--link-text-color);
25+
}
26+
27+
.page-wrapper {
28+
display: flex;
29+
flex-direction: column;
30+
justify-content: center;
31+
align-items: center;
32+
width: 100%;
33+
min-height: 100vh;
34+
word-break: keep-all;
35+
-webkit-font-smoothing: antialiased;
36+
-moz-osx-font-smoothing: grayscale;
37+
font-family: $font-family;
38+
color: var(--primary-text-color);
39+
@include content-horizontal-padding;
40+
41+
.page-content {
42+
display: flex;
43+
flex-direction: column;
44+
align-items: center;
45+
@include content-max-width;
46+
}
47+
}

0 commit comments

Comments
 (0)