package com.dong.maxhap.demos.test

import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp

@Composable
internal fun NestedPage194() {
    var showNextPage by remember { mutableStateOf(false) }

    if (showNextPage) {
        NestedPage195()
        return
    }

    Column(
        modifier = Modifier
            .fillMaxSize()
            .padding(16.dp),
        horizontalAlignment = Alignment.CenterHorizontally,
        verticalArrangement = Arrangement.Center
    ) {
        Text(
            text = "第194层页面",
            fontSize = 24.sp,
            fontWeight = FontWeight.Bold,
            color = Color(0xFF1940000),
            modifier = Modifier.padding(bottom = 20.dp)
        )
        Text(
            text = "这是第2896行内容",
            fontSize = 16.sp,
            color = Color(80, 176, 176),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2897行内容",
            fontSize = 16.sp,
            color = Color(97, 207, 223),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2898行内容",
            fontSize = 16.sp,
            color = Color(114, 238, 14),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2899行内容",
            fontSize = 16.sp,
            color = Color(131, 13, 61),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2900行内容",
            fontSize = 16.sp,
            color = Color(148, 44, 108),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2901行内容",
            fontSize = 16.sp,
            color = Color(165, 75, 155),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2902行内容",
            fontSize = 16.sp,
            color = Color(182, 106, 202),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2903行内容",
            fontSize = 16.sp,
            color = Color(199, 137, 249),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2904行内容",
            fontSize = 16.sp,
            color = Color(216, 168, 40),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2905行内容",
            fontSize = 16.sp,
            color = Color(233, 199, 87),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2906行内容",
            fontSize = 16.sp,
            color = Color(250, 230, 134),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2907行内容",
            fontSize = 16.sp,
            color = Color(11, 5, 181),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2908行内容",
            fontSize = 16.sp,
            color = Color(28, 36, 228),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2909行内容",
            fontSize = 16.sp,
            color = Color(45, 67, 19),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2910行内容",
            fontSize = 16.sp,
            color = Color(62, 98, 66),
            modifier = Modifier.padding(vertical = 4.dp)
        )

        Spacer(modifier = Modifier.height(30.dp))

        Button(
            onClick = { showNextPage = true },
            modifier = Modifier
                .fillMaxWidth()
                .height(50.dp),
            colors = ButtonDefaults.buttonColors(
                backgroundColor = Color(0xFF2196F3)
            )
        ) {
            Text(
                text = "进入第195层",
                fontSize = 18.sp,
                fontWeight = FontWeight.Medium,
                color = Color.White
            )
        }
    }
}
