From e0156ee9e62a8c4aad5233a2cfdced373d8e6cc9 Mon Sep 17 00:00:00 2001 From: Hanzo_dev <2002samudiojohan@gmail.com> Date: Tue, 3 Mar 2026 12:12:21 -0500 Subject: [PATCH] UI: Compact AuthGuard with side-by-side buttons and shorter promotion messages --- frontend/src/components/common/AuthGuard.vue | 56 +++++++++++--------- frontend/src/i18n/locales/en.json | 2 +- frontend/src/i18n/locales/es.json | 2 +- 3 files changed, 32 insertions(+), 28 deletions(-) diff --git a/frontend/src/components/common/AuthGuard.vue b/frontend/src/components/common/AuthGuard.vue index 94ec150..0452c2c 100644 --- a/frontend/src/components/common/AuthGuard.vue +++ b/frontend/src/components/common/AuthGuard.vue @@ -60,7 +60,7 @@ function goToLogin() { {{ props.actionLabel }} @@ -97,43 +97,44 @@ function goToLogin() { align-items: center; justify-content: center; z-index: 50; - padding: 1.5rem; - background: rgba(var(--bg-primary-rgb), 0.2); + padding: 1rem; + background: rgba(var(--bg-primary-rgb), 0.4); + backdrop-filter: blur(4px); } .auth-card { - max-width: 360px; + max-width: 320px; width: 100%; - padding: 2.25rem 1.75rem; - border-radius: 2rem; + padding: 1.5rem 1.25rem; + border-radius: 1.5rem; text-align: center; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; align-items: center; - gap: 1.25rem; + gap: 1rem; animation: float 6s ease-in-out infinite; } .auth-icon-circle { - width: 64px; - height: 64px; + width: 48px; + height: 48px; background: var(--active-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; - margin-bottom: 0.5rem; + margin-bottom: 0.25rem; } .auth-icon-circle .material-icons { - font-size: 2rem; + font-size: 1.5rem; color: #101820; } .auth-title { - font-size: 1.25rem; + font-size: 1.1rem; font-weight: 900; color: var(--text-primary); margin: 0; @@ -141,33 +142,35 @@ function goToLogin() { } .auth-message { - font-size: 0.9375rem; + font-size: 0.85rem; color: var(--text-secondary); - line-height: 1.5; + line-height: 1.4; margin: 0; } /* ── ACTIONS ── */ .auth-actions { - display: flex; - flex-direction: column; - gap: 0.75rem; + display: grid; + grid-template-columns: 1.2fr 1fr; + gap: 0.5rem; width: 100%; - margin-top: 0.5rem; + margin-top: 1rem; } .primary-btn { display: flex; align-items: center; justify-content: center; - gap: 0.5rem; - padding: 1rem; + gap: 0.4rem; + padding: 0.75rem 0.5rem; background: var(--active-color); color: #101820; border: none; - border-radius: 1rem; + border-radius: 0.75rem; font-weight: 800; + font-size: 0.85rem; cursor: pointer; + white-space: nowrap; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); } @@ -177,14 +180,15 @@ function goToLogin() { } .secondary-btn { - padding: 0.75rem; - background: transparent; + padding: 0.75rem 0.5rem; + background: rgba(255,255,255,0.05); color: var(--text-primary); - border: 1px solid var(--border-color); - border-radius: 1rem; + border: 1px solid rgba(255,255,255,0.2); + border-radius: 0.75rem; font-weight: 700; - font-size: 0.875rem; + font-size: 0.8rem; cursor: pointer; + white-space: nowrap; transition: all 0.2s; } diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json index a96c739..4d5e71e 100644 --- a/frontend/src/i18n/locales/en.json +++ b/frontend/src/i18n/locales/en.json @@ -151,7 +151,7 @@ "restaurant": "Restaurant", "auth": { "title": "Exclusive Offers", - "message": "To view the details of this promotion, get your discount code and save on your purchases, register or log in now." + "message": "To view the details of this promotion and save on your purchases, register or log in now." } }, "taxi": { diff --git a/frontend/src/i18n/locales/es.json b/frontend/src/i18n/locales/es.json index 0acec89..7070047 100644 --- a/frontend/src/i18n/locales/es.json +++ b/frontend/src/i18n/locales/es.json @@ -153,7 +153,7 @@ "restaurant": "Restaurante", "auth": { "title": "Ofertas Exclusivas", - "message": "Para ver los detalles de esta promoción, obtener tu código de descuento y ahorrar en tus compras, regístrate o accede ahora." + "message": "Para ver los detalles de esta promoción y ahorrar en tus compras, regístrate o accede ahora." } }, "taxi": {