Files
2026-01-17 11:40:17 +01:00

84 lines
2.5 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Dashboard - Demo</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: Arial, sans-serif;
background: #f5f5f5;
padding: 20px;
}
.header {
background: white;
padding: 20px;
border-radius: 5px;
margin-bottom: 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.btn {
padding: 10px 20px;
background: #667eea;
color: white;
text-decoration: none;
border-radius: 5px;
}
.sites {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
}
.site-card {
background: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.status {
display: inline-block;
padding: 5px 10px;
border-radius: 3px;
font-size: 12px;
margin-top: 10px;
}
.status.draft { background: #ffc107; }
.status.pending { background: #ff9800; }
.status.published { background: #4caf50; }
</style>
</head>
<body>
<div class="header">
<h1>📊 Mi Dashboard</h1>
<div>
<a href="/dashboard/create" class="btn"> Crear Sitio</a>
<a href="/logout" class="btn" style="background: #ff4d4d;">Salir</a>
</div>
</div>
<div class="sites">
{% for site in sites %}
<div class="site-card">
<h3>{{ site.slug }}</h3>
<p>Tema: {{ site.theme }}</p>
<span class="status {{ site.status }}">{{ site.status }}</span>
<div style="margin-top: 15px;">
<a href="/customizer/{{ site.id }}" class="btn">✏️ Editar</a>
{% if site.status == 'draft' %}
<a href="/dashboard/submit/{{ site.id }}" class="btn" style="background: #ff9800;">📤 Enviar</a>
{% endif %}
</div>
</div>
{% endfor %}
{% if not sites %}
<div class="site-card">
<p>No tienes sitios aún. <a href="/dashboard/create">Crear uno</a></p>
</div>
{% endif %}
</div>
</body>
</html>