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

    if (showNextPage) {
        NestedPage88()
        return
    }

    Column(
        modifier = Modifier
            .fillMaxSize()
            .padding(16.dp),
        horizontalAlignment = Alignment.CenterHorizontally,
        verticalArrangement = Arrangement.Center
    ) {
        Text(
            text = "第87层页面",
            fontSize = 24.sp,
            fontWeight = FontWeight.Bold,
            color = Color(0xFF870000),
            modifier = Modifier.padding(bottom = 20.dp)
        )
        Text(
            text = "这是第1291行内容",
            fontSize = 16.sp,
            color = Color(187, 85, 5),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1292行内容",
            fontSize = 16.sp,
            color = Color(204, 116, 52),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1293行内容",
            fontSize = 16.sp,
            color = Color(221, 147, 99),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1294行内容",
            fontSize = 16.sp,
            color = Color(238, 178, 146),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1295行内容",
            fontSize = 16.sp,
            color = Color(255, 209, 193),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1296行内容",
            fontSize = 16.sp,
            color = Color(16, 240, 240),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1297行内容",
            fontSize = 16.sp,
            color = Color(33, 15, 31),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1298行内容",
            fontSize = 16.sp,
            color = Color(50, 46, 78),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1299行内容",
            fontSize = 16.sp,
            color = Color(67, 77, 125),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1300行内容",
            fontSize = 16.sp,
            color = Color(84, 108, 172),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1301行内容",
            fontSize = 16.sp,
            color = Color(101, 139, 219),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1302行内容",
            fontSize = 16.sp,
            color = Color(118, 170, 10),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1303行内容",
            fontSize = 16.sp,
            color = Color(135, 201, 57),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1304行内容",
            fontSize = 16.sp,
            color = Color(152, 232, 104),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1305行内容",
            fontSize = 16.sp,
            color = Color(169, 7, 151),
            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 = "进入第88层",
                fontSize = 18.sp,
                fontWeight = FontWeight.Medium,
                color = Color.White
            )
        }
    }
}
