solucion de eventos por pais
This commit is contained in:
parent
fc06566928
commit
68a5528f2f
7 changed files with 796 additions and 14 deletions
|
|
@ -12,27 +12,58 @@
|
|||
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
||||
|
||||
<!-- Estilos mínimos para chapa "Traducido" y (opcional) switch -->
|
||||
<style>
|
||||
.badge{
|
||||
display:inline-block; font-size:.75rem; line-height:1;
|
||||
padding:.35rem .5rem; border-radius:.5rem;
|
||||
background: var(--secondary-color, #6c63ff); color:#fff; vertical-align: middle;
|
||||
display:inline-block;
|
||||
font-size:.75rem;
|
||||
line-height:1;
|
||||
padding:.35rem .5rem;
|
||||
border-radius:.5rem;
|
||||
background: var(--secondary-color, #6c63ff);
|
||||
color:#fff;
|
||||
vertical-align: middle;
|
||||
margin-left:.4rem;
|
||||
}
|
||||
/* Toggle switch opcional (si lo usas en alguna vista) */
|
||||
.switch { position: relative; display: inline-block; width: 42px; height: 22px; vertical-align: middle; }
|
||||
.switch input { opacity: 0; width: 0; height: 0; }
|
||||
.switch {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 42px;
|
||||
height: 22px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.switch input {
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
.slider {
|
||||
position: absolute; cursor: pointer; top:0; left:0; right:0; bottom:0;
|
||||
background:#ccc; transition:.2s; border-radius:999px;
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
background:#ccc;
|
||||
transition:.2s;
|
||||
border-radius:999px;
|
||||
}
|
||||
.slider:before {
|
||||
position: absolute; content:""; height:16px; width:16px; left:3px; bottom:3px;
|
||||
background:#fff; transition:.2s; border-radius:50%;
|
||||
position: absolute;
|
||||
content:"";
|
||||
height:16px;
|
||||
width:16px;
|
||||
left:3px;
|
||||
bottom:3px;
|
||||
background:#fff;
|
||||
transition:.2s;
|
||||
border-radius:50%;
|
||||
}
|
||||
.switch input:checked + .slider {
|
||||
background: var(--secondary-color, #6c63ff);
|
||||
}
|
||||
.switch input:checked + .slider:before {
|
||||
transform: translateX(20px);
|
||||
}
|
||||
.switch input:checked + .slider { background: var(--secondary-color, #6c63ff); }
|
||||
.switch input:checked + .slider:before { transform: translateX(20px); }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
|
@ -44,6 +75,7 @@
|
|||
|
||||
<nav class="main-nav">
|
||||
<a href="{{ url_for('home') }}" class="nav-link">Noticias</a>
|
||||
<a href="{{ url_for('eventos_pais') }}" class="nav-link">Eventos por país</a>
|
||||
<a href="{{ url_for('dashboard') }}" class="nav-link">Dashboard</a>
|
||||
<a href="{{ url_for('manage_feeds') }}" class="nav-link">Gestionar Feeds</a>
|
||||
<a href="{{ url_for('manage_urls') }}" class="nav-link">Gestionar URLs</a>
|
||||
|
|
@ -64,7 +96,6 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
// Toggle "Ver más / Ver menos" en resúmenes
|
||||
document.addEventListener('click', function(event) {
|
||||
if (event.target.classList.contains('ver-mas-btn')) {
|
||||
const container = event.target.closest('.resumen-container');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue