-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* header Arrow img type added 헤더에 뒤로가기로 사용할 이미지를 추가하였고, index.d.ts 에 기본적으로 .png 타입이 적용되도록 작성하였으며, tsconfig.json 에 해당 내용이 반영되도록 추가하였습니다. * header 관련 내용 추가 디자인 변경으로 해당 내용 적용하였습니다. 이제 Header 컴포넌트에 title 이라는 props를 내려주어야합니다. 해당 내용은 정중앙에 위치하도록 설정되었습니다. * 로그인 css 변경 * Lostinfo에 Header, navigate 내용 추가 * 스타일 수정, 아이디비밀번호 일치 내용 변경
- Loading branch information
Showing
8 changed files
with
69 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
declare module "*.ttf"; | ||
declare module "*.png" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.login-header { | ||
width: 100%; | ||
height: 60px; | ||
display: flex; | ||
font-size: 18px; | ||
font-weight: bold; | ||
justify-content: center; | ||
color: #121212; | ||
vertical-align: middle; | ||
line-height: 60px; | ||
border-bottom: 1px solid #E9E7E2; | ||
} | ||
.go-back-iconimg{ | ||
width: 20px; | ||
height: 100%; | ||
} | ||
.go-back-iconimg:hover{ | ||
cursor: pointer; | ||
} | ||
.header-text{ | ||
flex: 1; | ||
} | ||
.header-text > p { | ||
width: fit-content; | ||
padding: 17px auto 17px 162px; | ||
margin: 0 auto; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.startGomingText { | ||
font-size: 20px; | ||
text-align: center; | ||
line-height: 32px; | ||
margin-top: 60px; | ||
} | ||
.inputArea { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,31 @@ | ||
const Header = () => { | ||
import LeftVector from 'assets/images/Vector.png'; | ||
import 'assets/components/header.css' | ||
import { useNavigate } from 'react-router-dom'; | ||
/** | ||
* @설명 Header 컴포넌트 | ||
* @작성자 김상훈 | ||
* @일자 2023.04.04. | ||
* @내용 Header Component | ||
* @param {string} title 표시할 텍스트 | ||
*/ | ||
const Header = ({title}: HEADER_INFO) => { | ||
const navigate = useNavigate() | ||
const goBack = () => { | ||
navigate(-1) | ||
} | ||
return ( | ||
<h1 style={loginHeader}>Goming.</h1> | ||
<div className='login-header'> | ||
<div className='go-back-iconimg' onClick={goBack}> | ||
<img src={LeftVector} alt="뒤로가기" width={7} height={14} /> | ||
</div> | ||
<div className='header-text'> | ||
<p>{title}</p> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
const loginHeader = { | ||
width: '100%', | ||
height: '60px', | ||
fontSize: '24px', | ||
fontWeight: 'bold', | ||
color: '#121212', | ||
verticalAlign: 'middle', | ||
lineHeight: '60px', | ||
|
||
type HEADER_INFO = { | ||
title: string | ||
} | ||
|
||
export default Header |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
"baseUrl": "src", //base 경로 src로 설정. @/~ : src/~ | ||
}, | ||
"include": [ | ||
"src" | ||
"src", | ||
"index.d.ts" | ||
] | ||
} |