commit ff617d449a50a725e68ef11bb30ed140f2bd9e4f Author: Lucie Bedouret Date: Wed Nov 30 15:54:23 2022 +0100 ADD : first view of the website diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..32b4894 Binary files /dev/null and b/.DS_Store differ diff --git a/index.php b/index.php new file mode 100644 index 0000000..68a62c0 --- /dev/null +++ b/index.php @@ -0,0 +1,24 @@ + + + + + Acceuil + + + +
+

Welcome to our fantastic to do list app !

+ + + +
+ +
+

Todo listes publiques

+

oooooh fdp change

+
+ + + + + diff --git a/userController.php b/userController.php new file mode 100644 index 0000000..7594872 --- /dev/null +++ b/userController.php @@ -0,0 +1,40 @@ +action(); + break; + case "connection": + $this->connection(/* valeurs du login et du mdp dans le formulaire */); + break; + }catch(PDOException $e){ + $dataView[]="Erreur inatendue"; + require(__DIR__.'/../vues/erreur.php'); + } + } + } + + public function connection(string $login, string $password){ + + /* Doit faire: + * vider les input du formulaire + * vérifier avec la bd qu'il y a bien un user + */ + + } +} + +?> \ No newline at end of file diff --git a/views/connection.html b/views/connection.html new file mode 100644 index 0000000..d236ba0 --- /dev/null +++ b/views/connection.html @@ -0,0 +1,27 @@ + + + + connection + + + +
+

You are back ?!

+
+
+

Username

+ +

Password

+ +
+
+ +
+
+

You are new here?

+ + + +
+ + \ No newline at end of file diff --git a/views/error.html b/views/error.html new file mode 100644 index 0000000..f72c671 --- /dev/null +++ b/views/error.html @@ -0,0 +1,8 @@ + + +
+

Error!

+

There was an error in the fields you filled...

+

Please enter correct values

+
+ \ No newline at end of file diff --git a/views/signUp.html b/views/signUp.html new file mode 100644 index 0000000..4fcd0cb --- /dev/null +++ b/views/signUp.html @@ -0,0 +1,27 @@ + + + + connection + + + +
+

Join the good side of the force

+ +
+
+

Please enter all the informations :

+

Username

+ +

Password

+ +

Email

+ +

Date Of Birth

+ +
+
+ +
+ + \ No newline at end of file diff --git a/views/styles/commonStyles.css b/views/styles/commonStyles.css new file mode 100644 index 0000000..51b1e68 --- /dev/null +++ b/views/styles/commonStyles.css @@ -0,0 +1,26 @@ +header{ + display: flex; + flex-direction: row; + background-color: #0971C9; +} +body{ + background-color: #0D2350; + +} +h1{ + font-family: sans-serif; + font-weight: bolder; + color: #6da8e2; +} +.button{ + width: 150%; + height: 75%; + background-color: #FFFEFD; + border-radius: 20%; + border-color: #0971C9; + color: #0D2350; + +} +.button:hover{ + background-color: grey; +} \ No newline at end of file