@@ -75,61 +75,60 @@ fun AppHomeScreen(
7575 .widthIn(max = 1200 .dp)
7676 .then(modifier)
7777 ) {
78- Column (Modifier .padding(vertical = 96 .dp).weight(1f ).verticalScroll(rememberScrollState())) {
79- Text (
80- " Nishant Mishra" ,
81- style = typography.displayLarge.copy(fontSize = 48 .sp),
82- color = colorScheme.onSurface
83- )
84- Spacer (Modifier .height(4 .dp))
85- Text (
86- " App developer" ,
87- style = typography.titleLarge,
88- color = colorScheme.onSurface
89- )
90- Spacer (Modifier .height(20 .dp))
91- Text (
92- " I build performant, beautiful apps for mobile and desktop." ,
93- style = typography.bodyLarge,
94- color = colorScheme.onSurfaceVariant,
95- modifier = Modifier .widthIn(max = 320 .dp)
96- )
78+ Column (Modifier .padding(vertical = 96 .dp).weight(1f )) {
79+ Column (Modifier .verticalScroll(rememberScrollState())) {
80+ Text (
81+ " Nishant Mishra" ,
82+ style = typography.displayLarge.copy(fontSize = 48 .sp),
83+ color = colorScheme.onSurface
84+ )
85+ Spacer (Modifier .height(4 .dp))
86+ Text (
87+ " App developer" ,
88+ style = typography.titleLarge,
89+ color = colorScheme.onSurface
90+ )
91+ Spacer (Modifier .height(20 .dp))
92+ Text (
93+ " I build performant, beautiful apps for mobile and desktop." ,
94+ style = typography.bodyLarge,
95+ color = colorScheme.onSurfaceVariant,
96+ modifier = Modifier .widthIn(max = 320 .dp)
97+ )
9798
98- Spacer (Modifier .height(72 .dp))
99+ Spacer (Modifier .height(72 .dp))
99100
100- NavigationItem (
101- selected = firstVisibleItem < paragraphCount + 1 ,
102- onClick = {
103- scope.launch { listState.animateScrollToItem(0 ) }
104- },
105- label = { Text (" About" , style = typography.bodyMedium) },
106- modifier = Modifier .offset(x = (- 20 ).dp)
107- )
108- NavigationItem (
109- selected = firstVisibleItem in paragraphCount + 1 .. < paragraphCount + experienceCount + 2 ,
110- onClick = {
111- scope.launch { listState.animateScrollToItem(paragraphCount + 1 ) }
112- },
113- label = { Text (" Experience" , style = typography.bodyMedium) },
114- modifier = Modifier .offset(x = (- 20 ).dp)
115- )
116- NavigationItem (
117- selected = firstVisibleItem >= paragraphCount + experienceCount + 2 ,
118- onClick = {
119- scope.launch { listState.animateScrollToItem(paragraphCount + experienceCount + 2 ) }
120- },
121- label = { Text (" Projects" , style = typography.bodyMedium) },
122- modifier = Modifier .offset(x = (- 20 ).dp)
123- )
101+ NavigationItem (
102+ selected = firstVisibleItem < paragraphCount + 1 ,
103+ onClick = {
104+ scope.launch { listState.animateScrollToItem(0 ) }
105+ },
106+ label = { Text (" About" , style = typography.bodyMedium) },
107+ modifier = Modifier .offset(x = (- 20 ).dp)
108+ )
109+ NavigationItem (
110+ selected = firstVisibleItem in paragraphCount + 1 .. < paragraphCount + experienceCount + 2 ,
111+ onClick = {
112+ scope.launch { listState.animateScrollToItem(paragraphCount + 1 ) }
113+ },
114+ label = { Text (" Experience" , style = typography.bodyMedium) },
115+ modifier = Modifier .offset(x = (- 20 ).dp)
116+ )
117+ NavigationItem (
118+ selected = firstVisibleItem >= paragraphCount + experienceCount + 2 ,
119+ onClick = {
120+ scope.launch { listState.animateScrollToItem(paragraphCount + experienceCount + 2 ) }
121+ },
122+ label = { Text (" Projects" , style = typography.bodyMedium) },
123+ modifier = Modifier .offset(x = (- 20 ).dp)
124+ )
124125
125- Spacer (Modifier .weight(1f ))
126+ Spacer (Modifier .height(32 .dp))
127+ }
126128
127- Spacer (Modifier .padding(top = 32 .dp ))
129+ Spacer (Modifier .weight( 1f ))
128130
129- Row (
130- horizontalArrangement = Arrangement .spacedBy(4 .dp),
131- verticalAlignment = Alignment .CenterVertically
132- ) {
131+ Row (verticalAlignment = Alignment .CenterVertically ) {
133132 IconButton (onClick = { uriHandler.openUri(" https://github.com/nsh07" ) }) {
134133 Icon (
135134 painterResource(Res .drawable.github),
0 commit comments