fix: corregir enlace al POS desde landing page
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -345,7 +345,7 @@
|
||||
<div class="header-actions">
|
||||
<button class="theme-toggle" onclick="toggleTheme()" title="Cambiar tema">Tema</button>
|
||||
<a href="/catalog" class="btn btn-primary">Ver Catalogo</a>
|
||||
<a href="#" onclick="window.location.href=window.location.protocol+'//'+window.location.hostname+':5001/pos/login';return false;" class="btn btn-secondary">Acceder al POS</a>
|
||||
<a href="/pos/login" class="pos-link" class="btn btn-secondary">Acceder al POS</a>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
@@ -356,7 +356,7 @@
|
||||
<h1><span>Nexus</span> Autoparts</h1>
|
||||
<p class="tagline">Tu conexion directa con las partes que necesitas</p>
|
||||
<a href="/catalog" class="btn btn-primary btn-lg">Ver Catalogo</a>
|
||||
<a href="#" onclick="window.location.href=window.location.protocol+'//'+window.location.hostname+':5001/pos/login';return false;" class="btn btn-secondary btn-lg" style="margin-left:var(--space-3);">Acceder al POS</a>
|
||||
<a href="/pos/login" class="pos-link" class="btn btn-secondary btn-lg" style="margin-left:var(--space-3);">Acceder al POS</a>
|
||||
<div class="hero-stats" id="heroStats">
|
||||
<div class="hero-stat">
|
||||
<div class="number" id="statParts">1.5M+</div>
|
||||
@@ -499,6 +499,15 @@
|
||||
})
|
||||
.catch(function(){});
|
||||
</script>
|
||||
<script>
|
||||
// Fix POS links to point to port 5001
|
||||
document.querySelectorAll('a.pos-link').forEach(function(a) {
|
||||
a.addEventListener('click', function(e) {
|
||||
e.preventDefault();
|
||||
window.location.href = location.protocol + '//' + location.hostname + ':5001/pos/login';
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user