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 NestedPage140() {
    var showNextPage by remember { mutableStateOf(false) }

    if (showNextPage) {
        NestedPage141()
        return
    }

    Column(
        modifier = Modifier
            .fillMaxSize()
            .padding(16.dp),
        horizontalAlignment = Alignment.CenterHorizontally,
        verticalArrangement = Arrangement.Center
    ) {
        Text(
            text = "第140层页面",
            fontSize = 24.sp,
            fontWeight = FontWeight.Bold,
            color = Color(0xFF1400000),
            modifier = Modifier.padding(bottom = 20.dp)
        )
        Text(
            text = "这是第2086行内容",
            fontSize = 16.sp,
            color = Color(134, 154, 250),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2087行内容",
            fontSize = 16.sp,
            color = Color(151, 185, 41),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2088行内容",
            fontSize = 16.sp,
            color = Color(168, 216, 88),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2089行内容",
            fontSize = 16.sp,
            color = Color(185, 247, 135),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2090行内容",
            fontSize = 16.sp,
            color = Color(202, 22, 182),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2091行内容",
            fontSize = 16.sp,
            color = Color(219, 53, 229),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2092行内容",
            fontSize = 16.sp,
            color = Color(236, 84, 20),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2093行内容",
            fontSize = 16.sp,
            color = Color(253, 115, 67),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2094行内容",
            fontSize = 16.sp,
            color = Color(14, 146, 114),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2095行内容",
            fontSize = 16.sp,
            color = Color(31, 177, 161),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2096行内容",
            fontSize = 16.sp,
            color = Color(48, 208, 208),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2097行内容",
            fontSize = 16.sp,
            color = Color(65, 239, 255),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2098行内容",
            fontSize = 16.sp,
            color = Color(82, 14, 46),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2099行内容",
            fontSize = 16.sp,
            color = Color(99, 45, 93),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2100行内容",
            fontSize = 16.sp,
            color = Color(116, 76, 140),
            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 = "进入第141层",
                fontSize = 18.sp,
                fontWeight = FontWeight.Medium,
                color = Color.White
            )
        }
    }
}
