Fix PSE jsonIndex

Update About Page
This commit is contained in:
BuildTools
2024-05-23 21:07:11 +02:00
parent cfdf00e0a5
commit e64a010e1d
2 changed files with 61 additions and 48 deletions

View File

@@ -24,6 +24,7 @@ import androidx.compose.material3.TopAppBar
import androidx.compose.material3.TopAppBarDefaults
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import com.schoolapp.cleverclass.ui.theme.CleverClassTheme
@@ -70,14 +71,18 @@ fun AboutContent(activity: ComponentActivity){
.verticalScroll(rememberScrollState())
.fillMaxWidth())
{
Spacer(modifier = Modifier.height(16.dp))
Text(text = "This Product is published under the\nGNU General Public License\nVersion 3, 29 June 2007",
style = MaterialTheme.typography.bodySmall,
modifier = Modifier.padding(start = 16.dp, end = 16.dp))
Spacer(modifier = Modifier.height(32.dp))
Text(text = "Developed by:\n- Paul Posch\n- Matthias Meyer\n- Jakub Szarko\n- Emilian Bührer",
style = MaterialTheme.typography.bodySmall,
modifier = Modifier.padding(start = 16.dp, end = 16.dp))
AboutTextElement("This Product is published under the\nGNU General Public License\nVersion 3, 29 June 2007", 16.dp)
AboutTextElement("Developed by:\n- Paul Posch\n- Matthias Meyer\n- Jakub Szarko\n- Emilian Bührer", 32.dp)
AboutTextElement("Fun Facts:\nThis app consists of 2.873 lines of code\nThe repository is 413KB big\nThe development took about 3 month", 64.dp) //TODO: Update before launch
}
}
}
@Composable
fun AboutTextElement(text: String, space: Dp){
Spacer(modifier = Modifier.height(space))
Text(text = text,
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.onBackground,
modifier = Modifier.padding(start = 16.dp, end = 16.dp))
}