feat(v3): rediseño con cloud dividers, animaciones scroll reveal, galería stock, página /servicios con 9 planes, 404 gracioso con robot, planos dark mode con todos los planes

- 9 planes de hosting con tabla completa de Mauri (USD/año)
- /servicios muestra los 3 servicios a medida + 9 planes categorizados
- /planes: 3 destacados + grilla con los 6 restantes
- 404 con robot SVG animado tomando mate (pronet.uy + peugeot style)
- Cloud dividers SVG entre secciones de la home
- Scroll reveal animations (.reveal + .stagger con IntersectionObserver)
- Galería de imágenes stock (datacenters, cables, código) en AVIF + WebP + JPG
- Sección de testimonios con placeholder honesto (Working on it)
- Back-to-top arreglado: ahora usa color naranja + icono blanco, visible en ambos temas
- WorldMap con animación SVG de 4 países
- Toggle light/dark funcional con anti-flash script
- Footer siempre dark con Maldonado, Uruguay
- i18n es/en con toggle y contenido bilingüe

Tech: Astro 5 + Tailwind v4 + Keystatic + Gitea + lftp
This commit is contained in:
Mauri
2026-06-08 23:27:55 -03:00
parent 393f6b0dc3
commit 79fc763025
38 changed files with 1069 additions and 113 deletions
+58
View File
@@ -0,0 +1,58 @@
<?php
/**
* Gitea webhook → rebuild + redeploy
*
* Triggereado por push a branch main en mauri/hostingdelsur.net
* Ejecuta: git pull, npm install, npm run build, rsync dist a public_html
*
* Logs: /home/hostingd/deploy.log
*/
declare(strict_types=1);
$secret = getenv('DEPLOY_SECRET') ?: 'hds-deploy-2026';
$signature = $_SERVER['HTTP_X_GITEA_SIGNATURE'] ?? '';
$payload = file_get_contents('php://input');
$expected = hash_hmac('sha256', $payload, $secret);
if (!hash_equals($expected, $signature)) {
http_response_code(403);
echo json_encode(['ok' => false, 'error' => 'Invalid signature']);
exit;
}
$body = json_decode($payload, true);
$ref = $body['ref'] ?? '';
$repoName = $body['repository']['name'] ?? '';
if ($ref !== 'refs/heads/main' || $repoName !== 'hostingdelsur.net') {
http_response_code(200);
echo json_encode(['ok' => true, 'message' => 'Ignored (not main or wrong repo)']);
exit;
}
$logFile = '/home/hostingd/deploy.log';
$timestamp = date('Y-m-d H:i:s');
$logLine = "[{$timestamp}] Deploy started for {$repoName} @ {$ref}\n";
$projectDir = '/home/hostingd/hostingdelsur.net';
$distDir = $projectDir . '/dist';
$publicHtml = '/home/hostingd/public_html';
$commands = [
"cd {$projectDir} && git pull origin main 2>&1",
"cd {$projectDir} && npm install --production=false 2>&1",
"cd {$projectDir} && npm run build 2>&1",
"rsync -a --delete --exclude='mwp' --exclude='.well-known' --exclude='.smtp-credentials.json' --exclude='api' --exclude='.htaccess' {$distDir}/ {$publicHtml}/ 2>&1",
];
foreach ($commands as $cmd) {
$output = shell_exec($cmd . ' 2>&1');
$logLine .= "$ {$cmd}\n{$output}\n";
}
$logLine .= "[{$timestamp}] Deploy completed\n\n";
file_put_contents($logFile, $logLine, FILE_APPEND);
http_response_code(200);
echo json_encode(['ok' => true, 'message' => 'Deploy triggered', 'log' => basename($logFile)]);