@@ -26,16 +26,7 @@ import androidx.compose.runtime.getValue
2626@OptIn(ExperimentalMaterial3Api ::class )
2727@Composable
2828fun MainMenu (navController : NavController , viewModel : MainViewModel ) {
29- val time by produceState(initialValue = 0f ) {
30- while (true ) {
31- withInfiniteAnimationFrameMillis {
32- value = it / 1000f
33- }
34- }
35- }
36-
3729 Scaffold (
38- modifier = Modifier .cyberpunkHudBackground(time),
3930 topBar = {
4031 CenterAlignedTopAppBar (
4132 title = {
@@ -90,27 +81,23 @@ fun MainMenu(navController: NavController, viewModel: MainViewModel) {
9081 // HIGH-FIDELITY CORE MODULE GRID
9182 Column (verticalArrangement = Arrangement .spacedBy(16 .dp)) {
9283 Row (modifier = Modifier .fillMaxWidth(), horizontalArrangement = Arrangement .SpaceBetween ) {
93- ModuleCard (" BIBLE" , " Reader" , Icons .AutoMirrored .Filled .MenuBook , Color (0xFF9ece6a ), Modifier .weight(1f ).cyberpunkGlowAura(time, Color ( 0xFF9ece6a ).copy(alpha = 0.3f )) ) {
84+ ModuleCard (" BIBLE" , " Reader" , Icons .AutoMirrored .Filled .MenuBook , Color (0xFF9ece6a ), Modifier .weight(1f )) {
9485 navController.navigate(" bible" )
9586 }
96- ModuleCard (" COLLECTION" , " Scholarship" , Icons .Default .CollectionsBookmark , Color (0xFFbb9af7 ), Modifier .weight(1f ).cyberpunkGlowAura(time, Color ( 0xFFbb9af7 ).copy(alpha = 0.3f )) ) {
87+ ModuleCard (" COLLECTION" , " Scholarship" , Icons .Default .CollectionsBookmark , Color (0xFFbb9af7 ), Modifier .weight(1f )) {
9788 navController.navigate(" collection" )
9889 }
9990 }
10091 Row (modifier = Modifier .fillMaxWidth(), horizontalArrangement = Arrangement .SpaceBetween ) {
101- ModuleCard (" DATA" , " Management" , Icons .Default .Storage , Color (0xFFf7768e ), Modifier .weight(1f ).cyberpunkGlowAura(time, Color ( 0xFFf7768e ).copy(alpha = 0.3f )) ) {
92+ ModuleCard (" DATA" , " Management" , Icons .Default .Storage , Color (0xFFf7768e ), Modifier .weight(1f )) {
10293 navController.navigate(" data_management" )
10394 }
104- ModuleCard (" LABS" , " Research" , Icons .Default .Science , Color (0xFFff9e6a ), Modifier .weight(1f ).cyberpunkGlowAura(time, Color ( 0xFFff9e6a ).copy(alpha = 0.3f )) ) {
95+ ModuleCard (" LABS" , " Research" , Icons .Default .Science , Color (0xFFff9e6a ), Modifier .weight(1f )) {
10596 navController.navigate(" experimental_hub" )
10697 }
10798 }
108- // Odd tile out -- half-width row (paired with an empty
109- // Spacer rather than stretching full-width) keeps the same
110- // card size/rhythm as the 2x2 grid above instead of looking
111- // like a broken layout.
11299 Row (modifier = Modifier .fillMaxWidth(), horizontalArrangement = Arrangement .SpaceBetween ) {
113- ModuleCard (" MY READING" , " Habits" , Icons .Default .Insights , Color (0xFF9ece6a ), Modifier .weight(1f ).cyberpunkGlowAura(time, Color ( 0xFF9ece6a ).copy(alpha = 0.3f )) ) {
100+ ModuleCard (" MY READING" , " Habits" , Icons .Default .Insights , Color (0xFF9ece6a ), Modifier .weight(1f )) {
114101 navController.navigate(" reading_stats" )
115102 }
116103 Spacer (modifier = Modifier .weight(1f ))
0 commit comments