-
Notifications
You must be signed in to change notification settings - Fork 3
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
[FE/feat/#203] 마이페이지 추가 연동
- Loading branch information
Showing
10 changed files
with
134 additions
and
52 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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import logo from 'images/logo.png'; | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
function QuesNavBar() { | ||
const navigate = useNavigate(); | ||
const goToQueslistPage = () => { | ||
navigate('/queslistpage'); | ||
}; | ||
const goToMain = () => { | ||
navigate('/mainpage'); | ||
}; | ||
const goToQues = () => { | ||
navigate('/quespage'); | ||
}; | ||
const goToPrivateQues = () => { | ||
navigate('/privatequespage'); | ||
}; | ||
const goToMypage = () => { | ||
navigate('/mypage'); | ||
}; | ||
|
||
return ( | ||
<div className="w-full h-30 border-b-2 bg-white"> | ||
<div className="flex flex-row"> | ||
<button type="button" onClick={goToMain}> | ||
<img | ||
className="left-0 w-48 max-sm:w-28 pl-12 pr-8 py-8 max-sm:pl-6 max-sm:pr-4 max-sm:py-4" | ||
src={logo} | ||
alt="logo" | ||
/> | ||
</button> | ||
<button | ||
type="button" | ||
className="lg:text-2xl md:text-xl max-sm:text-sm lg:pl-10 lg:pr-8 lg:py-8 lg:my-2 md:pl-8 md:pr-6 md:my-1 sm:pl-6 sm:pr-4 max-sm:pl-6 max-sm:pr-4 max-sm:py-3" | ||
onClick={goToQues} | ||
> | ||
질문 작성 | ||
</button> | ||
<button | ||
type="button" | ||
className="lg:text-2xl md:text-xl max-sm:text-sm lg:pl-10 lg:pr-8 lg:py-8 lg:my-2 md:pl-8 md:pr-6 md:my-1 sm:pl-6 sm:pr-4 max-sm:pl-6 max-sm:pr-4 max-sm:py-3" | ||
onClick={goToPrivateQues} | ||
> | ||
멘토링 질문 작성 | ||
</button> | ||
<button | ||
type="button" | ||
className="lg:text-2xl md:text-xl max-sm:text-sm lg:pl-10 lg:pr-8 lg:py-8 lg:my-2 md:pl-8 md:pr-6 md:my-1 sm:pl-6 sm:pr-4 max-sm:pl-6 max-sm:pr-4 max-sm:py-3" | ||
onClick={goToQueslistPage} | ||
> | ||
질문게시판 | ||
</button> | ||
<button | ||
type="button" | ||
className="lg:text-2xl md:text-xl max-sm:text-sm lg:pl-10 lg:pr-8 lg:py-8 lg:my-2 md:pl-8 md:pr-6 md:my-1 sm:pl-6 sm:pr-4 max-sm:pl-6 max-sm:pr-4 max-sm:py-3 font-bold text-purple-600" | ||
onClick={goToMypage} | ||
> | ||
마이페이지 | ||
</button> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default QuesNavBar; |
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
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 was deleted.
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