control de candidatos

This commit is contained in:
VictorMongeM 2025-05-15 20:34:35 -06:00
parent 16664385bd
commit 72885cff2c
20 changed files with 346 additions and 1423 deletions

View File

@ -0,0 +1,68 @@
<?php
require_once __DIR__ . "/../../config/Database.php";
if ($_SERVER['REQUEST_METHOD'] === 'GET' && isset($_GET['n'])){
$numero_inserts = intval($_GET['n']);
if ($numero_inserts <= 0) {
echo "El número de inserts debe ser un entero positivo.";
exit;
}
// Configuración de rangos para campos aleatorios
$id_examen_min = 1;
$id_examen_max = 15;
$id_tipo_id_min = 1;
$id_tipo_id_max = 7;
$id_rango_edad_min = 1;
$id_rango_edad_max = 7;
$id_genero_min = 1;
$id_genero_max = 3;
$conn = Database::getInstance();
$conn->begin_transaction();
try {
for ($i = 1; $i <= $numero_inserts; $i++) {
$nombres = "Nombre" . $i;
$primer_apellido = "ApellidoP" . $i;
$segundo_apellido = "ApellidoM" . $i;
$correo = "correo" . $i . "@gmail.com";
$fecha_entrada = date('Y-m-d H:i:s');
// fecha_salida es NULL por defecto en la tabla, o se puede especificar como NULL
$telefono = '';
for ($j = 0; $j < 10; $j++) {
$telefono .= rand(0, 9);
}
$id_examen = rand($id_examen_min, $id_examen_max);
$id_tipo_id = rand($id_tipo_id_min, $id_tipo_id_max);
$id_rango_edad = rand($id_rango_edad_min, $id_rango_edad_max);
$id_genero = rand($id_genero_min, $id_genero_max);
$sql = "INSERT INTO candidato (fecha_entrada, nombres, primer_apellido, segundo_apellido, correo, telefono, id_examen, id_tipo_id, id_rango_edad, id_genero)
VALUES ('{$fecha_entrada}', '{$nombres}', '{$primer_apellido}', '{$segundo_apellido}', '{$correo}', '{$telefono}', {$id_examen}, {$id_tipo_id}, {$id_rango_edad}, {$id_genero})";
if (!$conn->query($sql)) {
throw new Exception("Error al insertar el registro {$i}: " . $conn->error);
}
}
$conn->commit();
echo "Se han insertado {$numero_inserts} registros exitosamente.";
} catch (Exception $e) {
$conn->rollback();
echo "Error en la transacción: " . $e->getMessage();
} finally {
$conn->close();
}
} else {
echo "Parámetros incorrectos. Asegúrate de pasar 'n' como parámetro GET con un número entero.";
}
?>

View File

@ -28,6 +28,11 @@ class ControlCandidatos {
return $candidatos;
}
}
public function eliminarCandidato($id_candidato){
return $this->candidatoModel->eliminarCandidato($id_candidato);
}
}
?>

View File

@ -1,37 +1,32 @@
<?php
header('Content-Type: application/json');
require_once __DIR__ . '/UsuarioController.php';
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
// Inicializar el modelo de usuario
UsuarioController::inicializar();
// Obtener los datos de la solicitud
$usuario = $_POST['numero-personal'];
$contrasena = $_POST['contrasena'];
if ( $_SERVER['REQUEST_METHOD'] === 'POST') {
try {
// Iniciar sesión del usuario
if (UsuarioController::iniciarSesion($usuario, $contrasena)) {
session_start(); // Iniciar la sesión
$_SESSION['autenticado'] = true; // Marcar la sesión como autenticada
echo json_encode([
'estado' => 'exitoso',
'mensaje' => 'Inicio de sesión exitoso'
]);
} else {
echo json_encode([
'estado' => 'error',
'mensaje' => 'Usuario o contraseña incorrectos'
]);
}
} catch (Exception $e) {
echo json_encode([
'estado' => 'error',
'mensaje' => 'Error al iniciar sesión, intentelo más tarde.',
'res' => $e->getMessage()
]);
$usuario = isset($_POST['numero-personal']) ? $_POST['numero-personal'] : '';
$contrasena = isset($_POST['contrasena']) ? $_POST['contrasena'] : '';
// Iniciar sesión y obtener respuesta
$respuesta = UsuarioController::iniciarSesion($usuario, $contrasena);
if ($respuesta['estado'] === 'exitoso') {
// Iniciar sesión
session_start();
$_SESSION['usuario'] = $usuario;
}
} else {
header('HTTP/1.1 405 Method Not Allowed');
}
echo json_encode($respuesta);
} else {
// Metodo no permitido
echo json_encode([
'estado' => 'error',
'mensaje' => 'Método no permitido'
]);
}
?>

View File

@ -0,0 +1,18 @@
<?php
header('Content-Type: application/json', 'charset=UTF-8');
require_once __DIR__ . '/ControlCandidatos.php';
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['id_candidato'])) {
$candidatoController = new ControlCandidatos();
$id_candidato = $_POST['id_candidato'];
$resultado = $candidatoController->eliminarCandidato($id_candidato);
echo json_encode($resultado);
} else {
http_response_code(400);
echo json_encode([
'estado' => 'error',
'mensaje' => 'Método no permitido.'
]);
}
?>

35
js/control-candidato.js Normal file
View File

@ -0,0 +1,35 @@
document.addEventListener("DOMContentLoaded" , function() {
const tabla = document.querySelector('table');
tabla.addEventListener("click", function(evento) {
const botonEliminar = evento.target.closest(".boton-eliminar");
if (botonEliminar) {
// Obtener id del candidato a eliminar usando dataset
const idCandidatoEliminar = botonEliminar.dataset.idCandidato;
// Mostrar un mensaje de confirmación antes de eliminar
if (!confirm("¿Desea eliminar al candidato " + idCandidatoEliminar + "?")) {
return;
}
const data = new FormData();
data.append("id_candidato", idCandidatoEliminar);
fetch('../controllers/eliminarCandidato.php', {
method: 'POST',
body: data
})
.then(response => response.json())
.then(data => {
alert(data.mensaje);
location.reload();
})
.catch((error) => {
console.error('Error:', error);
});
}
});
});

View File

@ -339,7 +339,7 @@ document.addEventListener("DOMContentLoaded", function () {
if (resultado.estado === "exitoso") {
console.log(resultado.res);
alert('Se guardó la información correctamente');
//window.location.href = 'inicio.html';
window.location.href = 'pantalla-salida-form.html';
} else if(resultado.estado === "error") {
console.error("RegistrarInfoCandidato.php: " + resultado.res);
alert("Ocurrió un error, intentelo más tarde.");

View File

@ -18,17 +18,24 @@ formulario.addEventListener("submit", async (event) => {
body: data,
});
// const respuesta = await respuestaPeticion.json();
const respuesta = await respuestaPeticion.json();
if (respuesta.estado === 'exitoso') {
window.location.href = 'views/inicio.html';
} else if(respuesta.estado === 'error') {
notificacion.textContent = respuesta.mensaje;
if(respuesta.res){ // Si existe respuesta.res hubo un error y se imprime en consola
console.error(respuesta.res)
}
notificacion.style.display = "block";
} else {
notificacion.textContent = "Lo sentimos, el servicio no está disponible por el momento";
console.error("No se recibió la respuesta esperada del servidor");
}
} catch (error) {
notificacion.textContent = "Lo sentimos, el servicio no está disponible por el momento";
console.error(error)

View File

@ -27,7 +27,7 @@ allDropdown.forEach(item=> {
// SIDEBAR COLLAPSE
const toggleSidebar = document.querySelector('nav .toggle-sidebar');
// const toggleSidebar = document.querySelector('nav .toggle-sidebar');
const allSideDivider = document.querySelectorAll('#sidebar .divider');
if(sidebar.classList.contains('hide')) {
@ -45,25 +45,25 @@ if(sidebar.classList.contains('hide')) {
})
}
toggleSidebar.addEventListener('click', function () {
sidebar.classList.toggle('hide');
if(sidebar.classList.contains('hide')) {
allSideDivider.forEach(item=> {
item.textContent = '-'
})
allDropdown.forEach(item=> {
const a = item.parentElement.querySelector('a:first-child');
a.classList.remove('active');
item.classList.remove('show');
})
} else {
allSideDivider.forEach(item=> {
item.textContent = item.dataset.text;
})
}
})
// toggleSidebar.addEventListener('click', function () {
// sidebar.classList.toggle('hide');
//
// if(sidebar.classList.contains('hide')) {
// allSideDivider.forEach(item=> {
// item.textContent = '-'
// })
//
// allDropdown.forEach(item=> {
// const a = item.parentElement.querySelector('a:first-child');
// a.classList.remove('active');
// item.classList.remove('show');
// })
// } else {
// allSideDivider.forEach(item=> {
// item.textContent = item.dataset.text;
// })
// }
// })
@ -100,13 +100,13 @@ sidebar.addEventListener('mouseenter', function () {
// PROFILE DROPDOWN
const profile = document.querySelector('nav .profile');
const imgProfile = profile.querySelector('img');
const dropdownProfile = profile.querySelector('.profile-link');
imgProfile.addEventListener('click', function () {
dropdownProfile.classList.toggle('show');
})
// const profile = document.querySelector('nav .profile');
// const imgProfile = profile.querySelector('img');
// const dropdownProfile = profile.querySelector('.profile-link');
//
// imgProfile.addEventListener('click', function () {
// dropdownProfile.classList.toggle('show');
// })
@ -125,28 +125,28 @@ allMenu.forEach(item=> {
window.addEventListener('click', function (e) {
if(e.target !== imgProfile) {
if(e.target !== dropdownProfile) {
if(dropdownProfile.classList.contains('show')) {
dropdownProfile.classList.remove('show');
}
}
}
allMenu.forEach(item=> {
const icon = item.querySelector('.icon');
const menuLink = item.querySelector('.menu-link');
if(e.target !== icon) {
if(e.target !== menuLink) {
if (menuLink.classList.contains('show')) {
menuLink.classList.remove('show')
}
}
}
})
})
// window.addEventListener('click', function (e) {
// if(e.target !== imgProfile) {
// if(e.target !== dropdownProfile) {
// if(dropdownProfile.classList.contains('show')) {
// dropdownProfile.classList.remove('show');
// }
// }
// }
//
// allMenu.forEach(item=> {
// const icon = item.querySelector('.icon');
// const menuLink = item.querySelector('.menu-link');
//
// if(e.target !== icon) {
// if(e.target !== menuLink) {
// if (menuLink.classList.contains('show')) {
// menuLink.classList.remove('show')
// }
// }
// }
// })
// })

View File

@ -316,7 +316,7 @@ class CandidatoModel {
* @return array
*/
public function obtenerCandidatosSinFechaSalida(){
$sql = "SELECT id_candidato, nombres, primer_apellido, segundo_apellido, fecha_entrada FROM lania_cc.candidato WHERE fecha_salida IS NULL";
$sql = "SELECT id_candidato, nombres, primer_apellido, segundo_apellido, fecha_entrada FROM lania_cc.candidato WHERE fecha_salida IS NULL ORDER BY fecha_entrada";
try {
$result = $this->conn->query($sql);
} catch (Exception $e) {
@ -336,6 +336,29 @@ class CandidatoModel {
}
}
public function eliminarCandidato($id_candidato){
$sql = "DELETE FROM candidato WHERE id_candidato = ?";
$stmt = $this->conn->prepare($sql);
if ($stmt === false) {
return [
"estado" => "error",
"mensaje" => "Error en la preparación de la consulta: " . $this->conn->error
];
}
$stmt->bind_param("i", $id_candidato);
if (!$stmt->execute()) {
return [
"estado" => "error",
"mensaje" => "Error al eliminar el candidato: " . $stmt->error
];
}
$stmt->close();
return [
"estado" => "exitoso",
"mensaje" => "Candidato eliminado correctamente."
];
}
}
?>

View File

@ -30,31 +30,40 @@ class UsuarioModel {
* Iniciar sesión de un usuario
* @param string $usuario Nombre de usuario
* @param string $contrasena Contraseña del usuario
* @return bool true si el inicio de sesión es exitoso, false en caso contrario
* @return array
*/
public function iniciarSesion($usuario, $contrasena) {
// Preparar la consulta mysql usando msqli
$stmt = $this->conn->prepare("SELECT contrasena FROM usuario WHERE usuario = ?");
$stmt->bind_param("s", $usuario);
if (!$stmt->execute()) {
throw new Exception("Error al iniciar sesión: " . $stmt->error);
return [
'estado' => 'error',
'mensaje' => 'Error al iniciar sesión, intentelo más tarde.',
'res' => $stmt->error
];
}
// Obtener el resultado
$stmt->store_result();
if ($stmt->num_rows == 0) {
return false; // Usuario no encontrado
return [
'estado' => 'error',
'mensaje' => 'Usuario o contraseña incorrectos.'
];
}
// Obtener el hash de la contraseña
$stmt->bind_result($contrasena_hash);
$stmt->fetch();
// Verificar la contraseña
if (password_verify($contrasena, $contrasena_hash)) {
return true; // Inicio de sesión exitoso
if (password_verify($contrasena, $contrasena_hash)){
return [
'estado' => 'exitoso',
'mensaje' => 'Inicio de sesión exitoso.'
];
} else {
return false; // Contraseña incorrecta
return [
'estado' => 'error',
'mensaje' => 'Usuario o contraseña incorrectos.'
];
}
}

View File

@ -1,7 +1,7 @@
<?php
session_start();
if (!isset($_SESSION['autenticado']) || $_SESSION['autenticado'] !== true) {
if (!isset($_SESSION['usuario'])) {
header('Location: index.html');
exit();
}

View File

@ -5,16 +5,22 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href='https://unpkg.com/boxicons@2.0.9/css/boxicons.min.css' rel='stylesheet'>
<link rel="stylesheet" href="../css/inicio.css">
<title>AdminSite</title>
<title>Gestión de usuarios</title>
</head>
<body>
<!-- SIDEBAR -->
<section id="sidebar">
<a href="inicio.html" class="brand"><i class='bx bx-code-alt icon' ></i> LANIA</a>
<ul class="side-menu">
<li><a href="#" class="active"><i class='bx bxs-dashboard icon' ></i> Dashboard</a></li>
<li><a href="inicio.html"><i class='bx bxs-dashboard icon' ></i>Dashboard</a></li>
<li><a href="formulario-candidato.html" target="_blank"><i class='bx bxs-dashboard icon' ></i>Formulario de registro</a></li>
<li><a href="control-candidatos.php"><i class='bx bxs-dashboard icon' ></i>Control candidatos</a></li>
<li><a href="control-candidatos.php" class="active"><i class='bx bxs-dashboard icon' ></i>Gestión usuarios</a></li>
<!--
<li class="divider" data-text="main">Main</li>
<li>
<a href="#"><i class='bx bxs-inbox icon' ></i> Elements <i class='bx bx-chevron-right icon-right' ></i></a>
@ -36,29 +42,24 @@
<li><a href="formulario-datos-candidato.php">Datos de candidato</a></li>
</ul>
</li>
-->
</ul>
<!-- <div class="ads">
<div class="wrapper">
<a href="#" class="btn-upgrade">Upgrade</a>
<p>Become a <span>PRO</span> member and enjoy <span>All Features</span></p>
</div>
</div> -->
</section>
<!-- .SIDEBAR -->
<!-- NAVBAR -->
<section id="content">
<!-- MAIN -->
<main>
<h1 class="title">Dashboard</h1>
<!-- ========== MAIN ========== -->
<main>
<h1 class="title" style="margin: 2% 1%">Control</h1>
</main>
<!-- .MAIN -->
</main>
<!-- .......... MAIN .......... -->
</section>
<!-- .NAVBAR -->
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<script type="module" src="../js/inicio.js"></script>
<script src="../js/sidebar-navbar.js"></script>
<script src="https://website-widgets.pages.dev/dist/sienna.min.js" defer></script>
</body>
</html>

Binary file not shown.

After

(image error) Size: 54 KiB

View File

@ -1,4 +1,5 @@
<?php
session_start();
require_once __DIR__ . "/../controllers/ControlCandidatos.php";
$candidatoControl = new ControlCandidatos();
@ -23,7 +24,7 @@ if(isset($resultado['estado'])){
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href='https://unpkg.com/boxicons@2.0.9/css/boxicons.min.css' rel='stylesheet'>
<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/boxicons@latest/css/boxicons.min.css'>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="../css/inicio.css">
<title>Control</title>
@ -35,79 +36,61 @@ if(isset($resultado['estado'])){
<a href="inicio.html" class="brand"><i class='bx bx-code-alt icon' ></i> LANIA</a>
<ul class="side-menu">
<li><a href="#" class="active"><i class='bx bxs-dashboard icon' ></i> Dashboard</a></li>
<li class="divider" data-text="main">Main</li>
<li>
<a href="#"><i class='bx bxs-inbox icon' ></i> Elements <i class='bx bx-chevron-right icon-right' ></i></a>
<ul class="side-dropdown">
<li><a href="#">Alert</a></li>
<li><a href="#">Badges</a></li>
<li><a href="#">Breadcrumbs</a></li>
<li><a href="#">Button</a></li>
</ul>
</li>
<li><a href="#"><i class='bx bxs-chart icon' ></i> Charts</a></li>
<li><a href="#"><i class='bx bxs-widget icon' ></i> Widgets</a></li>
<li class="divider" data-text="tablas y formularios">Tablas y formularios</li>
<li><a href="#"><i class='bx bx-table icon' ></i> Tablas</a></li>
<li>
<a href="#"><i class='bx bxs-notepad icon' ></i> Formularios <i class='bx bx-chevron-right icon-right' ></i></a>
<ul class="side-dropdown">
<li><a href="formulario-candidato.html">Registro de candidato</a></li>
<li><a href="formulario-datos-candidato.php">Datos de candidato</a></li>
</ul>
</li>
<li><a href="inicio.html"><i class='bx bxs-dashboard icon' ></i>Dashboard</a></li>
<li><a href="formulario-candidato.html" target="_blank"><i class='bx bxs-dashboard icon' ></i>Formulario de registro</a></li>
<li><a href="control-candidatos.php" class="active"><i class='bx bxs-dashboard icon' ></i>Control candidatos</a></li>
</ul>
<!-- <div class="ads">
<div class="wrapper">
<a href="#" class="btn-upgrade">Upgrade</a>
<p>Become a <span>PRO</span> member and enjoy <span>All Features</span></p>
</div>
</div> -->
</section>
<!-- .SIDEBAR -->
<!-- = = = = = = = = = = NAVBAR = = = = = = = = = = -->
<section id="content">
<section id="content">
<!-- ========== MAIN ========== -->
<main>
<h1 class="title">Dashboard</h1>
<div>
<h1 class="title" style="margin: 2% 1%">Control</h1>
<!-- ------------------------------ div qué contiene la tabla ------------------------------------------ -->
<div style="margin: 1%">
<div class="table-responsive rounded-4" style="height: 100%;width: 100%;">
<table class="table table-hover table-bordered shadow-sm">
<table class="table table-hover table-bordered border-dark-subtle shadow-sm">
<thead>
<tr>
<tr class="table-dark">
<th>Nombre</th>
<th>Fecha de entrada</th>
<th>Entrada</th>
<th>Acciones</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
<?php if ($hayCandidatos): ?>
<?php foreach ($resultado as $candidato): ?>
<tr>
<td><?php echo $candidato['nombre_completo'] ?></td>
<td><?php echo $candidato['fecha_entrada'] ?></td>
<td>
<a class="btn border rounded" role="button" style="background-color: #35245b;color: white;" href="formulario-datos-candidato.php?id_candidato=<?php echo $candidato['id_candidato']?>" target="_blank">Abrir formulario</a>
<a class="btn border rounded" role="button" style="background-color: #35245b;color: white;">Eliminar</a>
</td>
<tr>
<?php endforeach; ?>
<?php foreach ($resultado as $candidato): ?>
<tr>
<td><?php echo $candidato['nombre_completo'] ?></td>
<td><?php echo $candidato['fecha_entrada'] ?></td>
<td>
<a class="btn border rounded-3 shadow" role="button" style="background-color: #35245b;color: white;" href="formulario-datos-candidato.php?id_candidato=<?php echo $candidato['id_candidato']?>" target="_blank">Abrir formulario</a>
<button class="boton-eliminar btn border rounded-3 shadow" role="button" style="background-color: #35245b;color: white;" data-id-candidato="<?php echo $candidato['id_candidato'] ?>"><i class='bx bxs-trash-alt' style='color:#ffffff'></i> Eliminar</button>
</td>
<tr>
<?php endforeach; ?>
<?php endif; ?>
</tr>
</tbody>
</table>
</div>
</div>
<!-- ------------------------------ /div qué contiene la tabla ----------------------------------------- -->
</main>
<!-- .......... MAIN .......... -->
</section>
<!-- . . . . . . . . . . NAVBAR . . . . . . . . . . -->
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<script type="module" src="../js/control-candidatos.js.js"></script>
<script src="../js/sidebar-navbar.js"></script>
<script src="../js/control-candidato.js"></script>
<script src="https://website-widgets.pages.dev/dist/sienna.min.js" defer></script>
</body>

View File

@ -1,517 +0,0 @@
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');
* {
font-family: 'Open Sans', sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--grey: #F1F0F6;
--dark-grey: #8D8D8D;
--light: #fff;
--dark: #000;
--green: #81D43A;
--light-green: #E3FFCB;
--blue: #35245b;
--light-blue: #D0E4FF;
--dark-blue: #0c1b5e;
--red: #FC3B56;
}
html {
overflow-x: hidden;
}
body {
background: var(--grey);
overflow-x: hidden;
}
a {
text-decoration: none;
}
li {
list-style: none;
}
/* SIDEBAR */
#sidebar {
position: fixed;
max-width: 260px;
width: 100%;
background: var(--light);
top: 0;
left: 0;
height: 100%;
overflow-y: auto;
scrollbar-width: none;
transition: all .3s ease;
z-index: 200;
}
#sidebar.hide {
max-width: 60px;
}
#sidebar.hide:hover {
max-width: 260px;
}
#sidebar::-webkit-scrollbar {
display: none;
}
#sidebar .brand {
font-size: 24px;
display: flex;
align-items: center;
height: 64px;
font-weight: 700;
color: var(--blue);
position: sticky;
top: 0;
left: 0;
z-index: 100;
background: var(--light);
transition: all .3s ease;
padding: 0 6px;
}
#sidebar .icon {
min-width: 48px;
display: flex;
justify-content: center;
align-items: center;
margin-right: 6px;
}
#sidebar .icon-right {
margin-left: auto;
transition: all .3s ease;
}
#sidebar .side-menu {
margin: 36px 0;
padding: 0 20px;
transition: all .3s ease;
}
#sidebar.hide .side-menu {
padding: 0 6px;
}
#sidebar.hide:hover .side-menu {
padding: 0 20px;
}
#sidebar .side-menu a {
display: flex;
align-items: center;
font-size: 14px;
color: var(--dark);
padding: 12px 16px 12px 0;
transition: all .3s ease;
border-radius: 10px;
margin: 4px 0;
white-space: nowrap;
}
#sidebar .side-menu > li > a:hover {
background: var(--grey);
}
#sidebar .side-menu > li > a.active .icon-right {
transform: rotateZ(90deg);
}
#sidebar .side-menu > li > a.active,
#sidebar .side-menu > li > a.active:hover {
background: var(--blue);
color: var(--light);
}
#sidebar .divider {
margin-top: 24px;
font-size: 12px;
text-transform: uppercase;
font-weight: 700;
color: var(--dark-grey);
transition: all .3s ease;
white-space: nowrap;
}
#sidebar.hide:hover .divider {
text-align: left;
}
#sidebar.hide .divider {
text-align: center;
}
#sidebar .side-dropdown {
padding-left: 54px;
max-height: 0;
overflow-y: hidden;
transition: all .15s ease;
}
#sidebar .side-dropdown.show {
max-height: 1000px;
}
#sidebar .side-dropdown a:hover {
color: var(--blue);
}
#sidebar .ads {
width: 100%;
padding: 20px;
}
#sidebar.hide .ads {
display: none;
}
#sidebar.hide:hover .ads {
display: block;
}
#sidebar .ads .wrapper {
background: var(--grey);
padding: 20px;
border-radius: 10px;
}
#sidebar .btn-upgrade {
font-size: 14px;
display: flex;
justify-content: center;
align-items: center;
padding: 12px 0;
color: var(--light);
background: var(--blue);
transition: all .3s ease;
border-radius: 5px;
font-weight: 600;
margin-bottom: 12px;
}
#sidebar .btn-upgrade:hover {
background: var(--dark-blue);
}
#sidebar .ads .wrapper p {
font-size: 12px;
color: var(--dark-grey);
text-align: center;
}
#sidebar .ads .wrapper p span {
font-weight: 700;
}
/* SIDEBAR */
/* CONTENT */
#content {
position: relative;
width: calc(100% - 260px);
left: 260px;
transition: all .3s ease;
}
#sidebar.hide + #content {
width: calc(100% - 60px);
left: 60px;
}
/* NAVBAR */
nav {
background: var(--light);
height: 64px;
padding: 0 20px;
display: flex;
align-items: center;
grid-gap: 28px;
position: sticky;
top: 0;
left: 0;
z-index: 100;
}
nav .toggle-sidebar {
font-size: 18px;
cursor: pointer;
}
nav form {
max-width: 400px;
width: 100%;
margin-right: auto;
}
nav .form-group {
position: relative;
}
nav .form-group input {
width: 100%;
background: var(--grey);
border-radius: 5px;
border: none;
outline: none;
padding: 10px 36px 10px 16px;
transition: all .3s ease;
}
nav .form-group input:focus {
box-shadow: 0 0 0 1px var(--blue), 0 0 0 4px var(--light-blue);
}
nav .form-group .icon {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 16px;
color: var(--dark-grey);
}
nav .nav-link {
position: relative;
}
nav .nav-link .icon {
font-size: 18px;
color: var(--dark);
}
nav .nav-link .badge {
position: absolute;
top: -12px;
right: -12px;
width: 20px;
height: 20px;
border-radius: 50%;
border: 2px solid var(--light);
background: var(--red);
display: flex;
justify-content: center;
align-items: center;
color: var(--light);
font-size: 10px;
font-weight: 700;
}
nav .divider {
width: 1px;
background: var(--grey);
height: 12px;
display: block;
}
nav .profile {
position: relative;
}
nav .profile img {
width: 36px;
height: 36px;
border-radius: 50%;
object-fit: cover;
cursor: pointer;
}
nav .profile .profile-link {
position: absolute;
top: calc(100% + 10px);
right: 0;
background: var(--light);
padding: 10px 0;
box-shadow: 4px 4px 16px rgba(0, 0, 0, .1);
border-radius: 10px;
width: 160px;
opacity: 0;
pointer-events: none;
transition: all .3s ease;
}
nav .profile .profile-link.show {
opacity: 1;
pointer-events: visible;
top: 100%;
}
nav .profile .profile-link a {
padding: 10px 16px;
display: flex;
grid-gap: 10px;
font-size: 14px;
color: var(--dark);
align-items: center;
transition: all .3s ease;
}
nav .profile .profile-link a:hover {
background: var(--grey);
}
/* NAVBAR */
/* MAIN */
main {
width: 100%;
padding: 24px 20px 20px 20px;
}
main .title {
font-size: 28px;
font-weight: 600;
margin-bottom: 10px;
}
main .breadcrumbs {
display: flex;
grid-gap: 6px;
}
main .breadcrumbs li,
main .breadcrumbs li a {
font-size: 14px;
}
main .breadcrumbs li a {
color: var(--blue);
}
main .breadcrumbs li a.active,
main .breadcrumbs li.divider {
color: var(--dark-grey);
pointer-events: none;
}
/* MAIN */
/* CONTENT */
@media screen and (max-width: 768px) {
#content {
position: relative;
width: calc(100% - 60px);
transition: all .3s ease;
}
nav .nav-link,
nav .divider {
display: none;
}
}
#surveyForm {
margin-top: 36px;
}
.welcome p {
color: #7f8c8d;
font-size: 18px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: #2c3e50;
}
.rating {
display: flex;
flex-direction: row;
justify-content: space-between;
margin-top: 10px;
}
.rating-option {
display: flex;
flex-direction: column;
align-items: center;
width: 18%;
}
.rating-btn {
width: 50px;
height: 50px;
border-radius: 50%;
border: 2px solid #ddd;
background-color: white;
font-size: 18px;
font-weight: bold;
cursor: pointer;
transition: all 0.2s;
}
.rating-btn:hover {
border-color: #35245b;
color: #35245b;
}
.rating-btn.selected {
background-color: #35245b;
color: white;
border-color: #35245b;
}
.rating-label {
margin-top: 8px;
font-size: 12px;
text-align: center;
color: #7f8c8d;
}
.checkbox-group {
display: flex;
align-items: flex-start;
margin-top: 20px;
}
.checkbox-group input {
margin-right: 10px;
margin-top: 3px;
}
.checkbox-group label {
margin-bottom: 0;
font-size: 15px;
line-height: 1.4;
}
.btn {
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
font-size: 16px;
transition: background-color 0.3s;
}
.btn-primary {
background-color: #35245b;
color: white;
}
.btn-primary:hover {
background-color: #35245b;
}
.form-actions {
display: flex;
justify-content: space-between;
margin-top: 30px;
}
.emoji {
font-size: 24px;
margin-bottom: 5px;
}
.title2 {
margin-top: 36px;
}
label {
display: block;
font-weight: bold;
margin-bottom: 8px;
}
input[type="text"], input[type="number"], textarea,
select {
width: 100%;
padding: 10px;
border-radius: 8px;
border: 1px solid #ccc;
font-size: 16px;
transition: border-color 0.3s;
}
input[type="text"]:focus,
select:focus {
border-color: #35245b;
outline: none;
}
button {
background-color: #35245b;
color: white;
padding: 12px 20px;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s;
width: 100%;
}
button:hover {
background-color: #432d74;
}
.mensaje-error {
display: none;
background-color: #f8d7da;
color: #dc3545;
border: 1px solid #dc3545;
border-radius: 4px;
padding: 0.75rem;
margin-top: 1rem;
text-align: center;
animation: fadeIn 0.3s ease-in-out;
}

