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

    if (showNextPage) {
        NestedPage172()
        return
    }

    Column(
        modifier = Modifier
            .fillMaxSize()
            .padding(16.dp),
        horizontalAlignment = Alignment.CenterHorizontally,
        verticalArrangement = Arrangement.Center
    ) {
        Text(
            text = "第171层页面",
            fontSize = 24.sp,
            fontWeight = FontWeight.Bold,
            color = Color(0xFF1710000),
            modifier = Modifier.padding(bottom = 20.dp)
        )
        Text(
            text = "这是第2551行内容",
            fontSize = 16.sp,
            color = Color(103, 233, 89),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2552行内容",
            fontSize = 16.sp,
            color = Color(120, 8, 136),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2553行内容",
            fontSize = 16.sp,
            color = Color(137, 39, 183),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2554行内容",
            fontSize = 16.sp,
            color = Color(154, 70, 230),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2555行内容",
            fontSize = 16.sp,
            color = Color(171, 101, 21),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2556行内容",
            fontSize = 16.sp,
            color = Color(188, 132, 68),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2557行内容",
            fontSize = 16.sp,
            color = Color(205, 163, 115),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2558行内容",
            fontSize = 16.sp,
            color = Color(222, 194, 162),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2559行内容",
            fontSize = 16.sp,
            color = Color(239, 225, 209),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2560行内容",
            fontSize = 16.sp,
            color = Color(0, 0, 0),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2561行内容",
            fontSize = 16.sp,
            color = Color(17, 31, 47),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2562行内容",
            fontSize = 16.sp,
            color = Color(34, 62, 94),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2563行内容",
            fontSize = 16.sp,
            color = Color(51, 93, 141),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2564行内容",
            fontSize = 16.sp,
            color = Color(68, 124, 188),
            modifier = Modifier.padding(vertical = 4.dp)
        )
        Text(
            text = "这是第2565行内容",
            fontSize = 16.sp,
            color = Color(85, 155, 235),
            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 = "进入第172层",
                fontSize = 18.sp,
                fontWeight = FontWeight.Medium,
                color = Color.White
            )
        }
    }
}
