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

    if (showNextPage) {
        NestedPage120()
        return
    }

    Column(
        modifier = Modifier
            .fillMaxSize()
            .padding(16.dp),
        horizontalAlignment = Alignment.CenterHorizontally,
        verticalArrangement = Arrangement.Center
    ) {
        Text(
            text = "第119层页面",
            fontSize = 24.sp,
            fontWeight = FontWeight.Bold,
            color = Color(0xFF1190000),
            modifier = Modifier.padding(bottom = 20.dp)
        )
        Text(
            text = "这是第1771行内容",
            fontSize = 16.sp,
            color = Color(155, 117, 37),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1772行内容",
            fontSize = 16.sp,
            color = Color(172, 148, 84),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1773行内容",
            fontSize = 16.sp,
            color = Color(189, 179, 131),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1774行内容",
            fontSize = 16.sp,
            color = Color(206, 210, 178),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1775行内容",
            fontSize = 16.sp,
            color = Color(223, 241, 225),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1776行内容",
            fontSize = 16.sp,
            color = Color(240, 16, 16),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1777行内容",
            fontSize = 16.sp,
            color = Color(1, 47, 63),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1778行内容",
            fontSize = 16.sp,
            color = Color(18, 78, 110),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1779行内容",
            fontSize = 16.sp,
            color = Color(35, 109, 157),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1780行内容",
            fontSize = 16.sp,
            color = Color(52, 140, 204),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1781行内容",
            fontSize = 16.sp,
            color = Color(69, 171, 251),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1782行内容",
            fontSize = 16.sp,
            color = Color(86, 202, 42),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1783行内容",
            fontSize = 16.sp,
            color = Color(103, 233, 89),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1784行内容",
            fontSize = 16.sp,
            color = Color(120, 8, 136),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1785行内容",
            fontSize = 16.sp,
            color = Color(137, 39, 183),
            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 = "进入第120层",
                fontSize = 18.sp,
                fontWeight = FontWeight.Medium,
                color = Color.White
            )
        }
    }
}
