Refactor landing page to minimalist Apple-like style and use new SIB logo

This commit is contained in:
2026-03-09 16:09:23 -05:00
parent 532e396b43
commit d56065cf3c

View File

@ -1,169 +1,122 @@
<template> <template>
<div class="landing-page"> <div class="minimal-landing">
<!-- Navbar --> <!-- Clean Navbar -->
<nav class="nav-glass"> <nav class="nav-minimal" :class="{ 'scrolled': scrolled }">
<div class="nav-content"> <div class="nav-inner">
<div class="brand"> <div class="brand">
<img src="/icono.png" alt="SIB" class="nav-logo" /> <img src="/icono.png" alt="SIB Logo" class="brand-icon" />
<span class="logo-text">SIB</span> <span class="brand-name">SIB</span>
</div>
<div class="nav-links">
<button class="nav-btn" @click="scrollToInstall">{{ t('landing.hero.howToInstall') }}</button>
<button class="btn-yellow-sm" @click="launchApp">{{ t('landing.hero.launchApp') }}</button>
</div> </div>
<button class="btn-primary-sm" @click="launchApp">
{{ t('landing.hero.launchApp') }}
</button>
</div> </div>
</nav> </nav>
<!-- Hero Section --> <!-- Minimalist Hero -->
<header class="hero"> <header class="hero-minimal">
<div class="hero-bg-overlay"></div>
<div class="hero-content"> <div class="hero-content">
<div class="logo-box-main" data-aos="zoom-in"> <h1 class="hero-title" data-aos="fade-up">
<img src="/icono.png" alt="SIB Logo" class="main-logo" /> {{ t('landing.hero.title') }}
</div> </h1>
<h1 class="hero-title" data-aos="fade-up">{{ t('landing.hero.title') }}</h1> <p class="hero-subtitle" data-aos="fade-up" data-aos-delay="100">
<p class="hero-tagline" data-aos="fade-up" data-aos-delay="100">{{ t('landing.hero.tagline') }}</p> {{ t('landing.hero.tagline') }}
</p>
<div class="hero-actions" data-aos="fade-up" data-aos-delay="200"> <div class="hero-cta" data-aos="fade-up" data-aos-delay="200">
<button class="btn-primary-lg shadow-glow" @click="launchApp"> <button class="btn-yellow-lg" @click="launchApp">
<span class="material-icons">rocket_launch</span>
{{ t('landing.hero.launchApp') }} {{ t('landing.hero.launchApp') }}
</button> <span class="material-icons">arrow_forward</span>
<button class="btn-outline-lg" @click="scrollToInstall">
<span class="material-icons">install_mobile</span>
{{ t('landing.hero.howToInstall') }}
</button> </button>
</div> </div>
</div> </div>
</header> </header>
<!-- Features --> <!-- Refined Features Grid (No Cards) -->
<section class="features"> <section class="features-minimal">
<div class="feature-card" data-aos="fade-up"> <div class="features-grid">
<div class="icon-circle"> <div class="feature-item" data-aos="fade-up">
<span class="material-icons">directions_bus</span> <span class="material-icons feature-icon">explore</span>
</div>
<h3>{{ t('landing.features.realtime') }}</h3> <h3>{{ t('landing.features.realtime') }}</h3>
<p>{{ t('landing.features.realtimeDesc') }}</p> <p>{{ t('landing.features.realtimeDesc') }}</p>
</div> </div>
<div class="feature-item" data-aos="fade-up" data-aos-delay="100">
<div class="feature-card" data-aos="fade-up" data-aos-delay="100"> <span class="material-icons feature-icon">local_offer</span>
<div class="icon-circle">
<span class="material-icons">payments</span>
</div>
<h3>{{ t('landing.features.localOffers') }}</h3> <h3>{{ t('landing.features.localOffers') }}</h3>
<p>{{ t('landing.features.localOffersDesc') }}</p> <p>{{ t('landing.features.localOffersDesc') }}</p>
</div> </div>
<div class="feature-item" data-aos="fade-up" data-aos-delay="200">
<div class="feature-card" data-aos="fade-up" data-aos-delay="200"> <span class="material-icons feature-icon">phonelink_setup</span>
<div class="icon-circle">
<span class="material-icons">bolt</span>
</div>
<h3>{{ t('landing.features.noDownload') }}</h3> <h3>{{ t('landing.features.noDownload') }}</h3>
<p>{{ t('landing.features.noDownloadDesc') }}</p> <p>{{ t('landing.features.noDownloadDesc') }}</p>
</div> </div>
</div>
</section> </section>
<!-- Installation Guide --> <!-- Simple Installation Guide -->
<section id="install-guide" class="install-guide"> <section id="install-guide" class="install-section">
<div class="glass-container"> <div class="install-container">
<h2 class="section-title">{{ t('landing.install.title') }}</h2> <h2 class="install-title">{{ t('landing.install.title') }}</h2>
<div class="guide-tabs"> <div class="install-grid">
<button <!-- iOS -->
class="tab-btn" <div class="install-col">
:class="{ active: activeTab === 'ios' }" <div class="platform-header">
@click="activeTab = 'ios'" <span class="material-icons">apple</span>
> <h3>iOS (Safari)</h3>
<span class="material-icons">apple</span> iOS </div>
</button> <ol class="step-list-minimal">
<button <li>{{ t('landing.install.iosStep1') }}</li>
class="tab-btn" <li>{{ t('landing.install.iosStep2') }}</li>
:class="{ active: activeTab === 'android' }" <li>{{ t('landing.install.iosStep3') }}</li>
@click="activeTab = 'android'" </ol>
>
<span class="material-icons">android</span> Android
</button>
</div> </div>
<div class="guide-content"> <!-- Android -->
<Transition name="fade-slide" mode="out-in"> <div class="install-col">
<div :key="activeTab" class="step-list"> <div class="platform-header">
<template v-if="activeTab === 'ios'"> <span class="material-icons">android</span>
<div class="step"> <h3>Android (Chrome)</h3>
<div class="step-num">1</div>
<div class="step-text">
<strong>Paso 1</strong>
<p>{{ t('landing.install.iosStep1') }}</p>
</div> </div>
<ol class="step-list-minimal">
<li>{{ t('landing.install.androidStep1') }}</li>
<li>{{ t('landing.install.androidStep2') }}</li>
<li>{{ t('landing.install.androidStep3') }}</li>
</ol>
</div> </div>
<div class="step">
<div class="step-num">2</div>
<div class="step-text">
<strong>Paso 2</strong>
<p>{{ t('landing.install.iosStep2') }}</p>
</div>
</div>
<div class="step">
<div class="step-num">3</div>
<div class="step-text">
<strong>Paso 3</strong>
<p>{{ t('landing.install.iosStep3') }}</p>
</div>
</div>
</template>
<template v-else>
<div class="step">
<div class="step-num">1</div>
<div class="step-text">
<strong>Paso 1</strong>
<p>{{ t('landing.install.androidStep1') }}</p>
</div>
</div>
<div class="step">
<div class="step-num">2</div>
<div class="step-text">
<strong>Paso 2</strong>
<p>{{ t('landing.install.androidStep2') }}</p>
</div>
</div>
<div class="step">
<div class="step-num">3</div>
<div class="step-text">
<strong>Paso 3</strong>
<p>{{ t('landing.install.androidStep3') }}</p>
</div>
</div>
</template>
</div>
</Transition>
</div> </div>
</div> </div>
</section> </section>
<!-- Footer --> <!-- Minimal Footer -->
<footer class="footer"> <footer class="footer-minimal">
<div class="footer-content"> <div class="footer-inner">
<div class="footer-brand"> <div class="footer-logo">
<span class="logo-text">SIB</span> <img src="/icono.png" alt="SIB" class="footer-icon" />
<p>{{ t('landing.footer.dev') }}</p> <span>SIB System</span>
</div> </div>
<div class="footer-divider"></div> <p class="footer-rights">{{ t('landing.footer.rights') }}</p>
<p class="rights">{{ t('landing.footer.rights') }}</p>
</div> </div>
</footer> </footer>
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted } from 'vue' import { ref, onMounted, onUnmounted } from 'vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
const router = useRouter() const router = useRouter()
const { t } = useI18n() const { t } = useI18n()
const activeTab = ref('ios') const scrolled = ref(false)
const handleScroll = () => {
scrolled.value = window.scrollY > 50
}
onMounted(() => { onMounted(() => {
window.addEventListener('scroll', handleScroll)
// PWA Detection // PWA Detection
const isStandalone = window.matchMedia('(display-mode: standalone)').matches || (window.navigator as any).standalone === true; const isStandalone = window.matchMedia('(display-mode: standalone)').matches || (window.navigator as any).standalone === true;
if (isStandalone) { if (isStandalone) {
@ -171,6 +124,10 @@ onMounted(() => {
} }
}) })
onUnmounted(() => {
window.removeEventListener('scroll', handleScroll)
})
const launchApp = () => { const launchApp = () => {
router.push('/splash') router.push('/splash')
} }
@ -181,34 +138,39 @@ const scrollToInstall = () => {
</script> </script>
<style scoped> <style scoped>
.landing-page { .minimal-landing {
background-color: #0F1115; background-color: #000000;
color: white; color: #ffffff;
min-height: 100vh;
overflow-x: hidden;
font-family: 'Space Grotesk', sans-serif; font-family: 'Space Grotesk', sans-serif;
min-height: 100vh;
} }
/* Navbar */ /* Navbar */
.nav-glass { .nav-minimal {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
height: 70px; height: 80px;
background: rgba(15, 17, 21, 0.7);
backdrop-filter: blur(15px);
z-index: 1000; z-index: 1000;
border-bottom: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.3s ease;
}
.nav-content {
max-width: 1200px;
margin: 0 auto;
height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
}
.nav-minimal.scrolled {
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(20px);
height: 70px;
}
.nav-inner {
max-width: 1200px;
margin: 0 auto;
width: 100%;
display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center;
padding: 0 24px; padding: 0 24px;
} }
@ -218,335 +180,246 @@ const scrollToInstall = () => {
gap: 12px; gap: 12px;
} }
.nav-logo { .brand-icon {
height: 32px;
width: 32px; width: 32px;
height: 32px;
} }
.logo-text { .brand-name {
font-size: 24px; font-size: 24px;
font-weight: 800; font-weight: 800;
letter-spacing: -0.02em; letter-spacing: -0.04em;
color: #fee715; }
.nav-links {
display: flex;
align-items: center;
gap: 32px;
}
.nav-btn {
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.6);
font-weight: 600;
cursor: pointer;
transition: color 0.2s;
}
.nav-btn:hover {
color: #ffffff;
}
.btn-yellow-sm {
background: #fee715;
color: #000000;
padding: 10px 24px;
border-radius: 100px;
font-weight: 700;
border: none;
cursor: pointer;
transition: transform 0.2s;
}
.btn-yellow-sm:hover {
transform: scale(1.05);
} }
/* Hero */ /* Hero */
.hero { .hero-minimal {
position: relative; height: 90vh;
height: 100vh;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
text-align: center; text-align: center;
padding: 0 24px; padding: 0 24px;
background-image: url('/landing-bg.png');
background-size: cover;
background-position: center;
}
.hero-bg-overlay {
position: absolute;
inset: 0;
background: radial-gradient(circle at center, rgba(15, 17, 21, 0.4) 0%, #0F1115 100%);
z-index: 1;
}
.hero-content {
position: relative;
z-index: 2;
max-width: 800px;
}
.logo-box-main {
width: 120px;
height: 120px;
margin: 0 auto 32px;
background: rgba(254, 231, 21, 0.1);
border-radius: 30px;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
border: 1px solid rgba(254, 231, 21, 0.2);
backdrop-filter: blur(10px);
}
.main-logo {
width: 100%;
height: 100%;
object-fit: contain;
} }
.hero-title { .hero-title {
font-size: clamp(2.5rem, 8vw, 5rem); font-size: clamp(3.5rem, 12vw, 8rem);
font-weight: 800; font-weight: 800;
line-height: 1.1; line-height: 0.95;
letter-spacing: -0.06em;
margin-bottom: 24px; margin-bottom: 24px;
letter-spacing: -0.05em;
text-shadow: 0 10px 30px rgba(0,0,0,0.5);
} }
.hero-tagline { .hero-subtitle {
font-size: clamp(1.1rem, 3vw, 1.5rem); font-size: clamp(1.2rem, 3vw, 1.8rem);
color: rgba(255, 255, 255, 0.8); color: rgba(255, 255, 255, 0.5);
margin-bottom: 48px; max-width: 700px;
max-width: 600px; margin: 0 auto 56px;
margin-left: auto; font-weight: 400;
margin-right: auto;
} }
.hero-actions { .btn-yellow-lg {
display: flex;
gap: 16px;
justify-content: center;
flex-wrap: wrap;
}
/* Buttons */
.btn-primary-lg {
background: #fee715; background: #fee715;
color: #101820; color: #000000;
padding: 18px 40px; padding: 24px 64px;
border-radius: 16px; border-radius: 100px;
font-size: 1.25rem;
font-weight: 800; font-weight: 800;
border: none; border: none;
cursor: pointer; cursor: pointer;
display: flex; display: inline-flex;
align-items: center; align-items: center;
gap: 12px; gap: 16px;
font-size: 1.1rem; transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
} }
.btn-primary-lg:hover { .btn-yellow-lg:hover {
transform: translateY(-5px) scale(1.05); transform: translateY(-5px);
box-shadow: 0 15px 30px rgba(254, 231, 21, 0.3); box-shadow: 0 20px 40px rgba(254, 231, 21, 0.2);
}
.btn-outline-lg {
background: rgba(255, 255, 255, 0.05);
color: white;
padding: 18px 40px;
border-radius: 16px;
font-weight: 700;
border: 1px solid rgba(255, 255, 255, 0.1);
cursor: pointer;
display: flex;
align-items: center;
gap: 12px;
font-size: 1.1rem;
backdrop-filter: blur(10px);
transition: all 0.3s ease;
}
.btn-outline-lg:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.2);
}
.btn-primary-sm {
background: #fee715;
color: #101820;
padding: 10px 20px;
border-radius: 12px;
font-weight: 700;
border: none;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.3s ease;
} }
/* Features */ /* Features */
.features { .features-minimal {
padding: 100px 24px; padding: 120px 24px;
max-width: 1200px; max-width: 1100px;
margin: 0 auto; margin: 0 auto;
}
.features-grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 32px; gap: 64px;
} }
.feature-card { .feature-item {
background: rgba(28, 31, 38, 0.5); text-align: left;
padding: 48px 32px;
border-radius: 32px;
border: 1px solid rgba(255, 255, 255, 0.05);
text-align: center;
transition: transform 0.3s ease;
} }
.feature-card:hover { .feature-icon {
transform: translateY(-10px); font-size: 40px;
background: rgba(28, 31, 38, 0.8);
}
.icon-circle {
width: 80px;
height: 80px;
background: rgba(254, 231, 21, 0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 24px;
}
.icon-circle .material-icons {
font-size: 36px;
color: #fee715; color: #fee715;
margin-bottom: 24px;
} }
.feature-card h3 { .feature-item h3 {
font-size: 1.5rem; font-size: 2rem;
font-weight: 800; font-weight: 800;
margin-bottom: 16px; margin-bottom: 16px;
letter-spacing: -0.02em;
} }
.feature-card p { .feature-item p {
color: rgba(255, 255, 255, 0.6); color: rgba(255, 255, 255, 0.5);
font-size: 1.15rem;
line-height: 1.6; line-height: 1.6;
} }
/* Install Guide */ /* Install Guide */
.install-guide { .install-section {
padding: 100px 24px; padding: 160px 24px;
background: linear-gradient(to bottom, transparent, rgba(254, 231, 21, 0.03)); background: #0a0a0a;
} }
.glass-container { .install-container {
max-width: 800px; max-width: 1000px;
margin: 0 auto; margin: 0 auto;
background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 40px;
padding: 60px;
} }
.section-title { .install-title {
text-align: center; font-size: 3.5rem;
font-size: 2.5rem;
font-weight: 800; font-weight: 800;
margin-bottom: 48px; text-align: center;
margin-bottom: 80px;
letter-spacing: -0.04em;
} }
.guide-tabs { .install-grid {
display: flex; display: grid;
gap: 12px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
justify-content: center; gap: 80px;
margin-bottom: 40px;
background: rgba(0,0,0,0.2);
padding: 8px;
border-radius: 20px;
width: fit-content;
margin-left: auto;
margin-right: auto;
} }
.tab-btn { .platform-header {
padding: 12px 32px;
border-radius: 14px;
border: none;
background: transparent;
color: white;
font-weight: 700;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 8px; gap: 16px;
cursor: pointer; margin-bottom: 32px;
transition: all 0.3s ease;
} }
.tab-btn.active { .platform-header .material-icons {
background: #fee715; font-size: 32px;
color: #101820; color: #fee715;
} }
.step-list { .platform-header h3 {
display: flex; font-size: 1.5rem;
flex-direction: column; font-weight: 700;
gap: 24px;
} }
.step { .step-list-minimal {
display: flex; list-style: none;
gap: 20px; padding: 0;
align-items: flex-start; counter-reset: step-counter;
padding: 24px;
background: rgba(255, 255, 255, 0.02);
border-radius: 20px;
} }
.step-num { .step-list-minimal li {
width: 36px; counter-increment: step-counter;
height: 36px; position: relative;
background: #fee715; padding-left: 48px;
color: #101820; margin-bottom: 24px;
color: rgba(255, 255, 255, 0.6);
font-size: 1.2rem;
line-height: 1.4;
}
.step-list-minimal li::before {
content: counter(step-counter);
position: absolute;
left: 0;
top: 0;
width: 32px;
height: 32px;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 50%; border-radius: 50%;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-weight: 900;
flex-shrink: 0;
}
.step-text strong {
display: block;
font-size: 0.9rem; font-size: 0.9rem;
font-weight: 700;
color: #fee715; color: #fee715;
text-transform: uppercase;
margin-bottom: 4px;
}
.step-text p {
color: rgba(255, 255, 255, 0.8);
font-size: 1.1rem;
} }
/* Footer */ /* Footer */
.footer { .footer-minimal {
padding: 80px 24px 40px; padding: 80px 24px;
text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.05);
} }
.logo-text-footer { .footer-inner {
font-size: 32px;
font-weight: 800;
color: #fee715;
margin-bottom: 12px;
}
.footer-divider {
max-width: 1200px; max-width: 1200px;
height: 1px; margin: 0 auto;
background: rgba(255,255,255,0.05); display: flex;
margin: 40px auto; justify-content: space-between;
align-items: center;
} }
.rights { .footer-logo {
display: flex;
align-items: center;
gap: 12px;
font-weight: 700;
color: rgba(255, 255, 255, 0.4); color: rgba(255, 255, 255, 0.4);
}
.footer-icon {
width: 24px;
height: 24px;
filter: grayscale(1) opacity(0.5);
}
.footer-rights {
color: rgba(255, 255, 255, 0.3);
font-size: 0.9rem; font-size: 0.9rem;
} }
/* Animations */
.fade-slide-enter-active,
.fade-slide-leave-active {
transition: all 0.3s ease;
}
.fade-slide-enter-from {
opacity: 0;
transform: translateX(20px);
}
.fade-slide-leave-to {
opacity: 0;
transform: translateX(-20px);
}
@media (max-width: 768px) { @media (max-width: 768px) {
.hero-title { font-size: 3rem; } .hero-title { font-size: 4rem; }
.glass-container { padding: 40px 24px; } .features-grid { gap: 48px; }
.btn-primary-lg, .btn-outline-lg { width: 100%; justify-content: center; } .install-grid { gap: 64px; }
.btn-yellow-lg { width: 100%; justify-content: center; padding: 20px; }
.footer-inner { flex-direction: column; gap: 24px; text-align: center; }
} }
</style> </style>