@@ -4,6 +4,7 @@ import androidx.annotation.StringRes
44import androidx.compose.foundation.layout.Arrangement
55import androidx.compose.foundation.layout.Column
66import androidx.compose.foundation.layout.PaddingValues
7+ import androidx.compose.foundation.layout.Row
78import androidx.compose.foundation.layout.Spacer
89import androidx.compose.foundation.layout.fillMaxSize
910import androidx.compose.foundation.layout.padding
@@ -15,13 +16,17 @@ import androidx.compose.material.icons.automirrored.filled.ArrowForward
1516import androidx.compose.material3.Button
1617import androidx.compose.material3.ButtonDefaults
1718import androidx.compose.material3.Icon
19+ import androidx.compose.material3.MaterialTheme
1820import androidx.compose.material3.Text
1921import androidx.compose.runtime.Composable
2022import androidx.compose.ui.Alignment
2123import androidx.compose.ui.Modifier
2224import androidx.compose.ui.res.stringResource
25+ import androidx.compose.ui.text.font.FontWeight
26+ import androidx.compose.ui.text.style.TextAlign
2327import androidx.compose.ui.tooling.preview.Preview
2428import androidx.compose.ui.unit.dp
29+ import androidx.compose.ui.unit.sp
2530import com.example.armsapp.R
2631import com.example.armsapp.data.listProjects
2732import com.example.armsapp.model.EndPoints
@@ -44,30 +49,47 @@ fun HomeScreen(
4449 modifier = modifier
4550 .fillMaxSize()
4651 .padding(contentPaddingValues)
52+ .padding(start = 10 .dp, end = 10 .dp)
4753 .verticalScroll(state = scrollState),
4854 verticalArrangement = Arrangement .SpaceEvenly ,
4955 horizontalAlignment = Alignment .CenterHorizontally
5056 ) {
5157 Text (
5258 text = stringResource(R .string.title),
53- modifier = Modifier .padding(top = 10 .dp, bottom = 10 .dp),
59+ fontSize = 40 .sp,
60+ fontWeight = FontWeight .Black ,
61+ color = MaterialTheme .colorScheme.onBackground,
62+ lineHeight = 42 .sp,
63+ textAlign = TextAlign .Center ,
5464 )
5565
5666 Text (
5767 text = stringResource(R .string.sub_title),
58- modifier = Modifier .padding(top = 10 .dp, bottom = 10 .dp),
68+ fontSize = 14 .sp,
69+ fontWeight = FontWeight .Light ,
70+ color = MaterialTheme .colorScheme.onBackground,
5971 )
6072
6173 ExoPlayerView (
6274 EndPoints .PROJECT_REELS ,
6375 modifier = Modifier .padding(start = 8 .dp, end = 8 .dp)
6476 )
6577
66- BorderTexts (
67- textLeft = stringResource(R .string.sub_title2),
68- textRight = stringResource(R .string.sub_title3),
69- modifier = modifier.padding(top = 10 .dp, bottom = 10 .dp)
70- )
78+ Row {
79+ Text (
80+ text = stringResource(R .string.sub_title2),
81+ fontSize = 14 .sp,
82+ fontWeight = FontWeight .Light ,
83+ color = MaterialTheme .colorScheme.onBackground,
84+ modifier = Modifier .weight(1f )
85+ )
86+ Text (
87+ text = stringResource(R .string.sub_title3),
88+ fontSize = 14 .sp,
89+ fontWeight = FontWeight .Light ,
90+ color = MaterialTheme .colorScheme.onBackground,
91+ )
92+ }
7193
7294 ProjectCardLayoutList (listProjects.dropLast(4 ))
7395
@@ -77,15 +99,19 @@ fun HomeScreen(
7799
78100 Text (
79101 text = stringResource(R .string.sub_title4),
80- modifier = Modifier
81- .align(alignment = Alignment .Start )
82- .padding(start = 8 .dp)
102+ fontSize = 40 .sp,
103+ fontWeight = FontWeight .Black ,
104+ color = MaterialTheme .colorScheme.onBackground,
105+ lineHeight = 42 .sp,
106+ textAlign = TextAlign .Start ,
107+ modifier = Modifier .align(alignment = Alignment .Start )
83108 )
84109 Text (
85110 text = stringResource(R .string.sub_title5),
86- modifier = Modifier
87- .align(alignment = Alignment .End )
88- .padding(end = 8 .dp)
111+ fontSize = 14 .sp,
112+ fontWeight = FontWeight .Light ,
113+ color = MaterialTheme .colorScheme.onBackground,
114+ modifier = Modifier .align(alignment = Alignment .End )
89115 )
90116
91117 ButtonNavigation (R .string.btn_click_for_more) {
@@ -130,7 +156,7 @@ private fun ButtonNavigation(
130156 }
131157}
132158
133- @Preview
159+ @Preview(showBackground = true )
134160@Composable
135161private fun HomeScreenPreview () {
136162 ArmsAppTheme {
0 commit comments