Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Rafael Lopez
/
ppto
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Rafael Lopez
2026-07-31 18:46:20 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
02a94396e1be29c9e935f7be09c8094daf6239a7
02a94396
1 parent
8e02bf75
descargas y diario
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
1 deletions
src/routes/+page.svelte
src/routes/api/diario/+server.js
src/routes/descargas/+page.svelte
src/routes/vista-diaria/+page.svelte
src/routes/+page.svelte
View file @
02a9439
...
...
@@ -1194,6 +1194,24 @@
</div>
</div>
<!-- Links directos -->
<div class="quick-links">
<a href="/vista-diaria" class="quick-link quick-link-diaria">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="3 12 7 12 9 6 12 18 15 9 17 12 21 12"/>
</svg>
Ver ejecución diaria
<span class="quick-link-arrow">→</span>
</a>
<a href="/descargas" class="quick-link quick-link-descargas">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 4v12"/><polyline points="8 12 12 16 16 12"/><path d="M4 18h16"/>
</svg>
Descarga bases de datos
<span class="quick-link-arrow">→</span>
</a>
</div>
</div>
<!-- Contenedor de resultados (overlay absoluto) -->
...
...
@@ -1531,6 +1549,7 @@
<!-- Scroll hint -->
</main>
<!-- Secciones removidas - el landing es solo el buscador -->
...
...
@@ -2801,6 +2820,23 @@
:global(html:not(.dark)) .footer-org{color:#999}
:global(html:not(.dark)) .footer-right{color:#999}
/* ── Quick links (debajo de mode cards) ── */
/* ── Quick links (debajo de mode cards) ── */
.quick-links{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.quick-link{display:flex;align-items:center;gap:8px;font-family:var(--sans);font-size:16px;font-weight:600;letter-spacing:-0.01em;text-decoration:none;padding:14px 16px;border-radius:12px;transition:all 0.25s ease}
.page a.quick-link-diaria{color:#C2EDD9;background:rgba(74,139,110,0.18);border:none}
.page a.quick-link-diaria:hover{color:#E0F5EC;background:rgba(74,139,110,0.28)}
.page a.quick-link-descargas{color:#F5E6A8;background:rgba(201,167,81,0.18);border:none}
.page a.quick-link-descargas:hover{color:#FBF2D0;background:rgba(201,167,81,0.28)}
.quick-link svg{opacity:0.8;transition:opacity 0.25s;flex-shrink:0}
.quick-link:hover svg{opacity:1}
.quick-link-arrow{margin-left:auto;opacity:0.4;transition:all 0.25s;transform:translateX(-4px)}
.quick-link:hover .quick-link-arrow{opacity:0.8;transform:translateX(0)}
:global(html:not(.dark)) .page a.quick-link-diaria{color:#3A7A5E;background:rgba(74,139,110,0.14)}
:global(html:not(.dark)) .page a.quick-link-diaria:hover{color:#2D6B4F;background:rgba(74,139,110,0.22)}
:global(html:not(.dark)) .page a.quick-link-descargas{color:#8A7030;background:rgba(201,167,81,0.14)}
:global(html:not(.dark)) .page a.quick-link-descargas:hover{color:#7A6228;background:rgba(201,167,81,0.22)}
/* ══════════════════════════════════════════════════════════════════════════
RESPONSIVE - TABLET (768px)
══════════════════════════════════════════════════════════════════════════ */
...
...
@@ -2808,6 +2844,7 @@
.page{scroll-snap-type:y proximity}
main[data-section="hero"]{height:auto;min-height:100vh}
main[data-section="hero"],.landing-screen,.directory,.clasificadores,.historias,.visualizaciones,.manifiesto,.descargas{scroll-snap-stop:normal}
.quick-links{grid-template-columns:1fr}
/* Section dots - bottom horizontal bar */
.section-dots{position:fixed;right:auto;left:50%;top:auto;bottom:20px;transform:translateX(-50%);flex-direction:row;gap:10px;padding:12px 20px;border-radius:24px;background:rgba(28,28,26,0.7);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,0.1);z-index:1000}
...
...
src/routes/api/diario/+server.js
View file @
02a9439
...
...
@@ -11,13 +11,21 @@ export async function GET({ url }) {
timeline
:
`
${
API_BASE
}
/timeline`
};
cons
t
apiUrl
=
endpoints
[
tipo
];
le
t
apiUrl
=
endpoints
[
tipo
];
if
(
!
apiUrl
)
{
return
new
Response
(
JSON
.
stringify
({
error
:
'Invalid tipo'
}),
{
status
:
400
,
headers
:
{
'Content-Type'
:
'application/json'
}
});
}
// Pasar parámetros adicionales
const
params
=
new
URLSearchParams
();
const
entidad
=
url
.
searchParams
.
get
(
'entidad'
);
const
dias
=
url
.
searchParams
.
get
(
'dias'
);
if
(
entidad
)
params
.
set
(
'entidad'
,
entidad
);
if
(
dias
)
params
.
set
(
'dias'
,
dias
);
if
(
params
.
toString
())
apiUrl
+=
`?
${
params
.
toString
()}
`
;
try
{
const
response
=
await
fetch
(
apiUrl
);
if
(
!
response
.
ok
)
{
...
...
src/routes/descargas/+page.svelte
View file @
02a9439
This diff is collapsed. Click to expand it.
src/routes/vista-diaria/+page.svelte
View file @
02a9439
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment