|
@@ -6,16 +6,20 @@ import androidx.compose.foundation.border
|
|
|
import androidx.compose.foundation.layout.Arrangement
|
|
|
import androidx.compose.foundation.layout.Box
|
|
|
import androidx.compose.foundation.layout.Column
|
|
|
+import androidx.compose.foundation.layout.PaddingValues
|
|
|
import androidx.compose.foundation.layout.Row
|
|
|
+import androidx.compose.foundation.layout.Spacer
|
|
|
import androidx.compose.foundation.layout.fillMaxSize
|
|
|
import androidx.compose.foundation.layout.fillMaxWidth
|
|
|
import androidx.compose.foundation.layout.height
|
|
|
import androidx.compose.foundation.layout.padding
|
|
|
import androidx.compose.foundation.layout.size
|
|
|
import androidx.compose.foundation.layout.width
|
|
|
+import androidx.compose.foundation.rememberScrollState
|
|
|
import androidx.compose.foundation.shape.CircleShape
|
|
|
import androidx.compose.foundation.shape.RoundedCornerShape
|
|
|
import androidx.compose.foundation.text.KeyboardOptions
|
|
|
+import androidx.compose.foundation.verticalScroll
|
|
|
import androidx.compose.material3.Button
|
|
|
import androidx.compose.material3.ButtonDefaults
|
|
|
import androidx.compose.material3.ExperimentalMaterial3Api
|
|
@@ -99,12 +103,16 @@ fun BookScreen() { // navController: NavController
|
|
|
Column(
|
|
|
modifier = Modifier
|
|
|
.fillMaxWidth()
|
|
|
- .height(265.dp),
|
|
|
+ .height(245.dp)
|
|
|
+ ,
|
|
|
verticalArrangement = Arrangement.Center,
|
|
|
horizontalAlignment = Alignment.CenterHorizontally
|
|
|
|
|
|
) {
|
|
|
- Box(modifier = Modifier.height(200.dp).width(150.dp).background(Color.Gray)){
|
|
|
+ Box(modifier = Modifier
|
|
|
+ .height(200.dp)
|
|
|
+ .width(150.dp)
|
|
|
+ .background(Color.Gray)){
|
|
|
|
|
|
}
|
|
|
|
|
@@ -115,12 +123,57 @@ fun BookScreen() { // navController: NavController
|
|
|
.clip(RoundedCornerShape(45.dp, 45.dp))
|
|
|
.background(color = MaterialTheme.colorScheme.secondary)
|
|
|
.padding(start = 20.dp, end = 20.dp)
|
|
|
+ .verticalScroll(rememberScrollState())
|
|
|
){
|
|
|
Text("Автостопом по галактике", modifier = Modifier.padding(top=25.dp, bottom = 5.dp), fontWeight = FontWeight.Bold, fontSize = 20.sp)
|
|
|
Text("Дуглас Адамс", fontSize = 16.sp, color = MaterialTheme.colorScheme.onSecondary)
|
|
|
Text("Аннотация", modifier = Modifier.padding(top=15.dp, bottom = 5.dp), fontWeight = FontWeight.Bold, fontSize = 20.sp)
|
|
|
Text("«Автостопом по Галактике», стартовав в качестве радиопостановки на Би-би-си, имел грандиозный успех. Одноименный роман в 1984 году возглавил список английских бестселлеров, а сам Адамс стал самым молодым писателем, получившим награду «Золотая ручка», вручаемую за 1 млн. проданных книг.\u2028Телепостановка 1982 года упрочила успех серии книг про «Автостоп», а полнометражный фильм 2005 года при бюджете в \$50 млн. дважды «отбил» расходы на экранизацию и был номинирован на 7 премий.",
|
|
|
- textAlign = TextAlign.Justify)
|
|
|
+ textAlign = TextAlign.Justify, fontSize = 16.sp)
|
|
|
+ Text("Жанры", modifier = Modifier.padding(top=15.dp, bottom = 5.dp), fontWeight = FontWeight.Bold, fontSize = 20.sp)
|
|
|
+ Row(){
|
|
|
+ Button(onClick = {}, colors = ButtonDefaults.buttonColors(containerColor = MaterialTheme.colorScheme.surface), modifier = Modifier.padding(end = 5.dp))
|
|
|
+ {
|
|
|
+ Text("Научная фантастика", color = MaterialTheme.colorScheme.onSecondary, fontSize = 12.sp)
|
|
|
+ }
|
|
|
+ Button(onClick = {}, colors = ButtonDefaults.buttonColors(containerColor = MaterialTheme.colorScheme.surface))
|
|
|
+ {
|
|
|
+ Text("Комедия", color = MaterialTheme.colorScheme.onSecondary, fontSize = 12.sp)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Row(modifier = Modifier
|
|
|
+ .padding(top = 15.dp)
|
|
|
+ .fillMaxWidth(), horizontalArrangement = Arrangement.SpaceBetween, verticalAlignment = Alignment.CenterVertically){
|
|
|
+ Row(modifier = Modifier
|
|
|
+ .clip(RoundedCornerShape(20.dp))
|
|
|
+ .background(MaterialTheme.colorScheme.surface)){
|
|
|
+ Column(modifier = Modifier.padding(vertical = 7.dp, horizontal = 7.dp),
|
|
|
+ ){
|
|
|
+ Text("Прочитаете за:", color = MaterialTheme.colorScheme.onSecondary, fontSize = 15.sp)
|
|
|
+ }
|
|
|
+ Column(modifier = Modifier
|
|
|
+ .clip(RoundedCornerShape(20.dp))
|
|
|
+ .padding(start = 0.dp)
|
|
|
+ .background(MaterialTheme.colorScheme.secondary)
|
|
|
+ .border(
|
|
|
+ 2.dp,
|
|
|
+ MaterialTheme.colorScheme.primary,
|
|
|
+ shape = RoundedCornerShape(20.dp)
|
|
|
+ )
|
|
|
+ .padding(vertical = 7.dp, horizontal = 17.dp),
|
|
|
+ ){
|
|
|
+ Text("9ч. 20мин.", color = MaterialTheme.colorScheme.primary, fontSize = 15.sp, fontWeight = FontWeight.Bold)
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ Button(onClick = {}, colors = ButtonDefaults.buttonColors(containerColor = MaterialTheme.colorScheme.primary))
|
|
|
+ {
|
|
|
+ Text("Читать", color = MaterialTheme.colorScheme.secondary, fontSize = 15.sp, fontWeight = FontWeight.Bold)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Spacer(modifier = Modifier.height(25.dp))
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|