203 lines
4.5 KiB
HTML
203 lines
4.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="es">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Portal WiFi - Tema Oscuro</title>
|
|
<style>
|
|
/* General Styles */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Arial', sans-serif;
|
|
background: linear-gradient(135deg, #121212, #1e1e1e);
|
|
color: #e0e0e0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
}
|
|
|
|
.wifi-portal {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
background: #1e1e1e;
|
|
border-radius: 15px;
|
|
padding: 20px;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
|
|
text-align: center;
|
|
}
|
|
|
|
/* Title and Text */
|
|
.wifi-portal h1 {
|
|
font-size: 1.8em;
|
|
margin-bottom: 10px;
|
|
font-weight: 700;
|
|
color: #00C6FF;
|
|
}
|
|
|
|
.wifi-portal p {
|
|
font-size: 1em;
|
|
margin-bottom: 20px;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
display: block;
|
|
width: 100%;
|
|
background: #0078FF;
|
|
border: none;
|
|
padding: 12px;
|
|
font-size: 1em;
|
|
color: #fff;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
margin-bottom: 15px;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.btn:hover {
|
|
background: #005BB5;
|
|
}
|
|
|
|
.btn-google {
|
|
background: #DB4437;
|
|
}
|
|
|
|
.btn-google:hover {
|
|
background: #B8362D;
|
|
}
|
|
|
|
.btn-facebook {
|
|
background: #4267B2;
|
|
}
|
|
|
|
.btn-facebook:hover {
|
|
background: #365899;
|
|
}
|
|
|
|
.btn-otg {
|
|
background: #4CAF50;
|
|
}
|
|
|
|
.btn-otg:hover {
|
|
background: #388E3C;
|
|
}
|
|
|
|
.btn-login {
|
|
display: none; /* Oculto inicialmente */
|
|
background: #FF9800;
|
|
}
|
|
|
|
.btn-login:hover {
|
|
background: #E68900;
|
|
}
|
|
|
|
/* Hidden Textbox */
|
|
.textbox-container {
|
|
display: none;
|
|
margin-top: 20px;
|
|
text-align: left;
|
|
}
|
|
|
|
.textbox-container label {
|
|
font-size: 0.9em;
|
|
color: #cfcfcf;
|
|
margin-bottom: 5px;
|
|
display: block;
|
|
}
|
|
|
|
.textbox-container input {
|
|
width: 100%;
|
|
padding: 10px;
|
|
font-size: 1em;
|
|
border: 1px solid #333;
|
|
border-radius: 5px;
|
|
background: #2a2a2a;
|
|
color: #fff;
|
|
outline: none;
|
|
}
|
|
|
|
.textbox-container input:focus {
|
|
border-color: #00C6FF;
|
|
}
|
|
|
|
/* Footer Styles */
|
|
.footer-text {
|
|
margin-top: 20px;
|
|
font-size: 0.85em;
|
|
color: #cfcfcf;
|
|
}
|
|
|
|
.footer-text a {
|
|
color: #00C6FF;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.footer-text a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.wifi-portal {
|
|
padding: 15px;
|
|
}
|
|
|
|
.wifi-portal h1 {
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.btn {
|
|
font-size: 0.9em;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="wifi-portal">
|
|
<h1>Bienvenido al Portal WiFi</h1>
|
|
<p>Conéctate a nuestra red para disfrutar del servicio.</p>
|
|
<button class="btn btn-google">Iniciar sesión con Google</button>
|
|
<button class="btn btn-facebook">Iniciar sesión con Facebook</button>
|
|
<button class="btn btn-otg" onclick="showTextbox()">Conexión rápida (OTG)</button>
|
|
|
|
<!-- Hidden Textbox and Login Button -->
|
|
<div class="textbox-container" id="otgTextbox">
|
|
<label for="otgCode">Ingresa tu código OTG:</label>
|
|
<input type="text" id="otgCode" placeholder="Ejemplo: 123456" />
|
|
<button class="btn btn-login" id="loginButton" onclick="submitOTG()">Login</button>
|
|
</div>
|
|
|
|
<p class="footer-text">¿Problemas? <a href="#">Contáctanos</a></p>
|
|
</div>
|
|
|
|
<script>
|
|
// Función para mostrar el textbox y el botón de login
|
|
function showTextbox() {
|
|
const textboxContainer = document.getElementById('otgTextbox');
|
|
const loginButton = document.getElementById('loginButton');
|
|
textboxContainer.style.display = 'block'; // Mostrar el contenedor del textbox
|
|
loginButton.style.display = 'block'; // Mostrar el botón de login
|
|
}
|
|
|
|
// Función para manejar el login (puedes personalizarlo según tus necesidades)
|
|
function submitOTG() {
|
|
const otgCode = document.getElementById('otgCode').value;
|
|
if (otgCode.trim() === '') {
|
|
alert('Por favor, ingresa un código OTG.');
|
|
} else {
|
|
alert(`Código OTG ingresado: ${otgCode}`);
|
|
// Aquí puedes enviar el código al servidor o procesarlo
|
|
}
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|