|
|
|
@ -40,31 +40,29 @@ import com.example.what_the_fantasy.data.local.UserStub
|
|
|
|
|
import com.example.what_the_fantasy.data.model.User
|
|
|
|
|
import com.example.what_the_fantasy.ui.components.SpaceHeightComponent
|
|
|
|
|
import com.example.what_the_fantasy.ui.components.TitlePageComponent
|
|
|
|
|
import com.example.what_the_fantasy.ui.theme.colorBackground
|
|
|
|
|
import com.example.what_the_fantasy.ui.theme.gradienBox
|
|
|
|
|
import java.security.MessageDigest
|
|
|
|
|
|
|
|
|
|
@Composable
|
|
|
|
|
fun LoginPage(navControllerSignUp: () -> Unit, navControllerProfil: () -> Unit) {
|
|
|
|
|
|
|
|
|
|
val users = UserStub.allUsers;
|
|
|
|
|
val gradient = Brush.linearGradient(
|
|
|
|
|
colors = listOf(Color(0xFF7B1FA2), Color(0xFF311B92)), // Violet clair → Violet foncé
|
|
|
|
|
start = Offset(0f, 1000f), // Départ en bas à gauche
|
|
|
|
|
end = Offset(1000f, 0f) // Fin en haut à droite
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Box(
|
|
|
|
|
modifier = Modifier
|
|
|
|
|
.fillMaxSize()
|
|
|
|
|
.background(Color(0xFF100C1B)),
|
|
|
|
|
.background(colorBackground),
|
|
|
|
|
contentAlignment = Alignment.Center
|
|
|
|
|
){
|
|
|
|
|
Column(
|
|
|
|
|
modifier = Modifier
|
|
|
|
|
.fillMaxWidth(0.9f) // Ajuste la largeur
|
|
|
|
|
.padding(20.dp) // Marge extérieure
|
|
|
|
|
.clip(RoundedCornerShape(16.dp)) // Arrondi les angles
|
|
|
|
|
.background(gradient) // Ajoute un fond blanc
|
|
|
|
|
.padding(20.dp), // Padding interne
|
|
|
|
|
.fillMaxWidth(0.9f)
|
|
|
|
|
.padding(20.dp)
|
|
|
|
|
.clip(RoundedCornerShape(16.dp))
|
|
|
|
|
.background(gradienBox)
|
|
|
|
|
.padding(20.dp),
|
|
|
|
|
horizontalAlignment = Alignment.CenterHorizontally
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
|
|