Skip to content

Commit

Permalink
refactor :: 배너 취업률 이미지 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Tmdhoon2 committed Feb 4, 2024
1 parent 0ac211b commit a791fd7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions feature/home/src/main/java/team/retum/home/ui/HomeScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private fun ColumnScope.Banner(pagerState: PagerState) {
pageSpacing = 12.dp,
) {
when (it % PAGE_COUNT) {
in 0..10000 -> {
0 -> {
EmploymentRate(rate = 76.4)
}

Expand Down Expand Up @@ -190,11 +190,12 @@ private fun EmploymentRate(
onClick = {},
enabled = false,
) {
Row(modifier = Modifier.padding(24.dp)) {
Column {
Row(verticalAlignment = Alignment.CenterVertically) {
Column(modifier = Modifier.padding(24.dp)) {
Text(
text = stringResource(id = R.string.employment_rate, 6),
style = JobisTypography.HeadLine,
color = JobisTheme.colors.onBackground,
)
Text(
text = "$rate%",
Expand All @@ -217,6 +218,10 @@ private fun EmploymentRate(
style = JobisTypography.Description,
)
}
Image(
painter = painterResource(id = R.drawable.ic_file),
contentDescription = "file",
)
}
}
}
Expand Down Expand Up @@ -290,6 +295,7 @@ private fun StudentInformation(
Text(
text = "$number $name",
style = JobisTypography.SubHeadLine,
color = JobisTheme.colors.onBackground,
)
Text(
text = department,
Expand Down Expand Up @@ -350,6 +356,7 @@ private fun Menu(
Text(
text = "$text ->",
style = JobisTypography.HeadLine,
color = JobisTheme.colors.onBackground,
)
Spacer(modifier = Modifier.height(16.dp))
Surface(
Expand All @@ -360,6 +367,7 @@ private fun Menu(
.align(Alignment.End),
) {
Image(
modifier = Modifier.background(JobisTheme.colors.background),
painter = painterResource(id = icon),
contentDescription = "menu icon",
)
Expand Down
Binary file added feature/home/src/main/res/drawable/ic_file.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a791fd7

Please sign in to comment.