File tree 3 files changed +25
-22
lines changed
3 files changed +25
-22
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,15 @@ module.exports = {
5
5
return config ;
6
6
} ,
7
7
images : {
8
- domains : [
9
- 'lh3.googleusercontent.com' ,
10
- 'd3sbrbqucv1146.cloudfront.net' ,
11
- 'd1s5j3nmszux84.cloudfront.net' ,
8
+ remotePatterns : [
9
+ {
10
+ protocol : 'https' ,
11
+ hostname : 'lh3.googleusercontent.com' ,
12
+ } ,
13
+ {
14
+ protocol : 'https' ,
15
+ hostname : 'd3sbrbqucv1146.cloudfront.net' ,
16
+ } ,
12
17
] ,
13
18
} ,
14
19
reactStrictMode : false ,
Original file line number Diff line number Diff line change 1
- 'use client' ;
2
1
import Image from 'next/image' ;
3
2
import getGoogleLogin from '@/src/api/auth/getGoogleLogin' ;
4
3
import svgs from '@/public/svgs/login' ;
@@ -17,27 +16,24 @@ const Login = () => {
17
16
return (
18
17
< div className = "fixed inset-0 flex items-center justify-center bg-black bg-opacity-50" >
19
18
< div
20
- className = " bg-white rounded-lg w-[800px ] h-[530px] py-10 box-border"
19
+ className = " bg-white rounded-lg w-[750px ] h-[530px] py-10 box-border"
21
20
id = "modal-container"
22
21
>
23
22
< div className = "w-full h-full flex items-center box-border py-8" >
24
23
{ /* LEFT */ }
25
24
< div className = "w-3/5 h-full text-center flex flex-col justify-between " >
26
25
< div >
27
- < div className = "text-4xl font-semibold pt-4" >
28
- 미노리에서 학습을 시작하세요!
26
+ < div className = "text-4xl font-semibold leading-tight" >
27
+ 미노리에서 학습을
28
+ < br /> 시작하세요!
29
29
</ div >
30
- < div className = "text-sm text-neutral-400 my -2" >
30
+ < div className = "text-sm text-neutral-400 py -2" >
31
31
소셜 로그인으로 간편하게 즐길 수 있습니다.
32
32
</ div >
33
33
</ div >
34
- < Image
35
- src = { svgs . login }
36
- alt = "logo"
37
- width = { 450 }
38
- height = { 450 }
39
- className = "w-full"
40
- />
34
+ < div className = "w-full flex justify-center items-center" >
35
+ < Image src = { svgs . login } alt = "logo" width = { 370 } height = { 370 } />
36
+ </ div >
41
37
</ div >
42
38
{ /* RIGHT */ }
43
39
< div className = "w-2/5 h-full flex justify-center" >
Original file line number Diff line number Diff line change 1
1
'use client' ;
2
2
import { useEffect , useState } from 'react' ;
3
3
import Image from 'next/image' ;
4
- import intro from '@/public/svgs/intro' ;
5
4
import { Login } from './components/login' ;
5
+ import intro from '@/public/svgs/intro' ;
6
6
7
7
const Page = ( ) => {
8
8
const [ isOpen , setIsOpen ] = useState ( false ) ;
@@ -23,13 +23,15 @@ const Page = () => {
23
23
} ;
24
24
25
25
useEffect ( ( ) => {
26
- document . addEventListener ( 'mousedown' , handleOutsideClick ) ;
26
+ if ( typeof window !== 'undefined' ) {
27
+ document . addEventListener ( 'mousedown' , handleOutsideClick ) ;
27
28
28
- localStorage . clear ( ) ;
29
+ localStorage . clear ( ) ;
29
30
30
- return ( ) => {
31
- document . removeEventListener ( 'mousedown' , handleOutsideClick ) ;
32
- } ;
31
+ return ( ) => {
32
+ document . removeEventListener ( 'mousedown' , handleOutsideClick ) ;
33
+ } ;
34
+ }
33
35
} , [ ] ) ;
34
36
return (
35
37
< main className = "flex h-screen justify-center items-center" >
You can’t perform that action at this time.
0 commit comments