1
- import React , { useEffect , useState } from 'react' ;
2
- import Header from " ./component/Header" ;
1
+ import React , { useEffect , useState } from 'react' ;
2
+ import Header from ' ./component/Header' ;
3
3
import { useNavigate } from 'react-router-dom' ;
4
- import SearchBar from " ./component/SearchBar" ;
5
- import IntegratedRanking from " ./component/IntegratedRanking" ;
6
- import LiveDiscussion from " ./component/LiveDiscussion" ;
7
- import CommunityRanking from " ./component/CommunityRanking" ;
8
- import GreetingMessage from " ./component/GreetingMessage" ;
9
- import logo from " @images/etc/logo.png" ;
10
- import victory_banner from " @images/victory_banner.png" ;
4
+ import SearchBar from ' ./component/SearchBar' ;
5
+ import IntegratedRanking from ' ./component/IntegratedRanking' ;
6
+ import LiveDiscussion from ' ./component/LiveDiscussion' ;
7
+ import CommunityRanking from ' ./component/CommunityRanking' ;
8
+ import GreetingMessage from ' ./component/GreetingMessage' ;
9
+ import logo from ' @images/etc/logo.png' ;
10
+ import victory_banner from ' @images/victory_banner.png' ;
11
11
12
12
const HomePage = ( ) => {
13
13
// 여기에 실제 로그인 상태를 확인하는 로직을 추가해야 함 -> 추가함
14
14
const [ isLoggedIn , setIsLoggedIn ] = useState < boolean > ( false ) ;
15
15
const navigate = useNavigate ( ) ;
16
16
17
17
useEffect ( ( ) => {
18
- const token = localStorage . getItem ( 'accessToken' ) ;
18
+ const token = localStorage . getItem ( 'accessToken' ) ;
19
19
if ( token ) {
20
20
setIsLoggedIn ( true ) ;
21
21
} else {
@@ -28,7 +28,7 @@ const HomePage = () => {
28
28
} ;
29
29
30
30
return (
31
- < div className = "bg-background w-[390px] mx-auto scrollbar-hidden" >
31
+ < div className = "bg-background w-custom max-w-custom mx-auto scrollbar-hidden" >
32
32
< Header isLoggedIn = { isLoggedIn } />
33
33
< GreetingMessage isLoggedIn = { isLoggedIn } />
34
34
< div className = "flex items-center ml-[24px] mr-[24px] mt-4" >
@@ -37,10 +37,14 @@ const HomePage = () => {
37
37
</ div >
38
38
< IntegratedRanking />
39
39
< LiveDiscussion />
40
- < img src = { victory_banner } alt = "victory_banner" className = "w-[390px] mx-auto mt-[40px] px-[20px]" />
41
- < CommunityRanking />
40
+ < img
41
+ src = { victory_banner }
42
+ alt = "victory_banner"
43
+ className = "w-[100%] mt-[40px] px-[20px]"
44
+ />
45
+ < CommunityRanking />
42
46
</ div >
43
47
) ;
44
- }
48
+ } ;
45
49
46
50
export default HomePage ;
0 commit comments