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

+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>