dummybot/resources/views/layouts/base.blade.php
javiservices 43534c74e3
Some checks are pending
Deploy DummyBot / Build & Deploy to ${{ env.DEPLOY_HOST }} (push) Waiting to run
feat(frontend): rediseño completo + deploy automático
Frontend:
- Layout base con design system (Inter+JetBrains Mono, glass, mesh, animaciones)
- Landing con hero, mockup OLED, 6 features, 3 pasos
- Auth unificado (login+register) con split-screen
- App con sidebar fijo, filtros con contadores, stats, modal rediseñado
- Settings con 4 tabs (devices/projects/tags/API)
- Iconos SVG inline (sin emojis excepto el logo)
- Skeletons, pulse-dot, toggle switch, toasts
- Unificada vista auth.blade.php (elimina login/register separados)

Deploy:
- Workflow de Gitea Actions: build + push a /root/dummybot en 157.180.77.232
- Trigger: push a main (también workflow_dispatch)
- SSH key dedicada ed25519 dummybot_deploy
- /root/dummybot.env preserva .env real (no se commitea)
- Healthcheck en /up tras migrar
- Rollback state en .last_deploy

Backend:
- LoginController usa nueva vista auth con mode=login|register
2026-06-18 12:00:39 +02:00

203 lines
11 KiB
PHP

