-
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.
Browse files
Browse the repository at this point in the history
Feature/base route/#3
- Loading branch information
Showing
25 changed files
with
2,300 additions
and
2,198 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import Header from './Header'; | ||
|
||
const Community = () => { | ||
const navigate = useNavigate(); // useNavigate를 호출 | ||
return ( | ||
<div> | ||
<Header /> | ||
<h2>커뮤니티</h2> | ||
<button onClick={() => navigate('/interview/main')}>면접 메인</button> | ||
<button onClick={() => navigate('/vote')}>투표</button> | ||
|
||
<button onClick={() => navigate('/post/info')}>정보 게시물</button> | ||
<button onClick={() => navigate('/post/qna')}>Q&A 게시물</button> | ||
|
||
|
||
</div> | ||
); | ||
}; | ||
|
||
export default Community; |
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,91 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
import styled from 'styled-components'; | ||
|
||
const HeaderContainer = styled.header` | ||
top: 0; | ||
height: 80px; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
margin: 0 30px; | ||
z-index: 9; | ||
`; | ||
|
||
const StyledLink = styled(Link)` | ||
text-decoration: none; | ||
color: var(--color); | ||
font-size: 18px; | ||
cursor: pointer; | ||
`; | ||
|
||
const HeaderGnb = styled.div` | ||
display: flex; | ||
justify-content: flex-start; | ||
gap: 100px; | ||
`; | ||
|
||
const MainLink = styled(StyledLink)` | ||
font-size: 34px; | ||
font-weight: 700; | ||
`; | ||
|
||
const GnbMenu = styled.div` | ||
display: flex; | ||
gap: 30px; | ||
align-items: center; | ||
`; | ||
|
||
const HeaderSign = styled.div` | ||
display: flex; | ||
gap: 30px; | ||
`; | ||
|
||
const LogoutButton = styled.span` | ||
color: var(--color); | ||
font-size: 18px; | ||
cursor: pointer; | ||
`; | ||
|
||
const Header = ({ color }) => { | ||
|
||
const style = { | ||
'background': color, | ||
'color': 'black' | ||
}; | ||
|
||
return ( | ||
<HeaderContainer style={style}> | ||
<HeaderGnb style={style}> | ||
<MainLink to="/"> | ||
<span>용가리</span> | ||
</MainLink> | ||
<GnbMenu> | ||
<StyledLink to="/interview/main"> | ||
<span>면접보러가기</span> | ||
</StyledLink> | ||
<StyledLink to="/store"> | ||
<span>상점</span> | ||
</StyledLink> | ||
<StyledLink to="/community"> | ||
<span>커뮤니티</span> | ||
</StyledLink> | ||
</GnbMenu> | ||
</HeaderGnb> | ||
<HeaderSign style={style}> | ||
|
||
<div> | ||
<StyledLink to="/auth/signin">로그인</StyledLink> | ||
<StyledLink to="/auth/signup">회원가입</StyledLink> | ||
</div> | ||
<div> | ||
<span>닉네임</span> | ||
<StyledLink to="/member">마이페이지</StyledLink> | ||
</div> | ||
|
||
</HeaderSign> | ||
</HeaderContainer> | ||
); | ||
}; | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import Header from './Header'; | ||
|
||
const Home = () => { | ||
const navigate = useNavigate(); // useNavigate를 호출 | ||
|
||
return ( | ||
<div> | ||
<Header /> | ||
<h2>홈 페이지</h2> | ||
<button onClick={() => navigate('/interview/main')}>면접 메인</button> | ||
<button onClick={() => navigate('/community')}>커뮤니티</button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Home; |
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,16 @@ | ||
import React from 'react'; | ||
|
||
import { useNavigate } from 'react-router-dom'; | ||
import Header from './Header'; | ||
|
||
const Member = () => { | ||
const navigate = useNavigate(); // useNavigate를 호출 | ||
return ( | ||
<div> | ||
<Header /> | ||
<h2>마이페이지</h2> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Member; |
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,16 @@ | ||
import React from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import Header from './Header'; | ||
|
||
const Store = () => { | ||
const navigate = useNavigate(); // useNavigate를 호출 | ||
return ( | ||
<div> | ||
<Header /> | ||
<h2>상점</h2> | ||
<button onClick={() => navigate('/interview/main')}>면접 메인</button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Store; |
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,16 @@ | ||
import React from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import Header from './Header'; | ||
|
||
const Vote = () => { | ||
const navigate = useNavigate(); // useNavigate를 호출 | ||
return ( | ||
<div> | ||
<Header /> | ||
<h2>투표</h2> | ||
|
||
</div> | ||
); | ||
}; | ||
|
||
export default Vote; |
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,15 @@ | ||
import React from 'react'; | ||
import Header from '../Header'; | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
const Signin = () => { | ||
const navigate = useNavigate(); // useNavigate를 호출 | ||
return ( | ||
<div> | ||
<Header /> | ||
<h2>로그인 페이지</h2> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Signin; |
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,17 @@ | ||
import React from 'react'; | ||
import Header from '../Header'; | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
|
||
const Signup = () => { | ||
const navigate = useNavigate(); // useNavigate를 호출 | ||
return ( | ||
<div> | ||
<Header /> | ||
<h2>회원가입 페이지</h2> | ||
<button onClick={() => navigate('../member/signin')}>회원가입</button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Signup; |
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,18 @@ | ||
import React from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import Header from '../Header'; | ||
|
||
const ChoiceInterviewMode = () => { | ||
const navigate = useNavigate(); // useNavigate를 호출 | ||
return ( | ||
<div> | ||
<Header /> | ||
<h2>면접 모드 선택</h2> | ||
<button onClick={() => navigate('/interview/practice-choice-stack')}>연습 선택 스택</button> | ||
<button onClick={() => navigate('/interview/choice-stack')}>면접 선택 스택</button> | ||
|
||
</div> | ||
); | ||
}; | ||
|
||
export default ChoiceInterviewMode; |
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,17 @@ | ||
import React from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import Header from '../Header'; | ||
|
||
const Interview = () => { | ||
const navigate = useNavigate(); // useNavigate를 호출 | ||
|
||
return ( | ||
<div> | ||
<Header /> | ||
<h2>면접 모드 선택</h2> | ||
<button onClick={() => navigate('/interview/result')}>면접 결과</button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Interview; |
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,17 @@ | ||
import React from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import Header from '../Header'; | ||
|
||
const InterviewChoiceStack = () => { | ||
const navigate = useNavigate(); // useNavigate를 호출 | ||
|
||
return ( | ||
<div> | ||
<Header /> | ||
<h2>스택선택하기</h2> | ||
<button onClick={() => navigate('/interview')}>면접</button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default InterviewChoiceStack; |
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,18 @@ | ||
import React from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import Header from '../Header'; | ||
|
||
|
||
const InterviewMain = () => { | ||
const navigate = useNavigate(); // useNavigate를 호출 | ||
return ( | ||
<div> | ||
<Header /> | ||
<h2>면접 메인 페이지</h2> | ||
<button onClick={() => navigate('/interview/practice-choice-stack')}>연습 선택 스택</button> | ||
<button onClick={() => navigate('/interview/choice-stack')}>면접 선택 스택</button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default InterviewMain; |
Oops, something went wrong.