Skip to content

Commit

Permalink
mod: #6 홈 화면 ui 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyobeen-Park committed Apr 19, 2024
1 parent 78401fd commit 86970e7
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions app/src/main/java/com/sopt/now/compose/UserItem.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.sopt.now.compose

import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
Expand Down Expand Up @@ -31,28 +32,33 @@ fun UserItem(
modifier = Modifier
.fillMaxWidth()
.padding(vertical = 10.dp),
verticalAlignment = Alignment.CenterVertically
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.SpaceBetween
) {
Image(
painter = painterResource(id = painter),
contentDescription = contentDescription,
Modifier
.width(imageSize)
.height(imageSize)
.background(color = Color(0xFF209672))
)
Row (
verticalAlignment = Alignment.CenterVertically
) {
Image(
painter = painterResource(id = painter),
contentDescription = contentDescription,
Modifier
.width(imageSize)
.height(imageSize)
.background(color = Color(0xFF209672))
)

Text(
text = nickname,
fontSize = fontSize,
fontWeight = FontWeight.Bold,
modifier = Modifier.padding(start = 30.dp)
)
Text(
text = nickname,
fontSize = fontSize,
fontWeight = FontWeight.Bold,
modifier = Modifier.padding(start = 20.dp)
)
}

Text(
text = mbti,
fontSize = fontSize,
modifier = Modifier.padding(start = 160.dp))
fontSize = fontSize
)

}
}

0 comments on commit 86970e7

Please sign in to comment.