Skip to content

Commit c07908b

Browse files
authored
Merge pull request #58 from MBTips/feature/로그인-페이지-개발
feat: 로그인 화면 ui 개발 완료
2 parents de0f033 + 25c13c8 commit c07908b

File tree

7 files changed

+76
-1
lines changed

7 files changed

+76
-1
lines changed

public/image/banner_login.png

424 KB
Loading

src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import ChatRecommend from "@/pages/ChatRecommend";
66
import ChatTips from "@/pages/ChatTips";
77
import ChatTemporature from "@/pages/ChatTemporature";
88
import Content from "@/pages/Content";
9+
import Login from "@/pages/Login";
910

1011
const App = () => {
1112
return (
@@ -18,6 +19,7 @@ const App = () => {
1819
<Route path="/chat-tips" element={<ChatTips />} />
1920
<Route path="/chat-temporature" element={<ChatTemporature />} />
2021
<Route path="/content/:id" element={<Content />} />
22+
<Route path="/login" element={<Login />} />
2123
</Routes>
2224
</Router>
2325
);

src/components/TermsAndPrivacy.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
const TermsAndPrivacy = () => {
2+
const togglePopup = (mode: "terms" | "privacy") => {
3+
// 이용약관 및 개인정보처리방침 메시지 팝업
4+
};
5+
6+
return (
7+
<div className="flex items-center w-screen text-gray-900 text-sm lex">
8+
<button
9+
onClick={() => togglePopup("terms")}
10+
className="flex justify-center border-r w-full hover:font-bold"
11+
>
12+
이용약관
13+
</button>
14+
<button
15+
onClick={() => togglePopup("privacy")}
16+
className="w-full hover:font-bold"
17+
>
18+
개인정보처리방침
19+
</button>
20+
</div>
21+
);
22+
};
23+
24+
export default TermsAndPrivacy;
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { MouseEvent } from "react";
2+
3+
const KakaoLoginButton = () => {
4+
const handleClick = (e: MouseEvent) => {};
5+
6+
return (
7+
<button
8+
onClick={handleClick}
9+
className="flex justify-center items-center bg-[#F9E622] hover:opacity-80 rounded-lg w-[320px] h-[56px] font-bold text-black"
10+
>
11+
카카오로 시작하기
12+
</button>
13+
);
14+
};
15+
16+
export default KakaoLoginButton;

src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
color-scheme: light dark;
1010
color: black;
11-
background-color: #D0D5DD;
11+
background-color: white;
1212

1313
font-synthesis: none;
1414
text-rendering: optimizeLegibility;

src/pages/Login.tsx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import KakaoLoginButton from "@/components/button/KakaoLoginButton";
2+
import TermsAndPrivacy from "@/components/TermsAndPrivacy";
3+
4+
const Login = () => {
5+
return (
6+
<div className="flex flex-col items-center">
7+
<img
8+
src="/image/banner_login.png"
9+
alt="로그인 페이지 이미지"
10+
className="w-full h-[391px]"
11+
/>
12+
<h1 className="mt-8 font-bold text-3xl text-center whitespace-pre-wrap">
13+
MBTI 성향 기반
14+
<br />
15+
AI 채팅 시뮬레이션으로
16+
<br />
17+
대화 연습과 꿀팁 얻어가세요
18+
</h1>
19+
<div className="mt-[39px] text-gray-900 text-xl">
20+
대화 연습부터, 피드백까지 드려요
21+
</div>
22+
<div className="mt-[47px]">
23+
<KakaoLoginButton />
24+
</div>
25+
<div className="mt-[72px]">
26+
<TermsAndPrivacy />
27+
</div>
28+
</div>
29+
);
30+
};
31+
32+
export default Login;

tailwind.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const config = {
2323
foreground: "#000000"
2424
},
2525
fontSize: {
26+
"3xl": "24px",
2627
"2xl": "20px",
2728
xl: "18px",
2829
lg: "16px",

0 commit comments

Comments
 (0)