From ff617d449a50a725e68ef11bb30ed140f2bd9e4f Mon Sep 17 00:00:00 2001 From: Lucie Bedouret Date: Wed, 30 Nov 2022 15:54:23 +0100 Subject: [PATCH] ADD : first view of the website --- .DS_Store | Bin 0 -> 6148 bytes index.php | 24 ++++++++++++++++++++ userController.php | 40 ++++++++++++++++++++++++++++++++++ views/connection.html | 27 +++++++++++++++++++++++ views/error.html | 8 +++++++ views/signUp.html | 27 +++++++++++++++++++++++ views/styles/commonStyles.css | 26 ++++++++++++++++++++++ 7 files changed, 152 insertions(+) create mode 100644 .DS_Store create mode 100644 index.php create mode 100644 userController.php create mode 100644 views/connection.html create mode 100644 views/error.html create mode 100644 views/signUp.html create mode 100644 views/styles/commonStyles.css diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..32b4894a0a50e361617c710681e75b3bf0d45fec GIT binary patch literal 6148 zcmeHKO-lnY5PhQ+DjqDJya@RP1^>ZX>%p^sK>7g+>u#~FdfdA|#-FHfW}9wTNBeZJvL^shuhC}o^^&Zdl(ERzIC6w0P9-{3@)JXx&i<6+ij0k;(;@ls zA$jKS$BWqP%%3bAQaDB(3WNe}1rEJA()0g@f0^D#ewz}lP#_f8GX-QYy_-(BseHEn z+Mb@ZiRGR}P2(DMX!Ki`05 + + + + 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