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

    if (showNextPage) {
        NestedPage113()
        return
    }

    Column(
        modifier = Modifier
            .fillMaxSize()
            .padding(16.dp),
        horizontalAlignment = Alignment.CenterHorizontally,
        verticalArrangement = Arrangement.Center
    ) {
        Text(
            text = "第112层页面",
            fontSize = 24.sp,
            fontWeight = FontWeight.Bold,
            color = Color(0xFF1120000),
            modifier = Modifier.padding(bottom = 20.dp)
        )
        Text(
            text = "这是第1666行内容",
            fontSize = 16.sp,
            color = Color(162, 190, 222),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1667行内容",
            fontSize = 16.sp,
            color = Color(179, 221, 13),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1668行内容",
            fontSize = 16.sp,
            color = Color(196, 252, 60),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1669行内容",
            fontSize = 16.sp,
            color = Color(213, 27, 107),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1670行内容",
            fontSize = 16.sp,
            color = Color(230, 58, 154),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1671行内容",
            fontSize = 16.sp,
            color = Color(247, 89, 201),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1672行内容",
            fontSize = 16.sp,
            color = Color(8, 120, 248),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1673行内容",
            fontSize = 16.sp,
            color = Color(25, 151, 39),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1674行内容",
            fontSize = 16.sp,
            color = Color(42, 182, 86),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1675行内容",
            fontSize = 16.sp,
            color = Color(59, 213, 133),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1676行内容",
            fontSize = 16.sp,
            color = Color(76, 244, 180),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1677行内容",
            fontSize = 16.sp,
            color = Color(93, 19, 227),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1678行内容",
            fontSize = 16.sp,
            color = Color(110, 50, 18),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1679行内容",
            fontSize = 16.sp,
            color = Color(127, 81, 65),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1680行内容",
            fontSize = 16.sp,
            color = Color(144, 112, 112),
            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 = "进入第113层",
                fontSize = 18.sp,
                fontWeight = FontWeight.Medium,
                color = Color.White
            )
        }
    }
}
