Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

자잘한 오류 수정 #27

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
FIX: 크기 변동 수정
VsangkyeongV committed Jan 15, 2024
commit e11d821b112c420431f7dd452643c2dacd1979c3
20 changes: 10 additions & 10 deletions src/app/components/components/naviBar.tsx
Original file line number Diff line number Diff line change
@@ -25,22 +25,22 @@ export const NavBar = () => {
console.log("response", response);
response?.check ? setIsLogin(true) : setIsLogin(false);
setColor(response?.information?.color);
setNick(response?.information?.nickName);
setNick(response?.information?.nickname);
} catch (error) {
console.error("Error fetching login state:", error);
// 오류 처리를 여기에 추가할 수 있습니다.
}
};

fetchData();
}, []);

return (
<div className="w-full h-[70px] bg-white box-border flex items-center justify-center">
<div className="flex">
<div className="flex justify-around ">
<div className="flex gap-[64px] items-center">
<img
src="/logo.svg"
className="w-[108px] h-[40px]"
className="w-[108px] h-[40px] cursor-pointer"
onClick={() => handleRoute("/")}
></img>
<div
@@ -62,9 +62,9 @@ export const NavBar = () => {
동아리·학회
</div>
</div>
<div className="flex justify-end gap-[42px] ml-[630px] items-center">
<>
{isLogin ? (
<>
<div className="flex justify-end gap-[42px] ml-[660px] items-center">
<div
className={`flex justify-center pt-[6px] w-[46px] h-[46px] rounded-[100px] bg-[${color}] z-0 cursor-pointer`}
onClick={() => router.push("/myPage")}
@@ -81,9 +81,9 @@ export const NavBar = () => {
>
{nick}
</div>
</>
</div>
) : (
<>
<div className="flex justify-end gap-[42px] ml-[600px] items-center">
<div
className="font-bold text-[18px] flex cursor-pointer"
onClick={() => handleRoute("/login")}
@@ -96,9 +96,9 @@ export const NavBar = () => {
>
회원가입
</div>
</>
</div>
)}
</div>
</>
</div>
</div>
);