-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
69 additions
and
0 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
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,6 @@ | ||
import axios from 'axios'; | ||
|
||
export const instance = axios.create({ | ||
baseURL: import.meta.env.VITE_BASE_URL, | ||
timeout: 1000, | ||
}); |
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,37 @@ | ||
import { Link } from 'react-router-dom'; | ||
import google from '@/assets/google.png'; | ||
import kakao from '@/assets/kakao.png'; | ||
import naver from '@/assets/naver.png'; | ||
|
||
interface LoginButtonProps { | ||
to: string; | ||
src: string; | ||
alt: string; | ||
} | ||
|
||
export const Login = () => { | ||
return ( | ||
<div className="flex h-[calc(100vh-8rem)] flex-col items-center justify-center"> | ||
<main className="relative flex flex-col gap-36 rounded-lg bg-gradient-to-br from-[#ffe259] to-[#ffa751] p-16 py-24 shadow-sm"> | ||
<div className="absolute inset-0 rounded-md bg-white/40 backdrop-blur-sm" /> | ||
<section className="relative z-10"> | ||
<h2 className="display-bold24">스마트한 투자의 첫걸음,</h2> | ||
<p className="display-medium20">주춤주춤과 함께해요!</p> | ||
</section> | ||
<section className="relative z-10 flex flex-col gap-4"> | ||
<LoginButton to="/" src={google} alt="구글 로그인" /> | ||
<LoginButton to="/" src={kakao} alt="카카오 로그인" /> | ||
<LoginButton to="/" src={naver} alt="네이버 로그인" /> | ||
</section> | ||
</main> | ||
</div> | ||
); | ||
}; | ||
|
||
export const LoginButton = ({ to, src, alt }: LoginButtonProps) => { | ||
return ( | ||
<Link to={to} className="w-72"> | ||
<img src={src} alt={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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './Login'; |
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