|
@@ -45,34 +45,93 @@ import androidx.compose.ui.text.style.TextAlign
|
|
import androidx.compose.ui.unit.TextUnit
|
|
import androidx.compose.ui.unit.TextUnit
|
|
import androidx.compose.ui.unit.dp
|
|
import androidx.compose.ui.unit.dp
|
|
import androidx.compose.ui.unit.sp
|
|
import androidx.compose.ui.unit.sp
|
|
|
|
+import androidx.navigation.NavHostController
|
|
import com.example.development.R
|
|
import com.example.development.R
|
|
|
|
+import com.example.development.mainActivity.MainViewModel
|
|
import com.example.development.ui.theme.OldStandart
|
|
import com.example.development.ui.theme.OldStandart
|
|
|
|
|
|
@Composable
|
|
@Composable
|
|
-fun TableReserve2()
|
|
|
|
-{
|
|
|
|
- Box(contentAlignment = Alignment.TopCenter,
|
|
|
|
|
|
+fun TableReserve(navController: NavHostController, viewModel: MainViewModel) {
|
|
|
|
+ Box(
|
|
|
|
+ contentAlignment = Alignment.TopCenter,
|
|
modifier = Modifier
|
|
modifier = Modifier
|
|
.fillMaxSize()
|
|
.fillMaxSize()
|
|
)
|
|
)
|
|
{
|
|
{
|
|
- Image(painter = painterResource(id = R.drawable.fone), contentDescription = "", contentScale = ContentScale.FillWidth, modifier = Modifier.fillMaxWidth().fillMaxHeight())
|
|
|
|
- Column(modifier = Modifier, verticalArrangement = Arrangement.Top, horizontalAlignment = Alignment.End)
|
|
|
|
|
|
+ Image(
|
|
|
|
+ painter = painterResource(id = R.drawable.fone),
|
|
|
|
+ contentDescription = "",
|
|
|
|
+ contentScale = ContentScale.FillWidth,
|
|
|
|
+ modifier = Modifier.fillMaxWidth().fillMaxHeight()
|
|
|
|
+ )
|
|
|
|
+ Column(
|
|
|
|
+ modifier = Modifier
|
|
|
|
+ .padding(),
|
|
|
|
+ verticalArrangement = Arrangement.Center,
|
|
|
|
+ horizontalAlignment = Alignment.CenterHorizontally
|
|
|
|
+ )
|
|
{
|
|
{
|
|
- Button(modifier = Modifier,
|
|
|
|
|
|
+ Row(modifier = Modifier.padding(5.dp).fillMaxWidth(),
|
|
|
|
+ horizontalArrangement = Arrangement.End, verticalAlignment = Alignment.CenterVertically
|
|
|
|
+ ){
|
|
|
|
+ Text("СХЕМА ЗАЛА",
|
|
|
|
+ color = Color(255, 215, 0),
|
|
|
|
+ modifier = Modifier,
|
|
|
|
+ fontSize = 24.sp,
|
|
|
|
+ fontWeight = FontWeight.Bold,
|
|
|
|
+ fontFamily = OldStandart
|
|
|
|
+ )
|
|
|
|
+ Button(
|
|
|
|
+ modifier = Modifier
|
|
|
|
+ .padding(0.dp),
|
|
|
|
+ onClick = {},
|
|
|
|
+ colors = ButtonDefaults.buttonColors(
|
|
|
|
+ containerColor = Color(255, 215, 0, 0),
|
|
|
|
+ contentColor = Color.Gray
|
|
|
|
+ ),
|
|
|
|
+ border = BorderStroke(0.dp, color = Color(255, 215, 0, 0))
|
|
|
|
+ )
|
|
|
|
+ {
|
|
|
|
+ Image(
|
|
|
|
+ painter = painterResource(id = R.drawable.home),
|
|
|
|
+ contentDescription = "",
|
|
|
|
+ contentScale = ContentScale.FillWidth,
|
|
|
|
+ modifier = Modifier.width(60.dp).height(60.dp)
|
|
|
|
+ )
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ Image(
|
|
|
|
+ painter = painterResource(id = R.drawable.schema),
|
|
|
|
+ contentDescription = "",
|
|
|
|
+ contentScale = ContentScale.FillWidth,
|
|
|
|
+ modifier = Modifier
|
|
|
|
+ )
|
|
|
|
+ Button(modifier = Modifier
|
|
|
|
+ .width(width = 270.dp)
|
|
|
|
+ .height(height = 40.dp),
|
|
onClick = {},
|
|
onClick = {},
|
|
shape = RoundedCornerShape(23.dp),
|
|
shape = RoundedCornerShape(23.dp),
|
|
- border = BorderStroke(0.dp, Color(255,215,0,0)),
|
|
|
|
|
|
+ border = BorderStroke(0.dp, Color(0xFFEBEBEB)),
|
|
colors = ButtonDefaults.buttonColors(
|
|
colors = ButtonDefaults.buttonColors(
|
|
- containerColor = Color(255,215,0,0),
|
|
|
|
|
|
+ containerColor = Color(255,215,0),
|
|
contentColor = Color.White)
|
|
contentColor = Color.White)
|
|
- ){
|
|
|
|
- Image(painter = painterResource(id = R.drawable.home),
|
|
|
|
- contentDescription = "",
|
|
|
|
- contentScale = ContentScale.FillWidth,
|
|
|
|
- modifier = Modifier.width(70.dp).height(70.dp))
|
|
|
|
|
|
+ )
|
|
|
|
+ {
|
|
|
|
+ Text("ЗАБРОНИРОВАТЬ СТОЛ", fontFamily = OldStandart)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+@Composable
|
|
|
|
+fun TableReserve2(navController: NavHostController, viewModel: MainViewModel)
|
|
|
|
+{
|
|
|
|
+ Box(contentAlignment = Alignment.TopCenter,
|
|
|
|
+ modifier = Modifier
|
|
|
|
+ .fillMaxSize()
|
|
|
|
+ )
|
|
|
|
+ {
|
|
|
|
+ Image(painter = painterResource(id = R.drawable.fone), contentDescription = "", contentScale = ContentScale.FillWidth, modifier = Modifier.fillMaxWidth().fillMaxHeight())
|
|
Column(
|
|
Column(
|
|
modifier = Modifier
|
|
modifier = Modifier
|
|
.padding(),
|
|
.padding(),
|
|
@@ -80,13 +139,35 @@ fun TableReserve2()
|
|
horizontalAlignment = Alignment.CenterHorizontally
|
|
horizontalAlignment = Alignment.CenterHorizontally
|
|
)
|
|
)
|
|
{
|
|
{
|
|
- Text("РЕЗЕРВ СТОЛА",
|
|
|
|
- color = Color.White,
|
|
|
|
- modifier = Modifier.padding(top = 100.dp),
|
|
|
|
- fontSize = 30.sp,
|
|
|
|
- fontWeight = FontWeight.Bold,
|
|
|
|
- fontFamily = OldStandart
|
|
|
|
- )
|
|
|
|
|
|
+ Row(modifier = Modifier.padding(5.dp).fillMaxWidth(),
|
|
|
|
+ horizontalArrangement = Arrangement.End, verticalAlignment = Alignment.CenterVertically
|
|
|
|
+ ){
|
|
|
|
+ Text("РЕЗЕРВ СТОЛА",
|
|
|
|
+ color = Color(255, 215, 0),
|
|
|
|
+ modifier = Modifier,
|
|
|
|
+ fontSize = 24.sp,
|
|
|
|
+ fontWeight = FontWeight.Bold,
|
|
|
|
+ fontFamily = OldStandart
|
|
|
|
+ )
|
|
|
|
+ Button(
|
|
|
|
+ modifier = Modifier
|
|
|
|
+ .padding(0.dp),
|
|
|
|
+ onClick = {},
|
|
|
|
+ colors = ButtonDefaults.buttonColors(
|
|
|
|
+ containerColor = Color(255, 215, 0, 0),
|
|
|
|
+ contentColor = Color.Gray
|
|
|
|
+ ),
|
|
|
|
+ border = BorderStroke(0.dp, color = Color(255, 215, 0, 0))
|
|
|
|
+ )
|
|
|
|
+ {
|
|
|
|
+ Image(
|
|
|
|
+ painter = painterResource(id = R.drawable.home),
|
|
|
|
+ contentDescription = "",
|
|
|
|
+ contentScale = ContentScale.FillWidth,
|
|
|
|
+ modifier = Modifier.width(60.dp).height(60.dp)
|
|
|
|
+ )
|
|
|
|
+ }
|
|
|
|
+ }
|
|
Text(
|
|
Text(
|
|
"Имя *",
|
|
"Имя *",
|
|
fontSize = 16.sp,
|
|
fontSize = 16.sp,
|