diff --git a/src/components/Header.jsx b/src/components/Header.jsx index 20cdde0..67ef39c 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -1,10 +1,21 @@ // Header.jsx +import styles from './Header.module.scss'; +import { Link } from 'react-router-dom'; + function Header() { return ( -
-

Header

+
+
); } +//위 버튼은 컴포넌트 스타일을 적용할 것임 export default Header; diff --git a/src/components/Header.module.scss b/src/components/Header.module.scss new file mode 100644 index 0000000..46ef19a --- /dev/null +++ b/src/components/Header.module.scss @@ -0,0 +1,36 @@ +@import url(../global.scss); + +$headerH: 65px; + +.header { + display: flex; + padding: 12px 24px; + border-bottom: 1px solid #ededed; + justify-content: center; + height: $headerH; +} + +.frame { + display: flex; + justify-content: space-between; + align-items: center; + max-width: 1248px; + width: 100%; +} + +.title { + display: flex; + align-items: center; + color: #4a494f; + font-family: Poppins; + font-size: 19.971px; + line-height: normal; + &::before { + content: ''; + background-image: url('../assets/Rolling_icon.png'); + display: inline-block; + width: 27.818px; + height: 27.658px; + margin-right: 8px; + } +} diff --git a/src/index.js b/src/index.js index 8db5acb..593edf1 100644 --- a/src/index.js +++ b/src/index.js @@ -1,8 +1,8 @@ -import React from "react"; -import ReactDOM from "react-dom/client"; -import App from "./App"; +import React from 'react'; +import ReactDOM from 'react-dom/client'; +import App from './App'; -const root = ReactDOM.createRoot(document.getElementById("root")); +const root = ReactDOM.createRoot(document.getElementById('root')); root.render( diff --git a/src/reset.scss b/src/reset.scss index 3089150..c9a5005 100644 --- a/src/reset.scss +++ b/src/reset.scss @@ -3,6 +3,9 @@ License: none (public domain) */ +* { + box-sizing: border-box; +} html, body, div, @@ -89,6 +92,7 @@ video { border: 0; font-size: 100%; vertical-align: baseline; + text-decoration: none; } /* HTML5 display-role reset for older browsers */ article, @@ -119,7 +123,7 @@ blockquote:before, blockquote:after, q:before, q:after { - content: ""; + content: ''; content: none; } table {