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

    if (showNextPage) {
        NestedPage131()
        return
    }

    Column(
        modifier = Modifier
            .fillMaxSize()
            .padding(16.dp),
        horizontalAlignment = Alignment.CenterHorizontally,
        verticalArrangement = Arrangement.Center
    ) {
        Text(
            text = "第130层页面",
            fontSize = 24.sp,
            fontWeight = FontWeight.Bold,
            color = Color(0xFF1300000),
            modifier = Modifier.padding(bottom = 20.dp)
        )
        Text(
            text = "这是第1936行内容",
            fontSize = 16.sp,
            color = Color(144, 112, 112),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1937行内容",
            fontSize = 16.sp,
            color = Color(161, 143, 159),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1938行内容",
            fontSize = 16.sp,
            color = Color(178, 174, 206),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1939行内容",
            fontSize = 16.sp,
            color = Color(195, 205, 253),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1940行内容",
            fontSize = 16.sp,
            color = Color(212, 236, 44),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1941行内容",
            fontSize = 16.sp,
            color = Color(229, 11, 91),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1942行内容",
            fontSize = 16.sp,
            color = Color(246, 42, 138),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1943行内容",
            fontSize = 16.sp,
            color = Color(7, 73, 185),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1944行内容",
            fontSize = 16.sp,
            color = Color(24, 104, 232),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1945行内容",
            fontSize = 16.sp,
            color = Color(41, 135, 23),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1946行内容",
            fontSize = 16.sp,
            color = Color(58, 166, 70),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1947行内容",
            fontSize = 16.sp,
            color = Color(75, 197, 117),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1948行内容",
            fontSize = 16.sp,
            color = Color(92, 228, 164),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1949行内容",
            fontSize = 16.sp,
            color = Color(109, 3, 211),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第1950行内容",
            fontSize = 16.sp,
            color = Color(126, 34, 2),
            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 = "进入第131层",
                fontSize = 18.sp,
                fontWeight = FontWeight.Medium,
                color = Color.White
            )
        }
    }
}
