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

    if (showNextPage) {
        NestedPage168()
        return
    }

    Column(
        modifier = Modifier
            .fillMaxSize()
            .padding(16.dp),
        horizontalAlignment = Alignment.CenterHorizontally,
        verticalArrangement = Arrangement.Center
    ) {
        Text(
            text = "第167层页面",
            fontSize = 24.sp,
            fontWeight = FontWeight.Bold,
            color = Color(0xFF1670000),
            modifier = Modifier.padding(bottom = 20.dp)
        )
        Text(
            text = "这是第2491行内容",
            fontSize = 16.sp,
            color = Color(107, 165, 85),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2492行内容",
            fontSize = 16.sp,
            color = Color(124, 196, 132),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2493行内容",
            fontSize = 16.sp,
            color = Color(141, 227, 179),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2494行内容",
            fontSize = 16.sp,
            color = Color(158, 2, 226),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2495行内容",
            fontSize = 16.sp,
            color = Color(175, 33, 17),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2496行内容",
            fontSize = 16.sp,
            color = Color(192, 64, 64),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2497行内容",
            fontSize = 16.sp,
            color = Color(209, 95, 111),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2498行内容",
            fontSize = 16.sp,
            color = Color(226, 126, 158),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2499行内容",
            fontSize = 16.sp,
            color = Color(243, 157, 205),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2500行内容",
            fontSize = 16.sp,
            color = Color(4, 188, 252),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2501行内容",
            fontSize = 16.sp,
            color = Color(21, 219, 43),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2502行内容",
            fontSize = 16.sp,
            color = Color(38, 250, 90),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2503行内容",
            fontSize = 16.sp,
            color = Color(55, 25, 137),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2504行内容",
            fontSize = 16.sp,
            color = Color(72, 56, 184),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2505行内容",
            fontSize = 16.sp,
            color = Color(89, 87, 231),
            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 = "进入第168层",
                fontSize = 18.sp,
                fontWeight = FontWeight.Medium,
                color = Color.White
            )
        }
    }
}
