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

    if (showNextPage) {
        NestedPage145()
        return
    }

    Column(
        modifier = Modifier
            .fillMaxSize()
            .padding(16.dp),
        horizontalAlignment = Alignment.CenterHorizontally,
        verticalArrangement = Arrangement.Center
    ) {
        Text(
            text = "第144层页面",
            fontSize = 24.sp,
            fontWeight = FontWeight.Bold,
            color = Color(0xFF1440000),
            modifier = Modifier.padding(bottom = 20.dp)
        )
        Text(
            text = "这是第2146行内容",
            fontSize = 16.sp,
            color = Color(130, 222, 254),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2147行内容",
            fontSize = 16.sp,
            color = Color(147, 253, 45),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2148行内容",
            fontSize = 16.sp,
            color = Color(164, 28, 92),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2149行内容",
            fontSize = 16.sp,
            color = Color(181, 59, 139),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2150行内容",
            fontSize = 16.sp,
            color = Color(198, 90, 186),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2151行内容",
            fontSize = 16.sp,
            color = Color(215, 121, 233),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2152行内容",
            fontSize = 16.sp,
            color = Color(232, 152, 24),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2153行内容",
            fontSize = 16.sp,
            color = Color(249, 183, 71),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2154行内容",
            fontSize = 16.sp,
            color = Color(10, 214, 118),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2155行内容",
            fontSize = 16.sp,
            color = Color(27, 245, 165),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2156行内容",
            fontSize = 16.sp,
            color = Color(44, 20, 212),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2157行内容",
            fontSize = 16.sp,
            color = Color(61, 51, 3),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2158行内容",
            fontSize = 16.sp,
            color = Color(78, 82, 50),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2159行内容",
            fontSize = 16.sp,
            color = Color(95, 113, 97),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2160行内容",
            fontSize = 16.sp,
            color = Color(112, 144, 144),
            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 = "进入第145层",
                fontSize = 18.sp,
                fontWeight = FontWeight.Medium,
                color = Color.White
            )
        }
    }
}
