actualizada ui

Signed-off-by: fede <federico.nicolas.polidoro@gmail.com>
This commit is contained in:
fede committed 2026-10-06 13:26:44 -03:00
1 parent 7039de81c8
commit 1dced4f3d9
5674 files changed
+1215 -297009

No files matched your search

+17 -13
View File
@@ -1,20 +1,24 @@
<!DOCTYPE html>
<html lang="es">
<html lang="es" class="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ .Title }}</title>
<link rel="stylesheet" href="{{ "css/main.css" | resources.Get | css.PostCSS | resources.Minify | resources.Fingerprint | relURL }}">
<link rel="stylesheet" href="/css/styles.css">
<meta name="color-scheme" content="dark" />
<title>{{ if .Title }}{{ .Title }} · {{ end }}{{ .Site.Title }}</title>
{{ $css := resources.Get "css/compiled.css" | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}" integrity="{{ $css.Data.Integrity }}">
{{ $health := resources.Get "js/health.js" | js.Build | resources.Minify | resources.Fingerprint }}
<script src="{{ $health.RelPermalink }}" integrity="{{ $health.Data.Integrity }}" defer></script>
</head>
<body>
<main>
{{ block "main" . }}{{ end }}
</main>
<br>
<footer class="text-center text-sm text-gray-500 mt-12 py-6 border-t">
© {{ now.Year }} {{.Site.Params.Author}}
</footer>
<body class="bg-[#11111b] text-[#cdd6f4] min-h-screen antialiased font-mono selection:bg-[#cba6f7]/40 selection:text-[#11111b] overflow-x-hidden">
{{ partial "matrix.html" . }}
<div class="relative z-10 flex min-h-screen flex-col">
<main class="flex-1 w-full">
{{ block "main" . }}{{ end }}
</main>
<footer class="border-t-2 border-[#cdd6f4] bg-[#181825] text-center text-xs font-bold text-white py-6">
<span class="inline-block border-2 border-[#cdd6f4] bg-[#1e1e2e] px-3 py-1 text-white shadow-[3px_3px_0_#cba6f7]">~ © {{ now.Year }} {{ .Site.Params.author }} <span class="text-white">·</span> sitemap</span>
</footer>
</div>
</body>
</html>
+11 -56
View File
@@ -1,64 +1,19 @@
{{ define "main" }}
{{ partial "nav.html" . }}
<div
class="rounded flex dark:bg-black justify-center items-center h-screen w-full bg-[repeating-linear-gradient(transparent,transparent_27px,#333_28px)] dark:bg-[repeating-linear-gradient(transparent,transparent_27px,#aaa_28px)] bg-[size:100%_28px] shadow-[0_4px_6px_-1px_rgb(107,114,128)]"
>
<div
class="bg-cyan-200 dark:bg-emerald-500 border-2 dark:border-white rounded-lg p-2"
>
<div class="flex flex-col sm:flex-row items-center">
<img
src="fede.jpg"
class="w-22 object-cover rounded-lg border-4 border-gray-400 grayscale hover:grayscale-0 z-0"
/>
<div class="hidden sm:flex flex-col items-center p-2">
<div class="w-[2px] h-16 bg-black"></div>
</div>
<p
class="underline font-serif font-bold text-2xl md:text-4xl lg:text-5xl self-center"
>
{{ .Site.Params.author }}
</p>
</div>
<p class="font-mono font-light">
{{ if .Site.Params.leyenda }} {{ .Site.Params.leyenda }} {{ end }}
</p>
<div class="relative mx-auto w-full max-w-6xl px-4 pt-28 pb-16 sm:px-6">
<div class="mb-12 text-center">
<p class="mb-5 inline-block -rotate-2 border-2 border-[#11111b] bg-[#a6e3a1] px-3 py-1 text-xs font-black tracking-[0.2em] text-[#11111b] uppercase shadow-[3px_3px_0_#cdd6f4]">fedesrv · index</p>
<div>
<h1 class="inline-block border-2 border-[#cdd6f4] bg-[#1e1e2e] px-6 py-3 text-4xl font-black tracking-tight text-[#cdd6f4] uppercase shadow-[6px_6px_0_#cba6f7] sm:text-5xl">
<span class="text-[#cba6f7]">$</span> sitemap<span class="ml-2 inline-block h-7 w-3.5 animate-pulse bg-[#cba6f7] align-middle"></span>
</h1>
</div>
<div class="absolute bottom-8 flex justify-center w-full animate-bounce">
<svg width="40" height="20" viewBox="0 0 40 20">
<defs>
<linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color: #ff0000" />
<stop offset="100%" style="stop-color: #ffff00" />
</linearGradient>
</defs>
<path d="M0 0 L20 20 L40 0 Z" fill="url(#grad)" />
</svg>
</div>
</div>
<hr class="m-4" />
<div class="flex justify-center p-8 flex-col items-center bg-teal-200 rounded-t-lg shadow-md">
<p
class="underline font-serif font-bold text-2xl md:text-4xl lg:text-5xl self-center"
>
Sitemap
<p class="mx-auto mt-6 inline-block border-2 border-[#cdd6f4] bg-[#11111b] px-4 py-2 text-sm font-bold text-[#a6adc8] shadow-[4px_4px_0_#74c7ec]">
Accesos directos a los servicios y páginas del servidor.
</p>
</div>
{{partial "sitemap.html"}}
</div>
<hr class="m-4" />
<!-- Aca esta la parte de abajo de la portada -->
<div class="flex justify-center p-8 flex-col items-center bg-sky-200 rounded-t-lg shadow-md">
<p
class="underline font-serif font-bold text-2xl md:text-4xl lg:text-5xl self-center"
>
Portfolio
</p>
{{partial "proyectos.html" .}}
{{partial "posts.html" .}}
{{ partial "sitemap.html" . }}
</div>
{{ end }}
+119
View File
@@ -0,0 +1,119 @@
<canvas id="matrix-bg" class="fixed inset-0 h-full w-full bg-[#11111b]" aria-hidden="true"></canvas>
<div id="matrix-spotlight" class="pointer-events-none fixed inset-0" aria-hidden="true"></div>
<div class="pointer-events-none fixed inset-0 bg-[radial-gradient(ellipse_at_center,transparent_0%,rgba(17,17,27,0.6)_100%)]" aria-hidden="true"></div>
<script>
(function () {
const canvas = document.getElementById("matrix-bg");
const spotlight = document.getElementById("matrix-spotlight");
if (!canvas) return;
const ctx = canvas.getContext("2d");
// Catppuccin Mocha
const C = {
base: "#11111b",
lavender: [180, 190, 254],
mauve: [203, 166, 247],
pink: [245, 194, 231],
rosewater: [245, 224, 220],
};
const GAP = 28; // separación de la grilla fija
const RADIUS = 240; // radio de iluminación del cursor
let cols = 0, rows = 0;
let mx = window.innerWidth / 2;
let my = window.innerHeight / 3;
let hasMouse = false;
function resize() {
const dpr = Math.min(window.devicePixelRatio || 1, 2);
canvas.width = Math.floor(window.innerWidth * dpr);
canvas.height = Math.floor(window.innerHeight * dpr);
canvas.style.width = window.innerWidth + "px";
canvas.style.height = window.innerHeight + "px";
ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
cols = Math.ceil(window.innerWidth / GAP);
rows = Math.ceil(window.innerHeight / GAP);
}
function setSpotlight(x, y) {
spotlight.style.background =
"radial-gradient(circle " + RADIUS + "px at " + x + "px " + y + "px, " +
"rgba(203,166,247,0.13) 0%, rgba(180,190,254,0.05) 45%, transparent 70%)";
}
setSpotlight(mx, my);
window.addEventListener("resize", resize);
window.addEventListener("pointermove", (e) => {
mx = e.clientX;
my = e.clientY;
hasMouse = true;
setSpotlight(mx, my);
}, { passive: true });
document.addEventListener("pointerleave", () => { hasMouse = false; });
resize();
const reduceMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
function mix(a, b, t) {
return [
Math.round(a[0] + (b[0] - a[0]) * t),
Math.round(a[1] + (b[1] - a[1]) * t),
Math.round(a[2] + (b[2] - a[2]) * t),
];
}
function frame(t) {
requestAnimationFrame(frame);
if (reduceMotion) t = 0; // fondo estático, solo responde al cursor
const W = window.innerWidth;
const H = window.innerHeight;
// fondo opaco: los puntos están fijos, no caen
ctx.shadowBlur = 0;
ctx.fillStyle = C.base;
ctx.fillRect(0, 0, W, H);
for (let j = 0; j < rows; j++) {
const y = j * GAP + GAP / 2;
for (let i = 0; i < cols; i++) {
const x = i * GAP + GAP / 2;
const dx = x - mx;
const dy = y - my;
const dist = hasMouse ? Math.sqrt(dx * dx + dy * dy) : 9999;
let f = Math.max(0, 1 - dist / RADIUS);
f = f * f * (3 - 2 * f); // smoothstep: encendido suave
// respiración sutil del fondo para que no se vea muerto
const tw = reduceMotion ? 0.5 : 0.5 + 0.5 * Math.sin(t * 0.001 + (x + y) * 0.02);
if (f > 0.01) {
// iluminado por el cursor: crece + cambia lavender -> mauve -> rosewater
const c = f > 0.65 ? mix(C.mauve, C.rosewater, (f - 0.65) / 0.35)
: f > 0.3 ? mix(C.lavender, C.mauve, (f - 0.3) / 0.35)
: mix([88, 91, 112], C.lavender, f / 0.3);
const r = 1.2 + f * 1.2;
ctx.shadowBlur = 16 * f;
ctx.shadowColor = "rgba(203,166,247,0.9)";
ctx.fillStyle = "rgba(" + c[0] + "," + c[1] + "," + c[2] + "," + (0.35 + f * 0.65).toFixed(2) + ")";
ctx.beginPath();
ctx.arc(x, y, r, 0, Math.PI * 2);
ctx.fill();
} else {
// fondo: punto fijo tenue con parpadeo leve
ctx.shadowBlur = 0;
ctx.fillStyle = "rgba(88,91,112," + (0.16 + tw * 0.14).toFixed(2) + ")";
ctx.beginPath();
ctx.arc(x, y, 1.2, 0, Math.PI * 2);
ctx.fill();
}
}
}
ctx.shadowBlur = 0;
}
requestAnimationFrame(frame);
})();
</script>
+34 -104
View File
@@ -1,109 +1,39 @@
<nav class="bg-gray-800 fixed w-full top-0 z-3">
<div class="mx-auto px-4">
<div class="flex items-center justify-between h-16">
<div class="flex items-center">
<a href="/" class="text-white font-bold text-xl"
>Fede Landing Site</a
>
</div>
<!-- Desktop Menu -->
<div class="hidden md:flex">
<a
href="/git"
target="_blank"
class="text-gray-300 hover:text-white px-3 py-2"
>Git</a
>
<a
class="text-gray-300 hover:text-white px-3 py-2 muted"
href="https://fedesrv.ddns.net/git/fede/CV/media/branch/master/Federico_Polidoro_CV.pdf"
target="_blank"
>CV</a
>
<a
href="https://github.com/fedpo2"
target="_blank"
class="text-gray-300 hover:text-white px-3 py-2"
>GitHub</a
>
<a
href="mailto:federico.nicolas.polidoro@gmail.com"
target="_blank"
class="text-gray-300 hover:text-white px-3 py-2"
>Email</a
>
<a
href="https://www.linkedin.com/in/federico-polidoro-40137a25b/"
target="_blank"
class="text-gray-300 hover:text-white px-3 py-2"
>LinkedIn</a
>
</div>
<!-- Mobile Menu Button -->
<div class="md:hidden cursor-context-menu">
<button
onclick="toggleOffCanvas()"
class="border px-2 py-1 rounded text-white"
>
<svg
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M0 6h25M0 12h25M0 18h25"
/>
</svg>
</button>
</div>
</div>
<nav class="fixed inset-x-0 top-0 z-20 border-b-2 border-[#cdd6f4] bg-[#181825]">
<div class="mx-auto flex h-16 max-w-6xl items-center justify-between px-4 sm:px-6">
<a href="/" class="border-2 border-[#cdd6f4] bg-[#cba6f7] px-2 py-1 font-mono text-sm font-black tracking-tight text-[#11111b] uppercase shadow-[3px_3px_0_#f5c2e7] transition hover:translate-x-[1px] hover:translate-y-[1px] hover:shadow-[1px_1px_0_#f5c2e7]">
~/fedesrv<span class="ml-1 inline-block h-4 w-2 animate-pulse bg-[#11111b] align-middle"></span>
</a>
<!-- Desktop Menu -->
<div class="hidden items-center gap-2 md:flex">
<a href="/git" target="_blank" class="border-2 border-transparent px-3 py-1 text-sm font-bold text-[#a6adc8] transition hover:border-[#cdd6f4] hover:bg-[#cba6f7] hover:text-[#11111b] hover:shadow-[3px_3px_0_#f5c2e7]">Git</a>
<a href="https://fedesrv.ddns.net/git/fede/CV/media/branch/master/Federico_Polidoro_CV.pdf" target="_blank" class="border-2 border-transparent px-3 py-1 text-sm font-bold text-[#a6adc8] transition hover:border-[#cdd6f4] hover:bg-[#cba6f7] hover:text-[#11111b] hover:shadow-[3px_3px_0_#f5c2e7]">CV</a>
<a href="https://github.com/fedpo2" target="_blank" class="border-2 border-transparent px-3 py-1 text-sm font-bold text-[#a6adc8] transition hover:border-[#cdd6f4] hover:bg-[#cba6f7] hover:text-[#11111b] hover:shadow-[3px_3px_0_#f5c2e7]">GitHub</a>
<a href="mailto:federico.nicolas.polidoro@gmail.com" target="_blank" class="border-2 border-transparent px-3 py-1 text-sm font-bold text-[#a6adc8] transition hover:border-[#cdd6f4] hover:bg-[#cba6f7] hover:text-[#11111b] hover:shadow-[3px_3px_0_#f5c2e7]">Email</a>
<a href="https://www.linkedin.com/in/federico-polidoro-40137a25b/" target="_blank" class="border-2 border-transparent px-3 py-1 text-sm font-bold text-[#a6adc8] transition hover:border-[#cdd6f4] hover:bg-[#cba6f7] hover:text-[#11111b] hover:shadow-[3px_3px_0_#f5c2e7]">LinkedIn</a>
</div>
<!-- Off-canvas Menu -->
<div
id="offCanvas"
class="fixed top-16 right-0 w-64 h-screen bg-gray-800 transform translate-x-full transition-transform duration-200 ease-in-out"
>
<div class="flex flex-col p-4">
<a
href="/git"
target="_blank"
class="text-gray-300 hover:text-white px-3 py-2"
>Git</a
>
<a
class="text-gray-300 hover:text-white px-3 py-2 muted"
href="https://fedesrv.ddns.net/git/fede/CV/media/branch/master/Federico_Polidoro_CV.pdf"
target="_blank"
>CV</a
>
<a
href="https://github.com/fedpo2"
target="_blank"
class="text-gray-300 hover:text-white px-3 py-2"
>GitHub</a
>
<a
href="mailto:federico.nicolas.polidoro@gmail.com"
target="_blank"
class="text-gray-300 hover:text-white px-3 py-2"
>Email</a
>
<a
href="https://www.linkedin.com/in/federico-polidoro-40137a25b/"
target="_blank"
class="text-gray-300 hover:text-white px-3 py-2"
>LinkedIn</a
>
</div>
<!-- Mobile Menu Button -->
<div class="md:hidden">
<button onclick="toggleOffCanvas()" aria-label="Abrir menú" class="border-2 border-[#cdd6f4] bg-[#cba6f7] px-2 py-1 text-[#11111b] shadow-[3px_3px_0_#f5c2e7] transition hover:translate-x-[1px] hover:translate-y-[1px] hover:shadow-[1px_1px_0_#f5c2e7]">
<svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
<path stroke-linecap="square" stroke-linejoin="miter" d="M4 6h16M4 12h16M4 18h16" />
</svg>
</button>
</div>
</div>
<!-- Off-canvas Menu -->
<div id="offCanvas" class="fixed top-16 right-0 h-screen w-64 translate-x-full border-l-2 border-[#cdd6f4] bg-[#181825] transition-transform duration-200 ease-in-out">
<div class="flex flex-col gap-2 p-4 font-mono text-sm font-bold">
<a href="/git" target="_blank" class="border-2 border-[#cdd6f4] bg-[#1e1e2e] px-3 py-2 text-[#cdd6f4] shadow-[3px_3px_0_#cba6f7] hover:bg-[#cba6f7] hover:text-[#11111b]">Git</a>
<a href="https://fedesrv.ddns.net/git/fede/CV/media/branch/master/Federico_Polidoro_CV.pdf" target="_blank" class="border-2 border-[#cdd6f4] bg-[#1e1e2e] px-3 py-2 text-[#cdd6f4] shadow-[3px_3px_0_#cba6f7] hover:bg-[#cba6f7] hover:text-[#11111b]">CV</a>
<a href="https://github.com/fedpo2" target="_blank" class="border-2 border-[#cdd6f4] bg-[#1e1e2e] px-3 py-2 text-[#cdd6f4] shadow-[3px_3px_0_#cba6f7] hover:bg-[#cba6f7] hover:text-[#11111b]">GitHub</a>
<a href="mailto:federico.nicolas.polidoro@gmail.com" target="_blank" class="border-2 border-[#cdd6f4] bg-[#1e1e2e] px-3 py-2 text-[#cdd6f4] shadow-[3px_3px_0_#cba6f7] hover:bg-[#cba6f7] hover:text-[#11111b]">Email</a>
<a href="https://www.linkedin.com/in/federico-polidoro-40137a25b/" target="_blank" class="border-2 border-[#cdd6f4] bg-[#1e1e2e] px-3 py-2 text-[#cdd6f4] shadow-[3px_3px_0_#cba6f7] hover:bg-[#cba6f7] hover:text-[#11111b]">LinkedIn</a>
</div>
</div>
</nav>
<script>
function toggleOffCanvas() {
const offCanvas = document.getElementById("offCanvas");
offCanvas.classList.toggle("translate-x-full");
}
function toggleOffCanvas() {
const offCanvas = document.getElementById("offCanvas");
offCanvas.classList.toggle("translate-x-full");
}
</script>
+35 -38
View File
@@ -1,41 +1,38 @@
<div class="container mx-auto px-4 py-8">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
{{ range where site.RegularPages "Section" "sitemap" }}
<div
class="
bg-white rounded-lg
border-4 border-black
shadow-[0_4px_0_black]
hover:shadow-[0_8px_0_black]
hover:-translate-y-1
hover:scale-105
transition-all duration-100 ease-linear
overflow-hidden
transform
mx-auto
hover:z-2
"
>
<a href="{{ .Params.redirect }}" class="block w-86 h-48">
{{ if .Params.image }}
<img
src="{{ .Params.image }}"
alt="{{ .Title }}"
class="w-full h-48 object-cover"
/>
{{ else }}
<div class="w-full h-48 border border-gray-200 flex flex-col justify-center items-center p-5">
<span class="text-gray-700 font-mono text-lg font-medium leading-tight">
{{ .Params.title }}
</span>
<p class="text-gray-400 font-mono text-sm line-clamp-2 bg-grey-300 p-1 rounded-lg">
{{ .Params.redirect }}
</p>
</div>
{{ end }}
</a>
<div class="container mx-auto px-2 py-4 sm:px-4">
<div class="mb-5 flex flex-wrap items-center gap-2 text-[11px] font-black uppercase">
<span class="border-2 border-[#cdd6f4] bg-[#11111b] px-2 py-1 shadow-[3px_3px_0_#cba6f7]"><span class="mr-1 inline-block h-2 w-2 bg-[#a6e3a1]"></span>online</span>
<span class="border-2 border-[#cdd6f4] bg-[#11111b] px-2 py-1 shadow-[3px_3px_0_#cba6f7]"><span class="mr-1 inline-block h-2 w-2 bg-[#f38ba8]"></span>offline</span>
<span class="border-2 border-[#cdd6f4] bg-[#11111b] px-2 py-1 shadow-[3px_3px_0_#cba6f7]"><span class="mr-1 inline-block h-2 w-2 bg-[#f9e2af]"></span>revisando</span>
</div>
<div class="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3">
{{ range where site.RegularPages "Section" "sitemap" }}
<a
href="{{ .Params.redirect }}"
data-health-url="{{ .Params.redirect }}"
class="group relative border-2 border-[#cdd6f4] bg-[#1e1e2e] p-5 shadow-[5px_5px_0_#cba6f7] transition-all duration-150 hover:translate-x-[2px] hover:translate-y-[2px] hover:bg-[#313244] hover:shadow-[2px_2px_0_#f5c2e7] active:translate-x-[5px] active:translate-y-[5px] active:shadow-none"
>
<div class="relative">
<div class="mb-4 inline-flex max-w-full items-center gap-2 border-2 border-[#cdd6f4] bg-[#11111b] px-2 py-1 text-[11px] font-bold text-[#b4befe]">
<span data-health-dot class="inline-block h-2.5 w-2.5 shrink-0 border border-[#11111b] bg-[#6c7086]"></span>
<span class="truncate">{{ .Params.redirect }}</span>
</div>
{{ if .Params.image }}
<img
src="{{ .Params.image }}"
alt="{{ .Title }}"
class="mb-4 h-40 w-full border-2 border-[#cdd6f4] object-cover"
loading="lazy"
/>
{{ end }}
</div>
<h2 class="text-xl font-black tracking-tight text-[#cdd6f4] uppercase transition group-hover:text-[#cba6f7]">
{{ .Title }}
</h2>
<p class="mt-2 flex items-center justify-between font-mono text-xs font-bold text-[#6c7086] group-hover:text-[#a6adc8]">
<span class="truncate"><span class="text-[#cba6f7]">→</span> {{ .Params.redirect }}</span>
<span class="ml-2 shrink-0 border-2 border-[#cdd6f4] bg-[#cba6f7] px-2 py-0.5 text-[#11111b] transition group-hover:bg-[#f5c2e7]">IR</span>
</p>
</div>
</a>
{{ end }}
</div>
</div>