diff --git a/loginPractice/close_session.php b/loginPractice/close_session.php new file mode 100644 index 0000000..0b6010c --- /dev/null +++ b/loginPractice/close_session.php @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/loginPractice/css/estilos.css b/loginPractice/css/estilos.css new file mode 100644 index 0000000..48f7227 --- /dev/null +++ b/loginPractice/css/estilos.css @@ -0,0 +1,118 @@ +* { + padding: 0; + margin: 0; + box-sizing: border-box; +} +body { + font-family: "Montserrat", sans-serif; + font-size: 16px; + background: #51525e; + color: #fff; +} +a { + text-decoration: none; + color: #b8711b; +} +a:hover { + text-decoration: underline; +} + +.container { + max-width: 500px; + width: 90%; + margin: auto; +} + +.title { + color: #b8711b; + text-align: center; + font-weight: 300; + margin: 60px 0 30px 0; +} + +.border { + border: none; + margin-bottom: 5px; + border-top: 10px solid #25b425; + background: none; + color: none; +} + +.form { + background: #2c2c47; + padding: 30px; + margin-bottom: 30px; +} + +.form .form-group { + width: 100%; + margin-bottom: 10px; +} + +.form input[type="text"], +.form input[type="password"] { + padding: 15px; + font-family: "Montserrat", sans-serif; + line-height: 18px; + border: none; + vertical-align: top; +} +.form .icon { + padding: 15px; + text-align: center; + width: 48px; + max-height: 48px; + font-size: 18px; + line-height: 18px; + background: #c8c8c8; + display: inline-block; + color: #6b6b6b; + vertical-align: top; +} +.form .icon.left { + margin-right: 4px; + border-radius: 3px 0 0 3px; +} +.form .user, +.form .password { + width: calc(100% - 52px); + border-radius: 0 3px 3px 0; +} +.form .password_btn { + width: calc(100% - 105px); +} +.form .error ul { + padding: 0 15px; +} +.form .error ul li { + margin-bottom: 10px; +} +.form .submit-btn { + padding: 15px; + text-align: center; + width: 48px; + max-height: 48px; + font-size: 18px; + line-height: 18px; + background: #679863; + display: inline-block; + color: #fff; + background: #769766; + cursor: pointer; + border-radius: 0 3px 3px 0; +} +.text-register { + text-align: center; +} +.text-register a { + display: block; + font-size: 18px; +} +.content article { + padding: 30px; + background: #fff; +} +.content article p { + margin-bottom: 10px; + color: #000; +} diff --git a/loginPractice/index.php b/loginPractice/index.php new file mode 100644 index 0000000..8b4795a --- /dev/null +++ b/loginPractice/index.php @@ -0,0 +1,12 @@ + \ No newline at end of file diff --git a/loginPractice/panel.php b/loginPractice/panel.php new file mode 100644 index 0000000..755af41 --- /dev/null +++ b/loginPractice/panel.php @@ -0,0 +1,27 @@ + + + + + + + Draft Contents + + + + + + + +
+

Welcome Draft Contents

+ Log Out +
+
+
+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure vel aut, adipisci delectus a obcaecati aspernatur saepe vitae velit debitis amet reiciendis aperiam nemo, culpa voluptas earum sequi laudantium esse?

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure vel aut, adipisci delectus a obcaecati aspernatur saepe vitae velit debitis amet reiciendis aperiam nemo, culpa voluptas earum sequi laudantium esse?

+
+
+
+ + \ No newline at end of file diff --git a/loginPractice/register-infophp/php-info.php b/loginPractice/register-infophp/php-info.php new file mode 100644 index 0000000..6480abf --- /dev/null +++ b/loginPractice/register-infophp/php-info.php @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/loginPractice/register-infophp/view_register.php b/loginPractice/register-infophp/view_register.php new file mode 100644 index 0000000..096193a --- /dev/null +++ b/loginPractice/register-infophp/view_register.php @@ -0,0 +1,52 @@ + + + + + + + Register Form + + + + + + + + + +
+

Register Form

+
+ + +
+ +
+ +
+ +
+ +
+ +
+ + + +
+ + + + +
+
    + +
+
+ + + +
+
+ + \ No newline at end of file diff --git a/loginPractice/validate.php b/loginPractice/validate.php new file mode 100644 index 0000000..f0ce3a2 --- /dev/null +++ b/loginPractice/validate.php @@ -0,0 +1,28 @@ +Please, fill in all data correctly'; + } else{ + // Compare if the user has already loggedIn or not + header('Location: panel.php'); + } + +} + +require 'register-infophp/view_register.php'; + +?>