-
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.
* feat: 헤더 컴포넌트 수정 작업 * style: 기본 스타일 변경 작업 bg-background 색상 변경 bg-blue 색상 설정 및 기존 코드 변경 * feat: 로그인 페이지 구성 * fix: nav-link 타입 변경 next/link 타입받는 형태로 수정 * chore: back-button 삭제 * style: blue 색상 변수 변경
- Loading branch information
Showing
21 changed files
with
240 additions
and
190 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
File renamed without changes.
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,5 @@ | ||
import KakaoButton from './kakao-button'; | ||
|
||
export default function Page() { | ||
return <KakaoButton />; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,7 @@ | ||
import BackButton from '@/components/common/buttons/back-button'; | ||
import Header from '@/components/header'; | ||
import Link from 'next/link'; | ||
import UserProfile from '@/assets/images/user-profile.png'; | ||
import Image from 'next/image'; | ||
|
||
export default function Page() { | ||
return ( | ||
<> | ||
<Header | ||
leftArea={<BackButton />} | ||
centerArea={ | ||
<h1 className="text-xl font-bold text-blue-700">TypeTime</h1> | ||
} | ||
rightArea={ | ||
<Link href="/"> | ||
<Image src={UserProfile} width={50} height={50} alt="유저 프로필" /> | ||
</Link> | ||
} | ||
/> | ||
<div>{'수정 예정'}</div> | ||
<div className="bg-background">{'수정 예정'}</div> | ||
</> | ||
); | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import Header from './header'; | ||
import Image from 'next/image'; | ||
import NavLink from '../link/nav-link'; | ||
import BackIcon from '@/assets/images/back-icon.png'; | ||
import Profile from './profile'; | ||
|
||
export default function BackHeader() { | ||
return ( | ||
<> | ||
<Header | ||
leftArea={ | ||
<NavLink href="/" scroll={false}> | ||
<Image | ||
src={BackIcon} | ||
width={30} | ||
height={30} | ||
className="ml-4" | ||
alt="뒤로 가기" | ||
/> | ||
</NavLink> | ||
} | ||
centerArea={ | ||
<h1 className="text-xl font-bold text-blue-primary">TypeTime</h1> | ||
} | ||
rightArea={<Profile />} | ||
/> | ||
</> | ||
); | ||
} |
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,21 @@ | ||
import Header from './header'; | ||
import Image from 'next/image'; | ||
import TypeTimeLogo from '@/assets/images/type-time-logo.png'; | ||
import Profile from './profile'; | ||
|
||
export default function BaseHeader() { | ||
return ( | ||
<Header | ||
leftArea={ | ||
<Image | ||
src={TypeTimeLogo} | ||
alt="타입타임 로고" | ||
width={158} | ||
height={63} | ||
priority | ||
/> | ||
} | ||
rightArea={<Profile />} | ||
/> | ||
); | ||
} |
File renamed without changes.
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,26 @@ | ||
import { createClient } from '@/utils/supabase/server'; | ||
import { cookies } from 'next/headers'; | ||
import Image from 'next/image'; | ||
import Link from 'next/link'; | ||
import UserProfile from '@/assets/images/user-profile.png'; | ||
|
||
export default async function Profile() { | ||
const cookieStore = cookies(); | ||
const supabase = createClient(cookieStore); | ||
|
||
const { | ||
data: { user }, | ||
} = await supabase.auth.getUser(); | ||
|
||
return ( | ||
<Link href={user ? '/' : '/auth'} scroll={false}> | ||
<Image | ||
src={UserProfile} | ||
className="mr-4" | ||
width={32} | ||
height={32} | ||
alt="유저 프로필" | ||
/> | ||
</Link> | ||
); | ||
} |
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
Oops, something went wrong.