|
1 | 1 | package com.threegap.bitnagil.presentation.onboarding.component.template |
2 | 2 |
|
3 | | -import androidx.compose.foundation.background |
| 3 | +import androidx.compose.foundation.Image |
4 | 4 | import androidx.compose.foundation.layout.Box |
5 | 5 | import androidx.compose.foundation.layout.Column |
6 | 6 | import androidx.compose.foundation.layout.Spacer |
| 7 | +import androidx.compose.foundation.layout.aspectRatio |
7 | 8 | import androidx.compose.foundation.layout.fillMaxWidth |
8 | 9 | import androidx.compose.foundation.layout.height |
9 | 10 | import androidx.compose.foundation.layout.padding |
10 | 11 | import androidx.compose.material3.Text |
11 | 12 | import androidx.compose.runtime.Composable |
12 | 13 | import androidx.compose.runtime.DisposableEffect |
| 14 | +import androidx.compose.ui.Alignment |
13 | 15 | import androidx.compose.ui.Modifier |
14 | | -import androidx.compose.ui.graphics.Color |
| 16 | +import androidx.compose.ui.layout.ContentScale |
| 17 | +import androidx.compose.ui.res.painterResource |
15 | 18 | import androidx.compose.ui.text.buildAnnotatedString |
16 | 19 | import androidx.compose.ui.text.withStyle |
17 | 20 | import androidx.compose.ui.unit.dp |
18 | 21 | import com.threegap.bitnagil.designsystem.BitnagilTheme |
| 22 | +import com.threegap.bitnagil.designsystem.R |
19 | 23 | import com.threegap.bitnagil.presentation.onboarding.model.OnBoardingAbstractTextItem |
20 | 24 |
|
21 | 25 | @Composable |
@@ -50,15 +54,23 @@ fun OnBoardingAbstractTemplate( |
50 | 54 | OnBoardingAbstractText(onBoardingAbstractTextList = onBoardingAbstractTextItemList) |
51 | 55 | } |
52 | 56 |
|
53 | | - Spacer(modifier = Modifier.height(36.dp)) |
| 57 | + Spacer(modifier = Modifier.height(83.dp)) |
54 | 58 |
|
55 | | - // todo: 그래픽 작업 추가하기 |
56 | 59 | Box( |
57 | 60 | modifier = Modifier |
58 | 61 | .fillMaxWidth() |
59 | | - .weight(1f) |
60 | | - .background(color = Color(0xFFC2C4C8)), |
61 | | - ) |
| 62 | + .weight(1f), |
| 63 | + contentAlignment = Alignment.TopCenter, |
| 64 | + ) { |
| 65 | + Image( |
| 66 | + painter = painterResource(R.drawable.onboarding_character), |
| 67 | + contentDescription = null, |
| 68 | + contentScale = ContentScale.Fit, |
| 69 | + modifier = Modifier |
| 70 | + .padding(horizontal = 15.dp) |
| 71 | + .aspectRatio(295f / 280f), |
| 72 | + ) |
| 73 | + } |
62 | 74 | } |
63 | 75 | } |
64 | 76 |
|
|
0 commit comments