Skip to content

Commit bb553de

Browse files
committed
Gnb와 로그인 버튼 겹치는 문제 수정
1 parent fde9b71 commit bb553de

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

src/app/(auth)/login/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Image from 'next/image';
33
import LoginForm from '@/components/auth/LoginForm';
44

55
const Login = () => (
6-
<div className="login h-dvh flex justify-center">
6+
<div className="login h-dvh flex justify-center z-[100]">
77
<div className="flex flex-col text-center flex-1">
88
<h1 className="py-[22.5px] border-b mb-[40px] border-b-gray-200 font-semibold text-gray-900">
99
로그인

src/layout/navigation/Gnb.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
import Link from 'next/link';
22

3+
import { getUser } from '@/lib/auth';
4+
35
import '@/styles/global.css';
46

5-
const Gnb = () => {
7+
const Gnb = async () => {
8+
try {
9+
const user = await getUser();
10+
11+
if (!user) {
12+
return null;
13+
}
14+
} catch {
15+
return null;
16+
}
17+
618
return (
719
<nav className="fixed z-5 bottom-0 max-w-[780px] w-full before:content-[''] before:w-full before:h-[130px] before:absolute before:bottom-0 before:left-0 before:bg-gradient-to-t from-white to-transparent">
820
<ul className="relative z-10 flex pt-[8px] pb-[24px] bg-white rounded-[20px_20px_0_0] shadow-[0_-4px_16px_0_#0000000D]">

0 commit comments

Comments
 (0)