|
|
@ -1,18 +1,18 @@
|
|
|
|
package fr.iut.sciencequest.view
|
|
|
|
package fr.iut.sciencequest.view
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import android.widget.Toast
|
|
|
|
import androidx.compose.foundation.layout.Arrangement
|
|
|
|
import androidx.compose.foundation.layout.Arrangement
|
|
|
|
import androidx.compose.foundation.layout.Column
|
|
|
|
import androidx.compose.foundation.layout.Column
|
|
|
|
import androidx.compose.foundation.layout.Row
|
|
|
|
|
|
|
|
import androidx.compose.foundation.layout.fillMaxWidth
|
|
|
|
import androidx.compose.foundation.layout.fillMaxWidth
|
|
|
|
import androidx.compose.foundation.layout.padding
|
|
|
|
import androidx.compose.foundation.layout.padding
|
|
|
|
import androidx.compose.foundation.layout.width
|
|
|
|
|
|
|
|
import androidx.compose.material3.Button
|
|
|
|
import androidx.compose.material3.Button
|
|
|
|
import androidx.compose.material3.Text
|
|
|
|
import androidx.compose.material3.Text
|
|
|
|
import androidx.compose.runtime.Composable
|
|
|
|
import androidx.compose.runtime.Composable
|
|
|
|
import androidx.compose.ui.Alignment
|
|
|
|
import androidx.compose.ui.Alignment
|
|
|
|
import androidx.compose.ui.Modifier
|
|
|
|
import androidx.compose.ui.Modifier
|
|
|
|
|
|
|
|
import androidx.compose.ui.platform.LocalContext
|
|
|
|
import androidx.compose.ui.tooling.preview.Preview
|
|
|
|
import androidx.compose.ui.tooling.preview.Preview
|
|
|
|
import androidx.compose.ui.unit.Dp
|
|
|
|
import androidx.compose.ui.unit.dp
|
|
|
|
import androidx.compose.ui.unit.sp
|
|
|
|
import androidx.compose.ui.unit.sp
|
|
|
|
|
|
|
|
|
|
|
|
@Composable
|
|
|
|
@Composable
|
|
|
@ -31,16 +31,18 @@ fun HomeScreenPreview() {
|
|
|
|
|
|
|
|
|
|
|
|
@Composable
|
|
|
|
@Composable
|
|
|
|
fun MainContent() {
|
|
|
|
fun MainContent() {
|
|
|
|
Column (modifier= Modifier.fillMaxWidth().padding(Dp(30f)), horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.spacedBy(
|
|
|
|
val context = LocalContext.current;
|
|
|
|
Dp(15f)
|
|
|
|
val comingSoon = Toast.makeText(context, "Coming soon", Toast.LENGTH_SHORT);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Column (modifier = Modifier.fillMaxWidth().padding(30.dp), horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.spacedBy(15.dp
|
|
|
|
)){
|
|
|
|
)){
|
|
|
|
Button(onClick = { /*TODO*/ }, Modifier.fillMaxWidth()) {
|
|
|
|
Button(onClick = { comingSoon.show() }, Modifier.fillMaxWidth()) {
|
|
|
|
Text(text = "Pendu", fontSize = 13.sp)
|
|
|
|
Text(text = "Pendu", fontSize = 13.sp)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Button(onClick = { /*TODO*/ }, Modifier.fillMaxWidth()) {
|
|
|
|
Button(onClick = { comingSoon.show() }, Modifier.fillMaxWidth()) {
|
|
|
|
Text(text = "Kahoot", fontSize = 13.sp)
|
|
|
|
Text(text = "Kahoot", fontSize = 13.sp)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Button(onClick = { /*TODO*/ }, Modifier.fillMaxWidth()) {
|
|
|
|
Button(onClick = { comingSoon.show() }, Modifier.fillMaxWidth()) {
|
|
|
|
Text(text = "Qui est ce ?", fontSize = 13.sp)
|
|
|
|
Text(text = "Qui est ce ?", fontSize = 13.sp)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|