Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion about-view/src/App.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import "./App.css";
import LoginPage from "./Login/LoginPage";
import Header from './component/Header/Header'

function App() {
return (
<div className="App">
{/* <header className="App-header"></header> */}
<Header onLogin={true} userName="Yasmin"/>
<LoginPage />
</div>
);
Expand Down
53 changes: 53 additions & 0 deletions about-view/src/component/Header/Header.css
Original file line number Diff line number Diff line change
@@ -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;
}
29 changes: 29 additions & 0 deletions about-view/src/component/Header/Header.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import React from 'react'
import './Header.css'

const Header = ({onLogin, userName}) => {
return (
<header className="wrap-header">
<div className="logo">
ABOUT
</div>
{onLogin ?
<div className="wrap-signup">
<img src={process.env.PUBLIC_URL + './favicon.ico'} alt="" className="user-img"/>
<div className="margin-div-6"></div>
<h3>{userName}</h3>
</div>
:
<div className="wrap-signup">
<h3>회원가입</h3>
<div className="margin-div-18"></div>
<button className="button-style">로그인</button>
</div>

}

</header>
)
}

export default Header