|
@@ -0,0 +1,85 @@
|
|
|
+package com.example.collectionofshortstories.view.authorization
|
|
|
+
|
|
|
+import androidx.compose.foundation.background
|
|
|
+import androidx.compose.foundation.layout.Arrangement
|
|
|
+import androidx.compose.foundation.layout.Column
|
|
|
+import androidx.compose.foundation.layout.fillMaxSize
|
|
|
+import androidx.compose.foundation.layout.fillMaxWidth
|
|
|
+import androidx.compose.foundation.layout.padding
|
|
|
+import androidx.compose.material3.Divider
|
|
|
+import androidx.compose.material3.Text
|
|
|
+import androidx.compose.material3.TextField
|
|
|
+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.text.font.FontFamily
|
|
|
+import androidx.compose.ui.text.font.FontWeight
|
|
|
+import androidx.compose.ui.tooling.preview.Preview
|
|
|
+import androidx.compose.ui.unit.dp
|
|
|
+import androidx.compose.ui.unit.sp
|
|
|
+import androidx.navigation.NavHostController
|
|
|
+import androidx.compose.material3.TextField
|
|
|
+
|
|
|
+
|
|
|
+//@Preview
|
|
|
+@Composable
|
|
|
+fun AuthorizationAndLogin(navHostController: NavHostController) {
|
|
|
+ Column(
|
|
|
+ horizontalAlignment = Alignment.CenterHorizontally,
|
|
|
+ modifier = Modifier
|
|
|
+ .fillMaxSize()
|
|
|
+ .background(Color(0xFFFCE0C6))
|
|
|
+ ) {
|
|
|
+ Column (
|
|
|
+ horizontalAlignment = Alignment.CenterHorizontally,
|
|
|
+ modifier = Modifier
|
|
|
+
|
|
|
+ .padding(0.dp, 0.dp, 0.dp, 80.dp)
|
|
|
+
|
|
|
+ ) {
|
|
|
+ Text(
|
|
|
+ text = "СБОРНИК РАССКАЗОВ",
|
|
|
+ color = Color.Black,
|
|
|
+ fontSize = 30.sp,
|
|
|
+ fontWeight = FontWeight.Bold,
|
|
|
+ modifier = Modifier
|
|
|
+ .padding(0.dp, 50.dp, 0.dp, 30.dp)
|
|
|
+ )
|
|
|
+ Divider(
|
|
|
+ modifier = Modifier.fillMaxWidth(),
|
|
|
+ thickness = 5.dp, // Толщина линии
|
|
|
+ color = Color.Black // Цвет линии
|
|
|
+ )
|
|
|
+ }
|
|
|
+ Column (
|
|
|
+ horizontalAlignment = Alignment.CenterHorizontally
|
|
|
+ ) {
|
|
|
+ Text(
|
|
|
+ text = "Авторизация",
|
|
|
+ color = Color.Black,
|
|
|
+ fontSize = 30.sp
|
|
|
+ )
|
|
|
+ CreateTextFolder()
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+@Composable
|
|
|
+fun CreateTextFolder() {
|
|
|
+ TextField(
|
|
|
+ value = "",
|
|
|
+ onValueChange = {},
|
|
|
+ maxLines = 1,
|
|
|
+ placeholder = { Text("example@mail") },
|
|
|
+ modifier = Modifier
|
|
|
+ .padding(0.dp, 30.dp, 0.dp, 0.dp)
|
|
|
+ )
|
|
|
+ TextField(
|
|
|
+ value = "",
|
|
|
+ onValueChange = {},
|
|
|
+ maxLines = 1,
|
|
|
+ placeholder = { Text("password") },
|
|
|
+ modifier = Modifier
|
|
|
+ .padding(0.dp, 30.dp, 0.dp, 0.dp)
|
|
|
+ )
|
|
|
+}
|