filemanager / settings.html
Mauriciocl's picture
eliminar carpeta segura - Initial Deployment
177c33a verified
Raw History Blame Contribute Delete
10 kB
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ajustes - Explorador EIA</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
</head>
<body class="bg-gray-100">
<div class="container mx-auto px-4 py-6">
<!-- Header -->
<header class="flex items-center mb-8">
<a href="index.html" class="mr-4">
<i data-feather="arrow-left" class="w-6 h-6 text-gray-600"></i>
</a>
<h1 class="text-2xl font-bold text-gray-800">Ajustes</h1>
</header>
<!-- Password Protection -->
<div id="passwordSection" class="bg-white rounded-lg shadow p-6 mb-6">
<h2 class="text-lg font-medium text-gray-800 mb-4">Acceso a Ajustes</h2>
<p class="text-sm text-gray-600 mb-4">Ingrese la contrase帽a para acceder a la configuraci贸n</p>
<input type="password" id="passwordInput" class="w-full px-4 py-2 border border-gray-300 rounded-md mb-4" placeholder="Contrase帽a">
<button onclick="checkPassword()" class="w-full py-2 px-4 bg-blue-600 text-white rounded-md hover:bg-blue-700 transition">
Ingresar
</button>
<p id="errorMessage" class="text-red-500 text-sm mt-2 hidden">Contrase帽a incorrecta</p>
</div>
<!-- Settings Content (initially hidden) -->
<div id="settingsContent" class="hidden">
<div class="bg-white rounded-lg shadow overflow-hidden mb-6">
<div class="divide-y divide-gray-200">
<!-- Protected Folder Settings -->
<div class="p-4">
<h3 class="font-medium text-gray-800 mb-2">Carpeta Protegida</h3>
<p class="text-sm text-gray-600 mb-4">Configuraci贸n de la carpeta con archivos protegidos</p>
<div class="flex items-center justify-between mb-3">
<span class="text-gray-700">Mostrar advertencia al modificar</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer" checked>
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600"></div>
</label>
</div>
<div class="flex items-center justify-between">
<span class="text-gray-700">Mostrar icono de protecci贸n</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer" checked>
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600"></div>
</label>
</div>
</div>
<!-- Security Settings -->
<div class="p-4">
<h3 class="font-medium text-gray-800 mb-2">Seguridad</h3>
<div class="flex items-center justify-between mb-3">
<span class="text-gray-700">Bloquear eliminaci贸n de archivos</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer" checked disabled>
<div class="w-11 h-6 bg-gray-200 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600"></div>
</label>
</div>
<div class="flex items-center justify-between">
<span class="text-gray-700">Bloquear renombrado de archivos</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer" checked disabled>
<div class="w-11 h-6 bg-gray-200 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600"></div>
</label>
</div>
</div>
<!-- App Settings -->
<div class="p-4">
<h3 class="font-medium text-gray-800 mb-2">Aplicaci贸n</h3>
<div class="flex items-center justify-between mb-3">
<span class="text-gray-700">Tema oscuro</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer">
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600"></div>
</label>
</div>
<div class="flex items-center justify-between">
<span class="text-gray-700">Mostrar archivos ocultos</span>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer">
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600"></div>
</label>
</div>
</div>
</div>
</div>
<!-- Danger Zone -->
<div class="bg-white rounded-lg shadow overflow-hidden border border-red-200">
<div class="p-4">
<h3 class="font-medium text-red-600 mb-2">Zona de peligro</h3>
<p class="text-sm text-gray-600 mb-4">Estas acciones no pueden deshacerse</p>
<button class="w-full py-2 px-4 border border-red-500 text-red-500 rounded-md hover:bg-red-50 transition flex items-center justify-center">
<i data-feather="alert-triangle" class="w-4 h-4 mr-2"></i>
<span>Restablecer configuraci贸n</span>
</button>
</div>
</div>
</div>
</div>
<!-- Bottom Navigation -->
<div class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 py-2">
<div class="flex justify-around">
<button class="p-2 text-gray-500 flex flex-col items-center">
<i data-feather="home" class="w-5 h-5"></i>
<span class="text-xs mt-1">Inicio</span>
</button>
<button class="p-2 text-gray-500 flex flex-col items-center">
<i data-feather="hard-drive" class="w-5 h-5"></i>
<span class="text-xs mt-1">Almacenamiento</span>
</button>
<button class="p-2 text-blue-600 flex flex-col items-center">
<i data-feather="settings" class="w-5 h-5"></i>
<span class="text-xs mt-1">Ajustes</span>
</button>
<button class="p-2 text-gray-500 flex flex-col items-center">
<i data-feather="user" class="w-5 h-5"></i>
<span class="text-xs mt-1">Perfil</span>
</button>
</div>
</div>
<script>
feather.replace();
function checkPassword() {
const passwordInput = document.getElementById('passwordInput');
const errorMessage = document.getElementById('errorMessage');
const passwordSection = document.getElementById('passwordSection');
const settingsContent = document.getElementById('settingsContent');
if(passwordInput.value === '03439968') {
passwordSection.classList.add('hidden');
settingsContent.classList.remove('hidden');
} else {
errorMessage.classList.remove('hidden');
passwordInput.value = '';
setTimeout(() => {
errorMessage.classList.add('hidden');
}, 3000);
}
}
</script>
</body>
</html>