<!DOCTYPE html>
<html lang="es" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="theme-color" content="#09090b">
<title>@yield('title', 'DummyBot')</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
fontFamily: {
sans: ['Inter', 'system-ui', '-apple-system', 'sans-serif'],
mono: ['JetBrains Mono', 'monospace'],
},
}
}
}
</script>
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.14.1/dist/cdn.min.js"></script>
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' rx='8' fill='%236366f1'/><circle cx='16' cy='16' r='6' fill='white'/><circle cx='13' cy='14' r='1.5' fill='%236366f1'/><circle cx='19' cy='14' r='1.5' fill='%236366f1'/></svg>">
<style>
:root { color-scheme: dark; }
html { font-family: 'Inter', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
body { background: #09090b; color: #fafafa; }
.bg-app {
background:
radial-gradient(at 8% 0%, rgba(99, 102, 241, 0.10) 0px, transparent 50%),
radial-gradient(at 92% 10%, rgba(168, 85, 247, 0.08) 0px, transparent 50%),
radial-gradient(at 50% 100%, rgba(56, 189, 248, 0.05) 0px, transparent 50%),
#09090b;
}
.glass { background: rgba(24, 24, 27, 0.5); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.06); }
.glass-strong { background: rgba(24, 24, 27, 0.8); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.08); }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; border-radius: 0.5rem; font-weight: 500; font-size: 0.875rem; transition: all 0.15s; user-select: none; cursor: pointer; line-height: 1.25rem; }
.btn-primary { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); color: white; box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 1px 3px rgba(0,0,0,0.3); border: none; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 24px -4px rgba(99, 102, 241, 0.5); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: #d4d4d8; border: 1px solid rgba(255, 255, 255, 0.08); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); color: #fafafa; }
.btn-danger { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.2); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.3); }
.btn-icon { width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
.input, .select, .textarea {
width: 100%; padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem;
background: rgba(9, 9, 11, 0.6); border: 1px solid rgba(255, 255, 255, 0.08);
color: #fafafa; transition: all 0.15s; font-family: inherit;
}
.input:focus, .select:focus, .textarea:focus {
outline: none; border-color: #6366f1;
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
background: rgba(9, 9, 11, 0.8);
}
.input::placeholder, .textarea::placeholder { color: #52525b; }
.label { display: block; font-size: 0.7rem; font-weight: 600; color: #a1a1aa; margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.05em; }
.chip { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.125rem 0.5rem; border-radius: 0.375rem; font-size: 0.7rem; font-weight: 600; line-height: 1rem; }
.prio-high { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.2); }
.prio-med { background: rgba(250, 204, 21, 0.10); color: #fde68a; border: 1px solid rgba(250, 204, 21, 0.2); }
.prio-low { background: rgba(34, 197, 94, 0.10); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.2); }
.task-card {
border-radius: 0.75rem; padding: 1rem;
background: rgba(24, 24, 27, 0.3);
border: 1px solid rgba(255, 255, 255, 0.04);
transition: all 0.2s;
}
.task-card:hover {
background: rgba(24, 24, 27, 0.6);
border-color: rgba(99, 102, 241, 0.2);
transform: translateY(-1px);
}
.task-done { opacity: 0.5; }
.task-done .task-title { text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.3); }
.sidebar-item {
display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem;
border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500;
color: #a1a1aa; transition: all 0.15s; cursor: pointer;
border: 1px solid transparent;
}
.sidebar-item:hover { color: #fafafa; background: rgba(255, 255, 255, 0.04); }
.sidebar-item.active {
color: #fafafa;
background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(139,92,246,0.08) 100%);
border-color: rgba(99, 102, 241, 0.2);
}
.sidebar-item svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.check {
width: 1.25rem; height: 1.25rem; border-radius: 0.375rem; border: 2px solid rgba(255, 255, 255, 0.15);
transition: all 0.15s; cursor: pointer; flex-shrink: 0;
display: flex; align-items: center; justify-content: center;
}
.check:hover { border-color: #6366f1; }
.check.checked {
background: linear-gradient(135deg, #6366f1, #8b5cf6);
border-color: transparent;
}
.kbd { display: inline-block; padding: 0.1rem 0.4rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 0.25rem; font-size: 0.7rem; font-family: 'JetBrains Mono', monospace; background: rgba(255,255,255,0.04); color: #a1a1aa; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.anim-fade { animation: fadeIn 0.2s ease-out; }
.anim-up { animation: slideUp 0.25s ease-out; }
.anim-down { animation: slideDown 0.2s ease-out; }
.anim-scale { animation: scaleIn 0.2s ease-out; }
.skeleton {
background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 100%);
background-size: 200% 100%;
animation: shimmer 1.5s infinite;
border-radius: 0.5rem;
}
.pulse-dot { animation: pulse-dot 1.5s ease-in-out infinite; }
.toast {
position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
padding: 0.65rem 1rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 500;
background: rgba(24, 24, 27, 0.95);
backdrop-filter: blur(20px);
border: 1px solid rgba(99, 102, 241, 0.3);
color: #fafafa;
box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
animation: slideUp 0.25s ease-out;
}
.modal-backdrop {
position: fixed; inset: 0; z-index: 50;
display: flex; align-items: center; justify-content: center; padding: 1rem;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(8px);
animation: fadeIn 0.2s ease-out;
}
.modal-card {
width: 100%; max-width: 32rem; border-radius: 1rem; padding: 1.5rem;
background: #18181b;
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 30px 90px rgba(0,0,0,0.6);
animation: scaleIn 0.2s ease-out;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 5px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); border: 2px solid transparent; background-clip: padding-box; }
[x-cloak] { display: none !important; }
::selection { background: rgba(99, 102, 241, 0.3); color: #fafafa; }
*:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; border-radius: 4px; }
/* Toggle switch */
.toggle { position: relative; display: inline-block; width: 36px; height: 20px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
position: absolute; cursor: pointer; inset: 0;
background-color: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 9999px; transition: 0.2s;
}
.toggle .slider::before {
content: ""; position: absolute; height: 14px; width: 14px;
left: 2px; bottom: 2px; background-color: #fafafa;
border-radius: 50%; transition: 0.2s;
}
.toggle input:checked + .slider {
background: linear-gradient(135deg, #6366f1, #8b5cf6);
border-color: transparent;
}
.toggle input:checked + .slider::before { transform: translateX(16px); }
</style>
@stack('head')
</head>
<body class="bg-app min-h-screen antialiased">
@yield('content')
@stack('scripts')
</body>
</html>