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

    if (showNextPage) {
        NestedPage108()
        return
    }

    Column(
        modifier = Modifier
            .fillMaxSize()
            .padding(16.dp),
        horizontalAlignment = Alignment.CenterHorizontally,
        verticalArrangement = Arrangement.Center
    ) {
        Text(
            text = "第107层页面",
            fontSize = 24.sp,
            fontWeight = FontWeight.Bold,
            color = Color(0xFF1070000),
            modifier = Modifier.padding(bottom = 20.dp)
        )
        Text(
            text = "这是第1591行内容",
            fontSize = 16.sp,
            color = Color(167, 169, 25),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1592行内容",
            fontSize = 16.sp,
            color = Color(184, 200, 72),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1593行内容",
            fontSize = 16.sp,
            color = Color(201, 231, 119),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1594行内容",
            fontSize = 16.sp,
            color = Color(218, 6, 166),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1595行内容",
            fontSize = 16.sp,
            color = Color(235, 37, 213),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1596行内容",
            fontSize = 16.sp,
            color = Color(252, 68, 4),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1597行内容",
            fontSize = 16.sp,
            color = Color(13, 99, 51),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1598行内容",
            fontSize = 16.sp,
            color = Color(30, 130, 98),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1599行内容",
            fontSize = 16.sp,
            color = Color(47, 161, 145),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1600行内容",
            fontSize = 16.sp,
            color = Color(64, 192, 192),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1601行内容",
            fontSize = 16.sp,
            color = Color(81, 223, 239),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1602行内容",
            fontSize = 16.sp,
            color = Color(98, 254, 30),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1603行内容",
            fontSize = 16.sp,
            color = Color(115, 29, 77),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1604行内容",
            fontSize = 16.sp,
            color = Color(132, 60, 124),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1605行内容",
            fontSize = 16.sp,
            color = Color(149, 91, 171),
            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 = "进入第108层",
                fontSize = 18.sp,
                fontWeight = FontWeight.Medium,
                color = Color.White
            )
        }
    }
}
