diff --git a/assets/css/style.css b/assets/css/style.css new file mode 100644 index 0000000..6191d70 --- /dev/null +++ b/assets/css/style.css @@ -0,0 +1,135 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; + font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; + color: #c9dff6; +} + +.container-login { + height: 100vh; + width: 100vw; + display: flex; + flex-direction: row; +} + +.img-login { + width: 50vw; + background-image: url("../img/esma-Phaz7JBtSWE-unsplash.jpg"); + background-size: cover; +} + +.container-form-login { + width: 50vw; + height: 100vh; + background-color: #476972; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} + +.form-login { + width: 35vw; + height: 85vh; + padding: 5em; + + display: flex; + flex-direction: column; + align-items: flex-start; + justify-content: space-around; +} + +.form-login h2 { + margin-bottom: 1.5em; +} + +.form-login input { + background-color: #476972; + height: 3em; + width: 20em; + border-color: #c9dff6; + font-size: 1em; + padding: 1em; +} + +input:focus { + background-color: #c9dff6; + color: #242829; + outline: none; +} + +input:-webkit-autofill { + -webkit-text-fill-color: #c9dff6; + -webkit-box-shadow: 0 0 0px 1000px #476972 inset; +} + +.form-login label { + color: #c9dff6; + font-size: 1em; +} + +button { + height: 3em; + width: 20em; + margin-top: 2em; + background-color: #c9dff6; + border-color: #c9dff6; + color: #242829; + font-size: 1em; + cursor: pointer; +} + +.body-panel-page { + width: 100vw; + height: 100vh; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + background-color: #476972; +} + +.body-panel-page h2 { + font-size: 50px; + margin-bottom: 1em; +} + +.body-panel-page div { + width: 100vw; + height: 100vh; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + background-image: url("../img/esma-Phaz7JBtSWE-unsplash.jpg"); + background-size: cover; +} + +.body-panel-page div h2 { + color: #242829; + text-shadow: 1px 1px 1px #476972; +} + +.body-panel-page div button { + background-color: #242829; + color: #8f9ead; + border-color: #242829; +} + +.error-invalid-user { + width: 90vw; + height: 4.5em; + top: 10px; + position: fixed; + background-color: #c9dff6af; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} + +.error-invalid-user h3 { + color: #242829; + font-size: 45px; +} diff --git a/assets/img/esma-Phaz7JBtSWE-unsplash.jpg b/assets/img/esma-Phaz7JBtSWE-unsplash.jpg new file mode 100644 index 0000000..035f908 Binary files /dev/null and b/assets/img/esma-Phaz7JBtSWE-unsplash.jpg differ diff --git a/close_session.php b/close_session.php new file mode 100644 index 0000000..b277c97 --- /dev/null +++ b/close_session.php @@ -0,0 +1,19 @@ +'; +print_r($_SERVER);; +echo ''; diff --git a/exercises/session_variables.php b/exercises/session_variables.php new file mode 100644 index 0000000..9962fec --- /dev/null +++ b/exercises/session_variables.php @@ -0,0 +1,12 @@ +'; +print_r($_SESSION); +echo ''; + +echo php_ini_loaded_file(); diff --git a/index.php b/index.php new file mode 100644 index 0000000..ec7331f --- /dev/null +++ b/index.php @@ -0,0 +1,43 @@ + + + + + + + + Login Page + + + + +

Enter a valid email and password!

"; + } + + ?> +
+
+
+ +
+
+ + + \ No newline at end of file diff --git a/panel.php b/panel.php new file mode 100644 index 0000000..834864b --- /dev/null +++ b/panel.php @@ -0,0 +1,34 @@ + + + + + + + + User Page + + + + + + Welcome, " . $_SESSION['email'] . "!"; + echo "
"; + echo ""; + echo "
"; + } else { + echo "
"; + echo "

It is a private section...

"; + echo "
"; + echo ""; + echo "
"; + echo "
"; + } + ?> + + + + \ No newline at end of file diff --git a/validate.php b/validate.php new file mode 100644 index 0000000..fabf6f7 --- /dev/null +++ b/validate.php @@ -0,0 +1,18 @@ +