Skip to content
Snippets Groups Projects
Commit 0d3493b0 authored by CHETTAH YASMINE's avatar CHETTAH YASMINE
Browse files

rendu final exam bonnes vacances

parent 1b3d9b4e
No related merge requests found
...@@ -33,16 +33,20 @@ if (preg_match('#^[a-z0-9.-_]+@[a-z0-9.-_]+\.[a-z]{2,}$#', $username) && ...@@ -33,16 +33,20 @@ if (preg_match('#^[a-z0-9.-_]+@[a-z0-9.-_]+\.[a-z]{2,}$#', $username) &&
$statement->bindValue(':password', password_hash($password, password_BCRYPT)); $statement->bindValue(':password', password_hash($password, password_BCRYPT));
$statement->execute(); $statement->execute();
//inscription réussie
header('Location: http://localhost:8000/login.php'); header('Location: http://localhost:8000/login.php');
} catch (PDOException $exception) { } catch (PDOException $exception) {
die("Le formulaire est incomplet"); //inscription échouée
header('Location: http://localhost:8000/register.php');
} }
} }
else{ else{
die("Le formulaire est incomplet"); //inscription échouée
header('Location: http://localhost:8000/register.php');
} }
......
...@@ -35,16 +35,15 @@ main { ...@@ -35,16 +35,15 @@ main {
#main_section a article{ #main_section a article{
width: 750px ; width: 750px ;
grid-template-columns: repeat(2,1fr);
grid-gap: 20px;
} }
} }
@media all and (min-width : 1200px){ @media all and (min-width : 1200px){
#main_section nav{ #main_section a article{
width: 1200px ; width: 1200px ;
grid-template-columns: repeat(4,1fr);
} }
} }
...@@ -72,6 +71,24 @@ main { ...@@ -72,6 +71,24 @@ main {
z-index: -1; } z-index: -1; }
@media all and (min-width : 750px){
#main_section a header{
width: 750px ;
}
}
@media all and (min-width : 1200px){
#main_section a header{
width: 1200px ;
}
}
main section a article header h3 { main section a article header h3 {
padding: 1rem 0; padding: 1rem 0;
text-align: center; text-align: center;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment