200 lines
4.5 KiB
HTML
200 lines
4.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="es">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>{% block title %}Noticias RSS{% endblock %}</title>
|
|
<link href="https://fonts.googleapis.com/css?family=Inter:400,600&display=swap" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
background: #f6f8fa;
|
|
font-family: 'Inter', Arial, sans-serif;
|
|
margin: 0;
|
|
color: #222;
|
|
}
|
|
.container {
|
|
max-width: 900px;
|
|
margin: 32px auto;
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 16px #0001;
|
|
padding: 32px 32px 20px 32px;
|
|
min-height: 80vh;
|
|
}
|
|
h1, h2 {
|
|
font-weight: 600;
|
|
color: #2d3e50;
|
|
margin-bottom: 18px;
|
|
}
|
|
.card {
|
|
background: #f8fafc;
|
|
border-radius: 8px;
|
|
box-shadow: 0 1px 4px #0001;
|
|
padding: 24px 20px 18px 20px;
|
|
margin-bottom: 30px;
|
|
overflow-x: auto;
|
|
}
|
|
.btn {
|
|
display: inline-block;
|
|
background: #396afc;
|
|
color: #fff !important;
|
|
font-weight: 600;
|
|
padding: 8px 20px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
text-decoration: none;
|
|
font-size: 1em;
|
|
margin: 5px 0;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
.btn:hover {
|
|
background: #274c8a;
|
|
}
|
|
label {
|
|
font-weight: 500;
|
|
margin-top: 10px;
|
|
margin-bottom: 2px;
|
|
display: block;
|
|
}
|
|
input[type="text"],
|
|
input[type="url"],
|
|
input[type="file"],
|
|
select,
|
|
textarea {
|
|
width: 100%;
|
|
padding: 7px 10px;
|
|
margin-bottom: 13px;
|
|
border: 1px solid #d3d8e1;
|
|
border-radius: 5px;
|
|
font-size: 1em;
|
|
font-family: inherit;
|
|
background: #f8fafc;
|
|
transition: border 0.2s;
|
|
box-sizing: border-box;
|
|
}
|
|
input[type="text"]:focus,
|
|
input[type="url"]:focus,
|
|
select:focus,
|
|
textarea:focus {
|
|
outline: none;
|
|
border-color: #396afc;
|
|
background: #f1f6fd;
|
|
}
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-top: 10px;
|
|
background: #fff;
|
|
font-size: 1em;
|
|
box-shadow: 0 1px 8px #0001;
|
|
}
|
|
th, td {
|
|
padding: 9px 10px;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
text-align: left;
|
|
}
|
|
th {
|
|
background: #f1f5fa;
|
|
font-weight: 600;
|
|
color: #396afc;
|
|
border-top: 1px solid #e5e7eb;
|
|
}
|
|
tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
.top-link {
|
|
display: inline-block;
|
|
margin-bottom: 22px;
|
|
color: #396afc;
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
font-size: 1em;
|
|
transition: color 0.2s;
|
|
}
|
|
.top-link:hover {
|
|
color: #274c8a;
|
|
text-decoration: underline;
|
|
}
|
|
/* ------ Noticias con imagen a la derecha ------ */
|
|
.noticias-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
.noticia-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
border-bottom: 1px solid #ececec;
|
|
padding: 20px 0 20px 0;
|
|
gap: 30px;
|
|
min-height: 110px;
|
|
}
|
|
.noticia-texto {
|
|
flex: 1 1 62%;
|
|
min-width: 0;
|
|
}
|
|
.noticia-imagen {
|
|
flex: 0 0 165px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
}
|
|
.noticia-imagen img {
|
|
max-width: 150px;
|
|
max-height: 95px;
|
|
border-radius: 9px;
|
|
box-shadow: 0 1px 8px #0002;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
@media (max-width: 730px) {
|
|
.container { padding: 10px; }
|
|
.noticia-item { flex-direction: column; align-items: flex-start; gap: 9px; }
|
|
.noticia-imagen { align-self: flex-start; }
|
|
}
|
|
/* ------ BADGES DE ESTADO ------ */
|
|
.badge-ok {
|
|
background: #ddffdd;
|
|
color: #1c8c1c;
|
|
font-weight: bold;
|
|
padding: 3px 14px;
|
|
border-radius: 8px;
|
|
font-size: 1em;
|
|
display: inline-block;
|
|
min-width: 38px;
|
|
text-align: center;
|
|
}
|
|
.badge-ko {
|
|
background: #ffdddd;
|
|
color: #b20000;
|
|
font-weight: bold;
|
|
padding: 3px 14px;
|
|
border-radius: 8px;
|
|
font-size: 1em;
|
|
display: inline-block;
|
|
min-width: 38px;
|
|
text-align: center;
|
|
}
|
|
.badge-warn {
|
|
background: #fff7cc;
|
|
color: #b68900;
|
|
font-weight: bold;
|
|
padding: 3px 14px;
|
|
border-radius: 8px;
|
|
font-size: 1em;
|
|
display: inline-block;
|
|
min-width: 38px;
|
|
text-align: center;
|
|
}
|
|
/* Scroll suave para tablas grandes */
|
|
.card { overflow-x: auto; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|