@@ -12,6 +12,7 @@ import androidx.compose.foundation.layout.fillMaxWidth
1212import androidx.compose.foundation.layout.height
1313import androidx.compose.foundation.layout.padding
1414import androidx.compose.foundation.layout.statusBarsPadding
15+ import androidx.compose.foundation.layout.width
1516import androidx.compose.foundation.shape.RoundedCornerShape
1617import androidx.compose.material3.Text
1718import androidx.compose.runtime.Composable
@@ -44,12 +45,6 @@ fun LoginScreenContainer(
4445
4546 viewModel.collectSideEffect { sideEffect ->
4647 when (sideEffect) {
47- is LoginSideEffect .RequestKakaoAccountLogin -> {
48- KakaoLoginHandlerImpl .accountLogin(context) { token, error ->
49- viewModel.kakaoLogin(token, error)
50- }
51- }
52-
5348 is LoginSideEffect .NavigateToHome -> {
5449 navigateToHome()
5550 }
@@ -78,6 +73,10 @@ private fun LoginScreen(
7873 val screenHeight = with (LocalDensity .current) {
7974 windowInfo.containerSize.height.toDp()
8075 }
76+ val screenWidth = with (LocalDensity .current) {
77+ windowInfo.containerSize.width.toDp()
78+ }
79+ val widthRatio = 260f / 360f
8180
8281 Column (
8382 horizontalAlignment = Alignment .CenterHorizontally ,
@@ -86,24 +85,26 @@ private fun LoginScreen(
8685 .statusBarsPadding()
8786 .background(BitnagilTheme .colors.white),
8887 ) {
89- Spacer (modifier = Modifier .height(screenHeight * 0.0748f ))
88+ Spacer (modifier = Modifier .height(screenHeight * 0.105f ))
9089
9190 Text (
9291 text = " 빛나길에 오신걸 환영해요!" ,
9392 color = BitnagilTheme .colors.navy500,
9493 style = BitnagilTheme .typography.title2Bold,
9594 textAlign = TextAlign .Center ,
96- modifier = Modifier .fillMaxWidth(),
95+ modifier = Modifier
96+ .fillMaxWidth()
97+ .height(60 .dp),
9798 )
9899
99- Spacer (modifier = Modifier .height(screenHeight * 0.185f ))
100+ Spacer (modifier = Modifier .height(screenHeight * 0.136f ))
100101
101102 Image (
102103 painter = painterResource(R .drawable.intro_character),
103104 contentDescription = null ,
104105 contentScale = ContentScale .Fit ,
105106 modifier = Modifier
106- .padding( 50 .dp )
107+ .width(screenWidth * widthRatio )
107108 .aspectRatio(260f / 295f ),
108109 )
109110
0 commit comments