|
@@ -1,5 +1,6 @@
|
|
|
package com.example.mygymapp.view.mainActivity.components
|
|
|
|
|
|
+import androidx.compose.foundation.background
|
|
|
import androidx.compose.foundation.layout.Arrangement
|
|
|
import androidx.compose.foundation.layout.Column
|
|
|
import androidx.compose.foundation.layout.padding
|
|
@@ -8,21 +9,28 @@ import androidx.compose.runtime.Composable
|
|
|
import androidx.compose.ui.Alignment
|
|
|
import androidx.compose.ui.Modifier
|
|
|
import androidx.compose.ui.graphics.Color
|
|
|
+import androidx.compose.ui.tooling.preview.Preview
|
|
|
import androidx.compose.ui.unit.dp
|
|
|
import androidx.compose.ui.unit.sp
|
|
|
import androidx.navigation.NavController
|
|
|
+import com.example.mygymapp.ui.theme.BlueBlack
|
|
|
+import com.example.mygymapp.ui.theme.chivoFontFamily
|
|
|
|
|
|
+@Preview
|
|
|
@Composable
|
|
|
fun StartScreen()
|
|
|
{
|
|
|
Column(
|
|
|
- Modifier.padding(top = 30.dp, start = 15.dp, end = 15.dp),
|
|
|
+ Modifier
|
|
|
+ .background(color = BlueBlack)
|
|
|
+ .padding(top = 30.dp, start = 15.dp, end = 15.dp),
|
|
|
verticalArrangement = Arrangement.Top,
|
|
|
- horizontalAlignment = Alignment.CenterHorizontally
|
|
|
+ horizontalAlignment = Alignment.CenterHorizontally,
|
|
|
|
|
|
) {
|
|
|
Text(
|
|
|
- text = "MyGym", fontSize = 30.sp, color = Color(0xFF000000),
|
|
|
+ text = "MyGym", fontSize = 30.sp, color = Color(0xFFFefcfb),
|
|
|
+ fontFamily = chivoFontFamily,
|
|
|
modifier = Modifier.padding(top = 100.dp, bottom = 20.dp, start = 15.dp)
|
|
|
)
|
|
|
}
|