diff --git a/about-view/src/App.js b/about-view/src/App.js index 7736e45..14d4b7d 100644 --- a/about-view/src/App.js +++ b/about-view/src/App.js @@ -1,10 +1,11 @@ import "./App.css"; import LoginPage from "./Login/LoginPage"; +import Header from './component/Header/Header' function App() { return (
- {/*
*/} +
); diff --git a/about-view/src/component/Header/Header.css b/about-view/src/component/Header/Header.css new file mode 100644 index 0000000..dbce7e7 --- /dev/null +++ b/about-view/src/component/Header/Header.css @@ -0,0 +1,53 @@ +.wrap-header { + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 24px 0 42px; + height: 64px; + position:fixed; + top: 0; + left:0; + right:0; + border-bottom: 1px solid #707070; + background-color: #fff; + z-index: 10; +} +.logo { + font-weight: 800; + font-size: 32px; +} +.wrap-header > div { + display: flex; + align-items: center; +} +.wrap-signup { + font-size: 16px; + display: flex; +} +.button-style { + background-color: #FF0000; + border-radius: 8px; + border: none; + width: 92px; + height: 33px; + font-size:16px; + font-weight: normal; + display: flex; + align-items:center; + justify-content: center; + color: #fff; +} +.margin-div-18 { + width: 18px; + height: 18px; +} +.margin-div-6 { + width: 6px; + height: 6px; +} +.user-img { + width: 24px; + height: 24px; + border-radius: 50%; + border: 1px solid #707070; +} \ No newline at end of file diff --git a/about-view/src/component/Header/Header.jsx b/about-view/src/component/Header/Header.jsx new file mode 100644 index 0000000..858bc39 --- /dev/null +++ b/about-view/src/component/Header/Header.jsx @@ -0,0 +1,29 @@ +import React from 'react' +import './Header.css' + +const Header = ({onLogin, userName}) => { + return ( +
+
+ ABOUT +
+ {onLogin ? +
+ +
+

{userName}

+
+ : +
+

회원가입

+
+ +
+ + } + +
+ ) +} + +export default Header