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

    if (showNextPage) {
        NestedPage126()
        return
    }

    Column(
        modifier = Modifier
            .fillMaxSize()
            .padding(16.dp),
        horizontalAlignment = Alignment.CenterHorizontally,
        verticalArrangement = Arrangement.Center
    ) {
        Text(
            text = "第125层页面",
            fontSize = 24.sp,
            fontWeight = FontWeight.Bold,
            color = Color(0xFF1250000),
            modifier = Modifier.padding(bottom = 20.dp)
        )
        Text(
            text = "这是第1861行内容",
            fontSize = 16.sp,
            color = Color(149, 91, 171),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1862行内容",
            fontSize = 16.sp,
            color = Color(166, 122, 218),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1863行内容",
            fontSize = 16.sp,
            color = Color(183, 153, 9),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1864行内容",
            fontSize = 16.sp,
            color = Color(200, 184, 56),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1865行内容",
            fontSize = 16.sp,
            color = Color(217, 215, 103),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1866行内容",
            fontSize = 16.sp,
            color = Color(234, 246, 150),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1867行内容",
            fontSize = 16.sp,
            color = Color(251, 21, 197),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1868行内容",
            fontSize = 16.sp,
            color = Color(12, 52, 244),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1869行内容",
            fontSize = 16.sp,
            color = Color(29, 83, 35),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1870行内容",
            fontSize = 16.sp,
            color = Color(46, 114, 82),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1871行内容",
            fontSize = 16.sp,
            color = Color(63, 145, 129),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1872行内容",
            fontSize = 16.sp,
            color = Color(80, 176, 176),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1873行内容",
            fontSize = 16.sp,
            color = Color(97, 207, 223),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1874行内容",
            fontSize = 16.sp,
            color = Color(114, 238, 14),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1875行内容",
            fontSize = 16.sp,
            color = Color(131, 13, 61),
            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 = "进入第126层",
                fontSize = 18.sp,
                fontWeight = FontWeight.Medium,
                color = Color.White
            )
        }
    }
}
