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

    if (showNextPage) {
        NestedPage115()
        return
    }

    Column(
        modifier = Modifier
            .fillMaxSize()
            .padding(16.dp),
        horizontalAlignment = Alignment.CenterHorizontally,
        verticalArrangement = Arrangement.Center
    ) {
        Text(
            text = "第114层页面",
            fontSize = 24.sp,
            fontWeight = FontWeight.Bold,
            color = Color(0xFF1140000),
            modifier = Modifier.padding(bottom = 20.dp)
        )
        Text(
            text = "这是第1696行内容",
            fontSize = 16.sp,
            color = Color(160, 96, 96),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1697行内容",
            fontSize = 16.sp,
            color = Color(177, 127, 143),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1698行内容",
            fontSize = 16.sp,
            color = Color(194, 158, 190),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1699行内容",
            fontSize = 16.sp,
            color = Color(211, 189, 237),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1700行内容",
            fontSize = 16.sp,
            color = Color(228, 220, 28),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1701行内容",
            fontSize = 16.sp,
            color = Color(245, 251, 75),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1702行内容",
            fontSize = 16.sp,
            color = Color(6, 26, 122),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1703行内容",
            fontSize = 16.sp,
            color = Color(23, 57, 169),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1704行内容",
            fontSize = 16.sp,
            color = Color(40, 88, 216),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1705行内容",
            fontSize = 16.sp,
            color = Color(57, 119, 7),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1706行内容",
            fontSize = 16.sp,
            color = Color(74, 150, 54),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1707行内容",
            fontSize = 16.sp,
            color = Color(91, 181, 101),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1708行内容",
            fontSize = 16.sp,
            color = Color(108, 212, 148),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1709行内容",
            fontSize = 16.sp,
            color = Color(125, 243, 195),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1710行内容",
            fontSize = 16.sp,
            color = Color(142, 18, 242),
            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 = "进入第115层",
                fontSize = 18.sp,
                fontWeight = FontWeight.Medium,
                color = Color.White
            )
        }
    }
}