View File

@ -1,581 +0,0 @@
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');
* {
font-family: 'Open Sans', sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--grey: #F1F0F6;
--dark-grey: #8D8D8D;
--light: #fff;
--dark: #000;
--green: #81D43A;
--light-green: #E3FFCB;
--blue: #35245b;
--light-blue: #D0E4FF;
--dark-blue: #0c1b5e;
--red: #FC3B56;
}
html {
overflow-x: hidden;
}
body {
background: var(--grey);
overflow-x: hidden;
}
a {
text-decoration: none;
}
li {
list-style: none;
}
/* SIDEBAR */
#sidebar {
position: fixed;
max-width: 260px;
width: 100%;
background: var(--light);
top: 0;
left: 0;
height: 100%;
overflow-y: auto;
scrollbar-width: none;
transition: all .3s ease;
z-index: 200;
}
#sidebar.hide {
max-width: 60px;
}
#sidebar.hide:hover {
max-width: 260px;
}
#sidebar::-webkit-scrollbar {
display: none;
}
#sidebar .brand {
font-size: 24px;
display: flex;
align-items: center;
height: 64px;
font-weight: 700;
color: var(--blue);
position: sticky;
top: 0;
left: 0;
z-index: 100;
background: var(--light);
transition: all .3s ease;
padding: 0 6px;
}
#sidebar .icon {
min-width: 48px;
display: flex;
justify-content: center;
align-items: center;
margin-right: 6px;
}
#sidebar .icon-right {
margin-left: auto;
transition: all .3s ease;
}
#sidebar .side-menu {
margin: 36px 0;
padding: 0 20px;
transition: all .3s ease;
}
#sidebar.hide .side-menu {
padding: 0 6px;
}
#sidebar.hide:hover .side-menu {
padding: 0 20px;
}
#sidebar .side-menu a {
display: flex;
align-items: center;
font-size: 14px;
color: var(--dark);
padding: 12px 16px 12px 0;
transition: all .3s ease;
border-radius: 10px;
margin: 4px 0;
white-space: nowrap;
}
#sidebar .side-menu > li > a:hover {
background: var(--grey);
}
#sidebar .side-menu > li > a.active .icon-right {
transform: rotateZ(90deg);
}
#sidebar .side-menu > li > a.active,
#sidebar .side-menu > li > a.active:hover {
background: var(--blue);
color: var(--light);
}
#sidebar .divider {
margin-top: 24px;
font-size: 12px;
text-transform: uppercase;
font-weight: 700;
color: var(--dark-grey);
transition: all .3s ease;
white-space: nowrap;
}
#sidebar.hide:hover .divider {
text-align: left;
}
#sidebar.hide .divider {
text-align: center;
}
#sidebar .side-dropdown {
padding-left: 54px;
max-height: 0;
overflow-y: hidden;
transition: all .15s ease;
}
#sidebar .side-dropdown.show {
max-height: 1000px;
}
#sidebar .side-dropdown a:hover {
color: var(--blue);
}
#sidebar .ads {
width: 100%;
padding: 20px;
}
#sidebar.hide .ads {
display: none;
}
#sidebar.hide:hover .ads {
display: block;
}
#sidebar .ads .wrapper {
background: var(--grey);
padding: 20px;
border-radius: 10px;
}
#sidebar .btn-upgrade {
font-size: 14px;
display: flex;
justify-content: center;
align-items: center;
padding: 12px 0;
color: var(--light);
background: var(--blue);
transition: all .3s ease;
border-radius: 5px;
font-weight: 600;
margin-bottom: 12px;
}
#sidebar .btn-upgrade:hover {
background: var(--dark-blue);
}
#sidebar .ads .wrapper p {
font-size: 12px;
color: var(--dark-grey);
text-align: center;
}
#sidebar .ads .wrapper p span {
font-weight: 700;
}
/* SIDEBAR */
/* CONTENT */
#content {
position: relative;
width: calc(100% - 260px);
left: 260px;
transition: all .3s ease;
}
#sidebar.hide + #content {
width: calc(100% - 60px);
left: 60px;
}
/* NAVBAR */
nav {
background: var(--light);
height: 64px;
padding: 0 20px;
display: flex;
align-items: center;
grid-gap: 28px;
position: sticky;
top: 0;
left: 0;
z-index: 100;
}
nav .toggle-sidebar {
font-size: 18px;
cursor: pointer;
}
nav form {
max-width: 400px;
width: 100%;
margin-right: auto;
}
nav .form-group {
position: relative;
}
nav .form-group input {
width: 100%;
background: var(--grey);
border-radius: 5px;
border: none;
outline: none;
padding: 10px 36px 10px 16px;
transition: all .3s ease;
}
nav .form-group input:focus {
box-shadow: 0 0 0 1px var(--blue), 0 0 0 4px var(--light-blue);
}
nav .form-group .icon {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 16px;
color: var(--dark-grey);
}
nav .nav-link {
position: relative;
}
nav .nav-link .icon {
font-size: 18px;
color: var(--dark);
}
nav .nav-link .badge {
position: absolute;
top: -12px;
right: -12px;
width: 20px;
height: 20px;
border-radius: 50%;
border: 2px solid var(--light);
background: var(--red);
display: flex;
justify-content: center;
align-items: center;
color: var(--light);
font-size: 10px;
font-weight: 700;
}
nav .divider {
width: 1px;
background: var(--grey);
height: 12px;
display: block;
}
nav .profile {
position: relative;
}
nav .profile img {
width: 36px;
height: 36px;
border-radius: 50%;
object-fit: cover;
cursor: pointer;
}
nav .profile .profile-link {
position: absolute;
top: calc(100% + 10px);
right: 0;
background: var(--light);
padding: 10px 0;
box-shadow: 4px 4px 16px rgba(0, 0, 0, .1);
border-radius: 10px;
width: 160px;
opacity: 0;
pointer-events: none;
transition: all .3s ease;
}
nav .profile .profile-link.show {
opacity: 1;
pointer-events: visible;
top: 100%;
}
nav .profile .profile-link a {
padding: 10px 16px;
display: flex;
grid-gap: 10px;
font-size: 14px;
color: var(--dark);
align-items: center;
transition: all .3s ease;
}
nav .profile .profile-link a:hover {
background: var(--grey);
}
/* NAVBAR */
/* MAIN */
main {
width: 100%;
padding: 24px 20px 20px 20px;
}
main .title {
font-size: 28px;
font-weight: 600;
margin-bottom: 10px;
}
main .breadcrumbs {
display: flex;
grid-gap: 6px;
}
main .breadcrumbs li,
main .breadcrumbs li a {
font-size: 14px;
}
main .breadcrumbs li a {
color: var(--blue);
}
main .breadcrumbs li a.active,
main .breadcrumbs li.divider {
color: var(--dark-grey);
pointer-events: none;
}
main .info-data {
margin-top: 36px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
grid-gap: 20px;
}
main .info-data .card {
padding: 20px;
border-radius: 10px;
background: var(--light);
box-shadow: 4px 4px 16px rgba(0, 0, 0, .05);
}
main .card .head {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
main .card .head h2 {
font-size: 24px;
font-weight: 600;
}
main .card .head p {
font-size: 14px;
}
main .card .head .icon {
font-size: 20px;
color: var(--green);
}
main .card .head .icon.down {
color: var(--red);
}
main .card .progress {
display: block;
margin-top: 24px;
height: 10px;
width: 100%;
border-radius: 10px;
background: var(--grey);
overflow-y: hidden;
position: relative;
margin-bottom: 4px;
}
main .card .progress::before {
content: '';
position: absolute;
top: 0;
left: 0;
height: 100%;
background: var(--blue);
width: var(--value);
}
main .card .label {
font-size: 14px;
font-weight: 700;
}
main .data {
display: flex;
grid-gap: 20px;
margin-top: 20px;
flex-wrap: wrap;
}
main .data .content-data {
flex-grow: 1;
flex-basis: 400px;
padding: 20px;
background: var(--light);
border-radius: 10px;
box-shadow: 4px 4px 16px rgba(0, 0, 0, .1);
}
main .content-data .head {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
}
main .content-data .head h3 {
font-size: 20px;
font-weight: 600;
}
main .content-data .head .menu {
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
main .content-data .head .menu .icon {
cursor: pointer;
}
main .content-data .head .menu-link {
position: absolute;
top: calc(100% + 10px);
right: 0;
width: 140px;
background: var(--light);
border-radius: 10px;
box-shadow: 4px 4px 16px rgba(0, 0, 0, .1);
padding: 10px 0;
z-index: 100;
opacity: 0;
pointer-events: none;
transition: all .3s ease;
}
main .content-data .head .menu-link.show {
top: 100%;
opacity: 1;
pointer-events: visible;
}
main .content-data .head .menu-link a {
display: block;
padding: 6px 16px;
font-size: 14px;
color: var(--dark);
transition: all .3s ease;
}
main .content-data .head .menu-link a:hover {
background: var(--grey);
}
main .content-data .chart {
width: 100%;
max-width: 100%;
overflow-x: auto;
scrollbar-width: none;
}
main .content-data .chart::-webkit-scrollbar {
display: none;
}
main .chat-box {
width: 100%;
max-height: 360px;
overflow-y: auto;
scrollbar-width: none;
}
main .chat-box::-webkit-scrollbar {
display: none;
}
main .chat-box .day {
text-align: center;
margin-bottom: 10px;
}
main .chat-box .day span {
display: inline-block;
padding: 6px 12px;
border-radius: 20px;
background: var(--light-blue);
color: var(--blue);
font-size: 12px;
font-weight: 600;
}
main .chat-box .msg img {
width: 28px;
height: 28px;
border-radius: 50%;
object-fit: cover;
}
main .chat-box .msg {
display: flex;
grid-gap: 6px;
align-items: flex-start;
}
main .chat-box .profile .username {
font-size: 14px;
font-weight: 600;
display: inline-block;
margin-right: 6px;
}
main .chat-box .profile .time {
font-size: 12px;
color: var(--dark-grey);
}
main .chat-box .chat p {
font-size: 14px;
padding: 6px 10px;
display: inline-block;
max-width: 400px;
line-height: 150%;
}
main .chat-box .msg:not(.me) .chat p {
border-radius: 0 5px 5px 5px;
background: var(--blue);
color: var(--light);
}
main .chat-box .msg.me {
justify-content: flex-end;
}
main .chat-box .msg.me .profile {
text-align: right;
}
main .chat-box .msg.me p {
background: var(--grey);
border-radius: 5px 0 5px 5px;
}
main form {
margin-top: 6px;
}
main .form-group {
width: 100%;
display: flex;
grid-gap: 10px;
}
main .form-group input {
flex-grow: 1;
padding: 10px 16px;
border-radius: 5px;
outline: none;
background: var(--grey);
border: none;
transition: all .3s ease;
width: 100%;
}
main .form-group input:focus {
box-shadow: 0 0 0 1px var(--blue), 0 0 0 4px var(--light-blue);
}
main .btn-send {
padding: 0 16px;
background: var(--blue);
border-radius: 5px;
color: var(--light);
cursor: pointer;
border: none;
transition: all .3s ease;
}
main .btn-send:hover {
background: var(--dark-blue);
}
/* MAIN */
/* CONTENT */
@media screen and (max-width: 768px) {
#content {
position: relative;
width: calc(100% - 60px);
transition: all .3s ease;
}
nav .nav-link,
nav .divider {
display: none;
}
}

View File

@ -1,132 +0,0 @@
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Open Sans', sans-serif;
}
body {
background-color: #f1f0f6;
display: grid;
place-items: center;
min-height: 100vh;
}
.login-container {
background-color: #ffffff;
border: 2px solid #e8e8e8;
border-radius: 8px;
padding: 2rem;
width: 100%;
max-width: 500px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
@media screen and (max-width: 768px) {
.login-container {
width: 80%;
}
}
.login-encabezado {
text-align: center;
margin-bottom: 1.5rem;
}
.login-logo {
max-width: 150px;
height: auto;
margin-bottom: 1rem;
}
.login-titulo {
font-size: 1.5rem;
color: #333;
display: flex;
align-items: center;
justify-content: center;
}
.login-subtitulo {
color: #666;
margin-top: 0.5rem;
}
.login-formulario {
color: #666;
margin-top: 0.5rem;
}
.form-grupo {
margin-bottom: 1rem;
}
.form-label {
display: flex;
align-items: center;
margin-bottom: 0.5rem;
font-weight: bold;
}
.form-input {
width: 100%;
padding: 0.75rem;
border: 1px solid #e8e8e8;
border-radius: 4px;
background-color: #f6f6f6;
transition: all 0.3s ease;
}
.form-input:focus {
outline: none;
border-color: #35245b;
box-shadow: 0 0 0 2px rgba(2, 27, 48, 0.2);
}
.login-boton {
background-color: #35245b;
color: white;
border: none;
border-radius: 4px;
padding: 0.75rem;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
cursor: pointer;
transition: all 0.3s ease;
margin-top: 1rem;
width: 100%;
}
.login-boton:hover {
background-color: #432d74;
box-shadow: 0 4px 8px #53388f;
}
.login-boton:active {
transform: scale(0.98);
}
.material-icons {
font-size: 1.25rem;
}
.mensaje-error {
display: none;
background-color: #f8d7da;
color: #dc3545;
border: 1px solid #dc3545;
border-radius: 4px;
padding: 0.75rem;
margin-top: 1rem;
text-align: center;
animation: fadeIn 0.3s ease-in-out;
}

View File

@ -9,7 +9,7 @@
</head>
<body>
<div class="text-bg-light" style="height: 70px;"><img src="assets/img/logo-lania.png" style="height: 65px;margin: 0px 10px;" draggable="false" alt="Laboratorio Nacional de Informática Avanzada"></div>
<div style="background-color: #211b52;"><img src="assets/img/logo-lania-w.png" style="height: 5rem;margin: 0px 10px;"></div>
<div class="card">
<div class="card-body" style="margin: 0px 30px;">

View File

@ -14,12 +14,12 @@ if($_SERVER['REQUEST_METHOD'] === 'GET' && isset($_GET['id_candidato'])) {
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>formsLania</title>
<title>Formulario</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
</head>
<body>
<div class="text-bg-light" style="height: 70px;"><img src="assets/img/logo-lania.png" style="height: 65px;margin: 0px 10px;"></div>
<div style="background-color: #211b52;"><img src="assets/img/logo-lania-w.png" style="height: 5rem;margin: 0px 10px;"></div>
<div class="card">
<div class="card-body" style="margin: 0px 30px;">
<!-- ==================== Formulario ==================== -->

View File

@ -3,9 +3,10 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href='https://unpkg.com/boxicons@2.0.9/css/boxicons.min.css' rel='stylesheet'>
<!-- <link rel='stylesheet' href='https://unpkg.com/boxicons@2.0.9/css/boxicons.min.css'> -->
<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/boxicons@latest/css/boxicons.min.css'>
<link rel="stylesheet" href="../css/inicio.css">
<title>AdminSite</title>
<title>LANIA</title>
</head>
<body>
@ -14,7 +15,13 @@
<a href="inicio.html" class="brand"><i class='bx bx-code-alt icon' ></i> LANIA</a>
<ul class="side-menu">
<li><a href="#" class="active"><i class='bx bxs-dashboard icon' ></i> Dashboard</a></li>
<li><a href="inicio.html" class="active"><i class='bx bxs-dashboard icon' ></i>Dashboard</a></li>
<li><a href="formulario-candidato.html" target="_blank"><i class='bx bxs-dashboard icon'></i>Formulario de registro</a></li>
<li><a href="control-candidatos.php"><i class='bx bxs-dashboard icon' ></i>Control candidatos</a></li>
<!--
<li class="divider" data-text="main">Main</li>
<li>
<a href="#"><i class='bx bxs-inbox icon' ></i> Elements <i class='bx bx-chevron-right icon-right' ></i></a>
@ -27,8 +34,12 @@
</li>
<li><a href="#"><i class='bx bxs-chart icon' ></i> Charts</a></li>
<li><a href="#"><i class='bx bxs-widget icon' ></i> Widgets</a></li>
<li class="divider" data-text="tablas y formularios">Tablas y formularios</li>
<li><a href="#"><i class='bx bx-table icon' ></i> Tablas</a></li>
<li>
<a href="#"><i class='bx bxs-notepad icon' ></i> Formularios <i class='bx bx-chevron-right icon-right' ></i></a>
<ul class="side-dropdown">
@ -36,13 +47,8 @@
<li><a href="formulario-datos-candidato.php">Datos de candidato</a></li>
</ul>
</li>
-->
</ul>
<!-- <div class="ads">
<div class="wrapper">
<a href="#" class="btn-upgrade">Upgrade</a>
<p>Become a <span>PRO</span> member and enjoy <span>All Features</span></p>
</div>
</div> -->
</section>
<!-- SIDEBAR -->
@ -51,28 +57,31 @@
<!-- NAVBAR -->
<nav>
<i class='bx bx-menu toggle-sidebar' ></i>
<form action="#">
<div class="form-group">
<input type="text" placeholder="Buscar...">
<i class='bx bx-search icon' ></i>
<div hidden="">
<form action="#">
<div class="form-group">
<input type="text" placeholder="Buscar...">
<i class='bx bx-search icon'></i>
</div>
</form>
<a href="#" class="nav-link">
<i class='bx bxs-bell icon'></i>
<span class="badge">5</span>
</a>
<a href="#" class="nav-link">
<i class='bx bxs-message-square-dots icon'></i>
<span class="badge">8</span>
</a>
<span class="divider"></span>
<div class="profile">
<img src="https://images.unsplash.com/photo-1517841905240-472988babdf9?ixid=MnwxMjA3fDB8MHxzZWFyY2h8NHx8cGVvcGxlfGVufDB8fDB8fA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60"
alt="">
<ul class="profile-link">
<li><a href="#"><i class='bx bxs-user-circle icon'></i> Profile</a></li>
<li><a href="#"><i class='bx bxs-cog'></i> Settings</a></li>
<li><a href="#"><i class='bx bxs-log-out-circle'></i> Logout</a></li>
</ul>
</div>
</form>
<a href="#" class="nav-link">
<i class='bx bxs-bell icon' ></i>
<span class="badge">5</span>
</a>
<a href="#" class="nav-link">
<i class='bx bxs-message-square-dots icon' ></i>
<span class="badge">8</span>
</a>
<span class="divider"></span>
<div class="profile">
<img src="https://images.unsplash.com/photo-1517841905240-472988babdf9?ixid=MnwxMjA3fDB8MHxzZWFyY2h8NHx8cGVvcGxlfGVufDB8fDB8fA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="">
<ul class="profile-link">
<li><a href="#"><i class='bx bxs-user-circle icon' ></i> Profile</a></li>
<li><a href="#"><i class='bx bxs-cog' ></i> Settings</a></li>
<li><a href="#"><i class='bx bxs-log-out-circle' ></i> Logout</a></li>
</ul>
</div>
</nav>
<!-- NAVBAR -->