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

    if (showNextPage) {
        NestedPage45()
        return
    }

    Column(
        modifier = Modifier
            .fillMaxSize()
            .padding(16.dp),
        horizontalAlignment = Alignment.CenterHorizontally,
        verticalArrangement = Arrangement.Center
    ) {
        Text(
            text = "第44层页面",
            fontSize = 24.sp,
            fontWeight = FontWeight.Bold,
            color = Color(0xFF440000),
            modifier = Modifier.padding(bottom = 20.dp)
        )
        Text(
            text = "这是第646行内容",
            fontSize = 16.sp,
            color = Color(230, 58, 154),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第647行内容",
            fontSize = 16.sp,
            color = Color(247, 89, 201),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第648行内容",
            fontSize = 16.sp,
            color = Color(8, 120, 248),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第649行内容",
            fontSize = 16.sp,
            color = Color(25, 151, 39),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第650行内容",
            fontSize = 16.sp,
            color = Color(42, 182, 86),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第651行内容",
            fontSize = 16.sp,
            color = Color(59, 213, 133),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第652行内容",
            fontSize = 16.sp,
            color = Color(76, 244, 180),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第653行内容",
            fontSize = 16.sp,
            color = Color(93, 19, 227),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第654行内容",
            fontSize = 16.sp,
            color = Color(110, 50, 18),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第655行内容",
            fontSize = 16.sp,
            color = Color(127, 81, 65),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第656行内容",
            fontSize = 16.sp,
            color = Color(144, 112, 112),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第657行内容",
            fontSize = 16.sp,
            color = Color(161, 143, 159),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第658行内容",
            fontSize = 16.sp,
            color = Color(178, 174, 206),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第659行内容",
            fontSize = 16.sp,
            color = Color(195, 205, 253),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第660行内容",
            fontSize = 16.sp,
            color = Color(212, 236, 44),
            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 = "进入第45层",
                fontSize = 18.sp,
                fontWeight = FontWeight.Medium,
                color = Color.White
            )
        }
    }
}
