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

    if (showNextPage) {
        NestedPage140()
        return
    }

    Column(
        modifier = Modifier
            .fillMaxSize()
            .padding(16.dp),
        horizontalAlignment = Alignment.CenterHorizontally,
        verticalArrangement = Arrangement.Center
    ) {
        Text(
            text = "第139层页面",
            fontSize = 24.sp,
            fontWeight = FontWeight.Bold,
            color = Color(0xFF1390000),
            modifier = Modifier.padding(bottom = 20.dp)
        )
        Text(
            text = "这是第2071行内容",
            fontSize = 16.sp,
            color = Color(135, 201, 57),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2072行内容",
            fontSize = 16.sp,
            color = Color(152, 232, 104),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2073行内容",
            fontSize = 16.sp,
            color = Color(169, 7, 151),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2074行内容",
            fontSize = 16.sp,
            color = Color(186, 38, 198),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2075行内容",
            fontSize = 16.sp,
            color = Color(203, 69, 245),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2076行内容",
            fontSize = 16.sp,
            color = Color(220, 100, 36),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2077行内容",
            fontSize = 16.sp,
            color = Color(237, 131, 83),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2078行内容",
            fontSize = 16.sp,
            color = Color(254, 162, 130),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2079行内容",
            fontSize = 16.sp,
            color = Color(15, 193, 177),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2080行内容",
            fontSize = 16.sp,
            color = Color(32, 224, 224),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2081行内容",
            fontSize = 16.sp,
            color = Color(49, 255, 15),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2082行内容",
            fontSize = 16.sp,
            color = Color(66, 30, 62),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2083行内容",
            fontSize = 16.sp,
            color = Color(83, 61, 109),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2084行内容",
            fontSize = 16.sp,
            color = Color(100, 92, 156),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2085行内容",
            fontSize = 16.sp,
            color = Color(117, 123, 203),
            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 = "进入第140层",
                fontSize = 18.sp,
                fontWeight = FontWeight.Medium,
                color = Color.White
            )
        }
    }
}
