Cambios en theme y login
Browse files- app/contrasena.php +2 -2
- app/controllers/controllerLogin.php +2 -2
- app/errorLogin.php +30 -0
- app/inc/header.php +1 -1
- app/inc/nav.php +1 -1
- app/inc/pageHeader.php +1 -1
app/contrasena.php
CHANGED
|
@@ -19,7 +19,7 @@
|
|
| 19 |
<!-- Modal -->
|
| 20 |
<div class="modal fade" id="copiado" tabindex="-1" aria-labelledby="copiadoLabel" aria-hidden="true">
|
| 21 |
<div class="modal-dialog modal-dialog-centered">
|
| 22 |
-
<div class="modal-content
|
| 23 |
<div class="modal-header">
|
| 24 |
<h1 class="modal-title fs-5" id="copiadoLabel">Éxito</h1>
|
| 25 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
@@ -42,7 +42,7 @@
|
|
| 42 |
<div class="modal fade" id="form" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
|
| 43 |
aria-labelledby="formLabel" aria-hidden="true">
|
| 44 |
<div class="modal-dialog modal-dialog-centered">
|
| 45 |
-
<div class="modal-content
|
| 46 |
<div class="modal-header">
|
| 47 |
<h1 class="text-center fs-5" id="formLabel">Encuesta de satisfacción</h1>
|
| 48 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
|
|
| 19 |
<!-- Modal -->
|
| 20 |
<div class="modal fade" id="copiado" tabindex="-1" aria-labelledby="copiadoLabel" aria-hidden="true">
|
| 21 |
<div class="modal-dialog modal-dialog-centered">
|
| 22 |
+
<div class="modal-content border-white">
|
| 23 |
<div class="modal-header">
|
| 24 |
<h1 class="modal-title fs-5" id="copiadoLabel">Éxito</h1>
|
| 25 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
|
|
| 42 |
<div class="modal fade" id="form" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
|
| 43 |
aria-labelledby="formLabel" aria-hidden="true">
|
| 44 |
<div class="modal-dialog modal-dialog-centered">
|
| 45 |
+
<div class="modal-content border-white">
|
| 46 |
<div class="modal-header">
|
| 47 |
<h1 class="text-center fs-5" id="formLabel">Encuesta de satisfacción</h1>
|
| 48 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
app/controllers/controllerLogin.php
CHANGED
|
@@ -23,7 +23,7 @@ foreach ($usuarios as $user) {
|
|
| 23 |
}
|
| 24 |
|
| 25 |
if (!$coinciden) {
|
| 26 |
-
header('Location: ../
|
| 27 |
exit();
|
| 28 |
}
|
| 29 |
|
|
@@ -31,6 +31,6 @@ session_start();
|
|
| 31 |
$_SESSION["usuario"] = $useduser['usuario'];
|
| 32 |
$_SESSION["correo"] = $useduser['correo'];
|
| 33 |
|
| 34 |
-
header('Location: ../');
|
| 35 |
exit();
|
| 36 |
?>
|
|
|
|
| 23 |
}
|
| 24 |
|
| 25 |
if (!$coinciden) {
|
| 26 |
+
header('Location: ../errorLogin.php');
|
| 27 |
exit();
|
| 28 |
}
|
| 29 |
|
|
|
|
| 31 |
$_SESSION["usuario"] = $useduser['usuario'];
|
| 32 |
$_SESSION["correo"] = $useduser['correo'];
|
| 33 |
|
| 34 |
+
header('Location: ../index.php');
|
| 35 |
exit();
|
| 36 |
?>
|
app/errorLogin.php
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="es" data-bs-theme="dark">
|
| 3 |
+
|
| 4 |
+
<head>
|
| 5 |
+
<meta charset="UTF-8">
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 7 |
+
<title>Login</title>
|
| 8 |
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
|
| 9 |
+
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
| 10 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 11 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 12 |
+
<link href="https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap"
|
| 13 |
+
rel="stylesheet">
|
| 14 |
+
<link rel="stylesheet" href="/css/login.css">
|
| 15 |
+
</head>
|
| 16 |
+
|
| 17 |
+
<body class="vh-100 d-flex flex-column justify-content-center align-items-center">
|
| 18 |
+
|
| 19 |
+
<div class="jumbotron">
|
| 20 |
+
<h1>¡Ups! Ha ocurrido un error</h1>
|
| 21 |
+
<p class="fs-4">Revise sus credenciales para poder ingresar</p>
|
| 22 |
+
<p><a class="btn btn-primary btn-lg" href="#" role="button">Volver al login</a></p>
|
| 23 |
+
</div>
|
| 24 |
+
|
| 25 |
+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
|
| 26 |
+
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
|
| 27 |
+
crossorigin="anonymous"></script>
|
| 28 |
+
</body>
|
| 29 |
+
|
| 30 |
+
</html>
|
app/inc/header.php
CHANGED
|
@@ -25,4 +25,4 @@ if (!isset($_SESSION['usuario'])) {
|
|
| 25 |
<body class=" text-center bg-secondary p-0 m-0 text-white" style="min-height: 100vh; overflow-x: hidden;">
|
| 26 |
<?php include_once "./inc/nav.php" ?>
|
| 27 |
<?php include_once "./inc/pageHeader.php" ?>
|
| 28 |
-
<main class="container-lg pt-serif-regular pt-4 pb-2
|
|
|
|
| 25 |
<body class=" text-center bg-secondary p-0 m-0 text-white" style="min-height: 100vh; overflow-x: hidden;">
|
| 26 |
<?php include_once "./inc/nav.php" ?>
|
| 27 |
<?php include_once "./inc/pageHeader.php" ?>
|
| 28 |
+
<main class="container-lg pt-serif-regular pt-4 pb-2">
|
app/inc/nav.php
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
<nav class="container-lg navbar-expand-lg navbar
|
| 2 |
<div class="container-fluid">
|
| 3 |
<a class="navbar-brand fs-1 pt-serif-bold p-2" style="letter-spacing: 3px;" href="/">ITSZ</a>
|
| 4 |
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
|
|
|
|
| 1 |
+
<nav class="container-lg navbar-expand-lg navbar border-bottom border-body" data-bs-theme="dark">
|
| 2 |
<div class="container-fluid">
|
| 3 |
<a class="navbar-brand fs-1 pt-serif-bold p-2" style="letter-spacing: 3px;" href="/">ITSZ</a>
|
| 4 |
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
|
app/inc/pageHeader.php
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
<header class="text-center pt-4 fs-1 fw-bolder md
|
| 2 |
">
|
| 3 |
<div class="row p-0 pt-serif-bold-italic">
|
| 4 |
<h1 class="letra-titulo p-0 m-0">
|
|
|
|
| 1 |
+
<header class="text-center pt-4 fs-1 fw-bolder md container-lg
|
| 2 |
">
|
| 3 |
<div class="row p-0 pt-serif-bold-italic">
|
| 4 |
<h1 class="letra-titulo p-0 m-0">
|