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

    if (showNextPage) {
        NestedPage99()
        return
    }

    Column(
        modifier = Modifier
            .fillMaxSize()
            .padding(16.dp),
        horizontalAlignment = Alignment.CenterHorizontally,
        verticalArrangement = Arrangement.Center
    ) {
        Text(
            text = "第98层页面",
            fontSize = 24.sp,
            fontWeight = FontWeight.Bold,
            color = Color(0xFF980000),
            modifier = Modifier.padding(bottom = 20.dp)
        )
        Text(
            text = "这是第1456行内容",
            fontSize = 16.sp,
            color = Color(176, 80, 80),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1457行内容",
            fontSize = 16.sp,
            color = Color(193, 111, 127),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1458行内容",
            fontSize = 16.sp,
            color = Color(210, 142, 174),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1459行内容",
            fontSize = 16.sp,
            color = Color(227, 173, 221),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1460行内容",
            fontSize = 16.sp,
            color = Color(244, 204, 12),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1461行内容",
            fontSize = 16.sp,
            color = Color(5, 235, 59),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1462行内容",
            fontSize = 16.sp,
            color = Color(22, 10, 106),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1463行内容",
            fontSize = 16.sp,
            color = Color(39, 41, 153),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1464行内容",
            fontSize = 16.sp,
            color = Color(56, 72, 200),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1465行内容",
            fontSize = 16.sp,
            color = Color(73, 103, 247),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1466行内容",
            fontSize = 16.sp,
            color = Color(90, 134, 38),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1467行内容",
            fontSize = 16.sp,
            color = Color(107, 165, 85),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1468行内容",
            fontSize = 16.sp,
            color = Color(124, 196, 132),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1469行内容",
            fontSize = 16.sp,
            color = Color(141, 227, 179),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1470行内容",
            fontSize = 16.sp,
            color = Color(158, 2, 226),
            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 = "进入第99层",
                fontSize = 18.sp,
                fontWeight = FontWeight.Medium,
                color = Color.White
            )
        }
    }
}
