Skip to content

Commit

Permalink
Merge pull request #67 from SystemConsultantGroup/feat/42-loginPage
Browse files Browse the repository at this point in the history
[FEAT] 로그인 페이지 구현 및 로그인 박스 수정
  • Loading branch information
moony1204 authored Sep 19, 2024
2 parents dfa2356 + fca21cf commit 47fba3f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
justify-content: flex-start;
min-height: 100vh;
}

.loginContainer {
display: flex;
align-items: center;
justify-content: center;
margin-top: 100px;
margin-top: 200px;
margin-bottom: 200px;
}

/* Desktop Default */
Expand All @@ -19,21 +20,21 @@
/* Tablet Landscape */
@media screen and (max-width: 1280px) {
.loginContainer {
margin-top: 80px;
margin-top: 100px;
}
}

/* Tablet Portrait */
@media screen and (max-width: 1024px) {
.loginContainer {
margin-top: 60px;
margin-top: 140px;
}
}

/* Mobile Landscape and Small Tablets */
@media screen and (max-width: 768px) {
.loginContainer {
margin-top: 40px;
margin-top: 120px;
}

.pageContainer {
Expand All @@ -44,7 +45,7 @@
/* Mobile Portrait */
@media screen and (max-width: 480px) {
.loginContainer {
margin-top: 20px;
margin-top: 80px;
}

.pageContainer {
Expand Down
14 changes: 10 additions & 4 deletions src/app/(user)/(auth)/login/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
// src/app/(user)/(auth)/login/page.tsx
import React from "react";
import LoginPage from "@/components/pages/loginPage/loginPage";
import { LoginBox } from "@/components/common/LoginBox/LoginBox";
import styles from "./loginPage.module.css";

export default function Page() {
return <LoginPage />;
export default function LoginPage() {
return (
<div className={styles.pageContainer}>
<div className={styles.loginContainer}>
<LoginBox />
</div>
</div>
);
}
6 changes: 3 additions & 3 deletions src/components/common/LoginBox/LoginBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import classes from "./LoginBox.module.css";

export function LoginBox() {
const handleKakaoLogin = () => {
const kakaoClientId = "REST API KEY";
const redirectUri = "http://localhost:3000/auth";
const kakaoUrl = `https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=${kakaoClientId}&redirect_uri=${redirectUri}/login/kakao`;
const kakaoClientId = "71c7a5552be46df39f8781d45361e718";
const redirectUri = "http://localhost:8000/auth/login/kakao";
const kakaoUrl = `https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=${kakaoClientId}&redirect_uri=${redirectUri}`;
window.location.href = kakaoUrl;
};

Expand Down
9 changes: 0 additions & 9 deletions src/components/pages/loginPage/loginPage.story.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions src/components/pages/loginPage/loginPage.tsx

This file was deleted.

0 comments on commit 47fba3f

Please sign in to comment.