Skip to content

Commit

Permalink
refactor(home): update home ui
Browse files Browse the repository at this point in the history
  • Loading branch information
ImaginativeShohag committed Jul 11, 2024
1 parent c6ac532 commit 832ff24
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ fun HomeIndexScreen(
LazyVerticalGrid(
modifier = Modifier.fillMaxSize(),
columns = GridCells.Fixed(2),
contentPadding = PaddingValues(24.dp, 8.dp, 24.dp, 24.dp)
contentPadding = PaddingValues(24.dp, 24.dp, 24.dp, 24.dp)
) {
item(span = { GridItemSpan(maxCurrentLineSpan) }) {
Column(
Expand All @@ -218,7 +218,7 @@ fun HomeIndexScreen(
modifier = Modifier
.padding(
start = 16.dp,
top = 32.dp,
top = 16.dp,
end = 16.dp
)
.fillMaxWidth(),
Expand Down Expand Up @@ -369,7 +369,8 @@ fun HomeIndexScreen(
Row(
Modifier
.fillMaxWidth()
.padding(top = 16.dp, bottom = 12.dp),
.padding(horizontal = 20.dp)
.padding(top = 16.dp, bottom = 16.dp),
verticalAlignment = Alignment.CenterVertically
) {
Column(
Expand All @@ -378,10 +379,10 @@ fun HomeIndexScreen(
horizontalAlignment = Alignment.CenterHorizontally
) {
TextButton(
modifier = Modifier.padding(horizontal = 8.dp),
onClick = {
context.openUrl("https://www.buymeacoffee.com/ImShohag")
}
},
shape = RoundedCornerShape(8.dp)
) {
Image(
painter = painterResource(id = R.drawable.bmc_button),
Expand Down Expand Up @@ -415,7 +416,7 @@ fun HomeIndexScreen(
"https://github.com/ImaginativeShohag/Why-Not-Compose"
)
}
.padding(4.dp),
.padding(horizontal = 8.dp),
text = "GitHub",
fontSize = 14.sp,
fontWeight = FontWeight.Bold
Expand Down

0 comments on commit 832ff24

Please sign in to comment.