100 lines
4.7 KiB
HTML
100 lines
4.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="es" class="h-full bg-slate-950 text-slate-100">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{block "title" .}}drop.sigmac.app — Pasa archivos y texto al instante{{end}}</title>
|
|
<!-- Favicon & Touch Icons -->
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
|
<link rel="alternate icon" type="image/x-icon" href="/favicon.ico">
|
|
<link rel="apple-touch-icon" href="/static/icon-192.png">
|
|
|
|
<!-- Tailwind CSS CDN -->
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<script>
|
|
tailwind.config = {
|
|
darkMode: 'class',
|
|
theme: {
|
|
extend: {
|
|
colors: {
|
|
brand: {
|
|
50: '#f0fdf4',
|
|
500: '#22c55e',
|
|
600: '#16a34a',
|
|
700: '#15803d',
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<!-- Font Awesome Icons -->
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
|
|
<style>
|
|
.custom-scrollbar::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
.custom-scrollbar::-webkit-scrollbar-track {
|
|
background: #0f172a;
|
|
}
|
|
.custom-scrollbar::-webkit-scrollbar-thumb {
|
|
background: #334155;
|
|
border-radius: 3px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="min-h-full flex flex-col bg-slate-950 text-slate-100 font-sans selection:bg-brand-500 selection:text-black">
|
|
<!-- Navbar -->
|
|
<header class="border-b border-slate-800 bg-slate-900/80 backdrop-blur sticky top-0 z-50">
|
|
<div class="max-w-6xl mx-auto px-4 h-16 flex items-center justify-between">
|
|
<a href="/" class="flex items-center gap-2.5 font-bold text-lg tracking-tight hover:opacity-90 transition">
|
|
<img src="/favicon.svg" alt="Logo" class="w-9 h-9 rounded-xl shadow-lg shadow-brand-500/20 object-contain">
|
|
<span class="text-white">drop<span class="text-brand-500">.sigmac.app</span></span>
|
|
</a>
|
|
|
|
<!-- User status / Actions -->
|
|
<div class="flex items-center gap-3">
|
|
{{if .Session.IsGuest}}
|
|
<div class="hidden sm:flex items-center gap-2 px-3 py-1.5 rounded-full bg-amber-500/10 border border-amber-500/20 text-amber-400 text-xs font-medium">
|
|
<i class="fa-regular fa-clock"></i>
|
|
<span>Modo Invitado (caduca en 24h)</span>
|
|
</div>
|
|
<a href="/login" class="px-3.5 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-semibold border border-slate-700 transition flex items-center gap-1.5">
|
|
<i class="fa-solid fa-arrow-right-to-bracket text-brand-500"></i>
|
|
<span>Iniciar Sesión</span>
|
|
</a>
|
|
{{else}}
|
|
<div class="hidden sm:flex items-center gap-2 px-3 py-1.5 rounded-full bg-emerald-500/10 border border-emerald-500/20 text-emerald-400 text-xs font-medium">
|
|
<i class="fa-solid fa-shield-halved"></i>
|
|
<span>Almacenamiento Permanente</span>
|
|
</div>
|
|
<a href="/mis-archivos" class="px-3 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium border border-slate-700 transition flex items-center gap-1.5">
|
|
<i class="fa-solid fa-folder-open text-brand-500"></i>
|
|
<span class="hidden md:inline">Mis Archivos</span>
|
|
</a>
|
|
<div class="flex items-center gap-2 pl-2 border-l border-slate-800">
|
|
<span class="text-xs font-semibold text-slate-300 max-w-[120px] truncate">{{.Session.User.Name}}</span>
|
|
<a href="/logout" title="Cerrar sesión" class="p-1.5 text-slate-400 hover:text-rose-400 transition">
|
|
<i class="fa-solid fa-power-off text-xs"></i>
|
|
</a>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- Main Content -->
|
|
<main class="flex-1 max-w-6xl w-full mx-auto px-4 py-8">
|
|
{{block "content" .}}{{end}}
|
|
</main>
|
|
|
|
<!-- Footer -->
|
|
<footer class="border-t border-slate-900 py-6 text-center text-xs text-slate-500">
|
|
<p><strong>drop.sigmac.app</strong> • Ecosistema Telcotronics • Pasa archivos, texto y capturas sin usar WhatsApp</p>
|
|
</footer>
|
|
|
|
{{block "scripts" .}}{{end}}
|
|
</body>
|
|
</html>
|