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