feat: Vollständige One-Page Landingpage

Neue Sektionen:
- Hero mit animierten Gradient-Orbs
- Features (6 Cards)
- How It Works (3 Steps)
- Pricing (3 Pläne)
- Testimonials
- FAQ (Accordion)
- CTA Section
- Footer mit Links & Social

Alle Sektionen mit Smooth-Scroll Navigation
This commit is contained in:
2026-02-11 09:11:12 +00:00
parent a26fe4c487
commit 0b21a7a1c1
4 changed files with 780 additions and 110 deletions

View File

@@ -8,6 +8,21 @@ const isVisible = ref(false)
const mouseX = ref(0)
const mouseY = ref(0)
const pricingPlans = [
{ key: 'starter', price: '0', popular: false },
{ key: 'pro', price: '49', popular: true },
{ key: 'enterprise', price: '199', popular: false }
]
const testimonials = [
{ name: 'Sarah M.', role: 'CEO, TechStart', avatar: '👩‍💼' },
{ name: 'Marcus K.', role: 'CTO, DataFlow', avatar: '👨‍💻' },
{ name: 'Lisa W.', role: 'Product Lead, ScaleUp', avatar: '👩‍🔬' }
]
const faqs = ['faq1', 'faq2', 'faq3', 'faq4']
const openFaq = ref(null)
onMounted(() => {
setTimeout(() => isVisible.value = true, 100)
@@ -16,12 +31,16 @@ onMounted(() => {
mouseY.value = (e.clientY / window.innerHeight - 0.5) * 20
})
})
function toggleFaq(index) {
openFaq.value = openFaq.value === index ? null : index
}
</script>
<template>
<div class="landing-page">
<!-- Hero Section -->
<section class="hero">
<section id="hero" class="hero">
<div class="hero-bg">
<div class="gradient-orb orb-1"></div>
<div class="gradient-orb orb-2"></div>
@@ -65,48 +84,211 @@ onMounted(() => {
</div>
</div>
<!-- Floating Elements -->
<div class="floating-elements" :style="{ transform: `translate(${mouseX}px, ${mouseY}px)` }">
<div class="float-card card-1">
<i class="pi pi-bolt"></i>
<div class="float-card card-1"><i class="pi pi-bolt"></i></div>
<div class="float-card card-2"><i class="pi pi-code"></i></div>
<div class="float-card card-3"><i class="pi pi-cog"></i></div>
</div>
<a href="#features" class="scroll-indicator">
<i class="pi pi-chevron-down"></i>
</a>
</section>
<!-- Features Section -->
<section id="features" class="features">
<div class="container">
<div class="section-header">
<span class="section-tag">{{ t('features.tag') }}</span>
<h2 class="section-title">{{ t('features.title') }}</h2>
<p class="section-subtitle">{{ t('features.subtitle') }}</p>
</div>
<div class="float-card card-2">
<i class="pi pi-code"></i>
</div>
<div class="float-card card-3">
<i class="pi pi-cog"></i>
<div class="features-grid">
<div class="feature-card" v-for="(feature, i) in ['speed', 'ai', 'security', 'scale', 'integration', 'analytics']" :key="feature">
<div class="feature-icon">
<i :class="`pi pi-${['bolt', 'sparkles', 'shield', 'chart-line', 'link', 'chart-bar'][i]}`"></i>
</div>
<h3>{{ t(`features.${feature}.title`) }}</h3>
<p>{{ t(`features.${feature}.desc`) }}</p>
<div class="feature-glow"></div>
</div>
</div>
</div>
</section>
<!-- Features Section -->
<section class="features">
<div class="section-header">
<span class="section-tag">{{ t('features.tag') }}</span>
<h2 class="section-title">{{ t('features.title') }}</h2>
</div>
<div class="features-grid">
<div class="feature-card" v-for="(feature, i) in ['speed', 'ai', 'security', 'scale']" :key="feature">
<div class="feature-icon">
<i :class="`pi pi-${['bolt', 'sparkles', 'shield', 'chart-line'][i]}`"></i>
<!-- How It Works Section -->
<section id="how-it-works" class="how-it-works">
<div class="container">
<div class="section-header">
<span class="section-tag">{{ t('howItWorks.tag') }}</span>
<h2 class="section-title">{{ t('howItWorks.title') }}</h2>
</div>
<div class="steps-container">
<div class="step" v-for="step in [1, 2, 3]" :key="step">
<div class="step-number">{{ step }}</div>
<h3>{{ t(`howItWorks.step${step}.title`) }}</h3>
<p>{{ t(`howItWorks.step${step}.desc`) }}</p>
</div>
<div class="steps-line"></div>
</div>
</div>
</section>
<!-- Pricing Section -->
<section id="pricing" class="pricing">
<div class="container">
<div class="section-header">
<span class="section-tag">{{ t('pricing.tag') }}</span>
<h2 class="section-title">{{ t('pricing.title') }}</h2>
<p class="section-subtitle">{{ t('pricing.subtitle') }}</p>
</div>
<div class="pricing-grid">
<div
v-for="plan in pricingPlans"
:key="plan.key"
class="pricing-card"
:class="{ popular: plan.popular }"
>
<div class="popular-badge" v-if="plan.popular">{{ t('pricing.popular') }}</div>
<h3>{{ t(`pricing.${plan.key}.name`) }}</h3>
<div class="price">
<span class="currency"></span>
<span class="amount">{{ plan.price }}</span>
<span class="period">/{{ t('pricing.month') }}</span>
</div>
<p class="plan-desc">{{ t(`pricing.${plan.key}.desc`) }}</p>
<ul class="features-list">
<li v-for="i in 4" :key="i">
<i class="pi pi-check"></i>
{{ t(`pricing.${plan.key}.feature${i}`) }}
</li>
</ul>
<Button
:label="t('pricing.cta')"
:class="plan.popular ? 'btn-primary' : 'btn-ghost'"
:outlined="!plan.popular"
style="width: 100%"
/>
</div>
</div>
</div>
</section>
<!-- Testimonials Section -->
<section id="testimonials" class="testimonials">
<div class="container">
<div class="section-header">
<span class="section-tag">{{ t('testimonials.tag') }}</span>
<h2 class="section-title">{{ t('testimonials.title') }}</h2>
</div>
<div class="testimonials-grid">
<div class="testimonial-card" v-for="(person, i) in testimonials" :key="i">
<div class="quote-icon">"</div>
<p class="quote">{{ t(`testimonials.quote${i + 1}`) }}</p>
<div class="author">
<span class="avatar">{{ person.avatar }}</span>
<div>
<strong>{{ person.name }}</strong>
<span>{{ person.role }}</span>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- FAQ Section -->
<section id="faq" class="faq">
<div class="container">
<div class="section-header">
<span class="section-tag">FAQ</span>
<h2 class="section-title">{{ t('faq.title') }}</h2>
</div>
<div class="faq-list">
<div
v-for="(faq, i) in faqs"
:key="i"
class="faq-item"
:class="{ open: openFaq === i }"
@click="toggleFaq(i)"
>
<div class="faq-question">
<span>{{ t(`faq.${faq}.q`) }}</span>
<i :class="openFaq === i ? 'pi pi-minus' : 'pi pi-plus'"></i>
</div>
<div class="faq-answer" v-show="openFaq === i">
{{ t(`faq.${faq}.a`) }}
</div>
</div>
<h3>{{ t(`features.${feature}.title`) }}</h3>
<p>{{ t(`features.${feature}.desc`) }}</p>
<div class="feature-glow"></div>
</div>
</div>
</section>
<!-- CTA Section -->
<section class="cta-section">
<section id="cta" class="cta-section">
<div class="cta-content">
<h2>{{ t('cta.title') }}</h2>
<p>{{ t('cta.subtitle') }}</p>
<Button :label="t('cta.button')" class="btn-cta" icon="pi pi-arrow-right" iconPos="right" />
<div class="cta-buttons">
<Button :label="t('cta.button')" class="btn-cta" icon="pi pi-arrow-right" iconPos="right" />
<Button :label="t('cta.secondary')" class="btn-ghost-light" outlined />
</div>
</div>
<div class="cta-glow"></div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="container">
<div class="footer-grid">
<div class="footer-brand">
<div class="brand">
<span class="brand-icon">⚡</span>
<span>FluxKit</span>
</div>
<p>{{ t('footer.tagline') }}</p>
<div class="social-links">
<a href="#"><i class="pi pi-twitter"></i></a>
<a href="#"><i class="pi pi-github"></i></a>
<a href="#"><i class="pi pi-linkedin"></i></a>
<a href="#"><i class="pi pi-discord"></i></a>
</div>
</div>
<div class="footer-links">
<h4>{{ t('footer.product') }}</h4>
<a href="#features">Features</a>
<a href="#pricing">Pricing</a>
<a href="#">Changelog</a>
<a href="#">Roadmap</a>
</div>
<div class="footer-links">
<h4>{{ t('footer.company') }}</h4>
<a href="#">About</a>
<a href="#">Blog</a>
<a href="#">Careers</a>
<a href="#">Contact</a>
</div>
<div class="footer-links">
<h4>{{ t('footer.legal') }}</h4>
<a href="#">Privacy</a>
<a href="#">Terms</a>
<a href="#">Imprint</a>
</div>
</div>
<div class="footer-bottom">
<p>© 2026 FluxKit. {{ t('footer.rights') }}</p>
</div>
</div>
</footer>
</div>
</template>
@@ -116,6 +298,12 @@ onMounted(() => {
overflow-x: hidden;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
/* Hero Section */
.hero {
position: relative;
@@ -148,7 +336,6 @@ onMounted(() => {
background: linear-gradient(135deg, #6366f1, #8b5cf6);
top: -200px;
right: -100px;
animation-delay: 0s;
}
.orb-2 {
@@ -240,9 +427,7 @@ onMounted(() => {
color: white;
}
.title-line {
display: block;
}
.title-line { display: block; }
.gradient-text {
background: linear-gradient(135deg, #6366f1, #06b6d4, #f43f5e);
@@ -307,29 +492,11 @@ onMounted(() => {
flex-wrap: wrap;
}
.stat-item {
text-align: center;
}
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 700; color: white; }
.stat-label { font-size: 0.875rem; color: #64748b; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }
.stat-number {
display: block;
font-size: 2rem;
font-weight: 700;
color: white;
}
.stat-label {
font-size: 0.875rem;
color: #64748b;
}
.stat-divider {
width: 1px;
height: 40px;
background: rgba(255,255,255,0.1);
}
/* Floating Elements */
.floating-elements {
position: absolute;
inset: 0;
@@ -354,38 +521,33 @@ onMounted(() => {
animation: float-card 6s ease-in-out infinite;
}
.card-1 {
top: 20%;
left: 10%;
animation-delay: 0s;
color: #fbbf24;
}
.card-2 {
top: 60%;
right: 15%;
animation-delay: -2s;
color: #06b6d4;
}
.card-3 {
bottom: 20%;
left: 20%;
animation-delay: -4s;
color: #f43f5e;
}
.card-1 { top: 20%; left: 10%; color: #fbbf24; }
.card-2 { top: 60%; right: 15%; animation-delay: -2s; color: #06b6d4; }
.card-3 { bottom: 20%; left: 20%; animation-delay: -4s; color: #f43f5e; }
@keyframes float-card {
0%, 100% { transform: translateY(0) rotate(0deg); }
50% { transform: translateY(-20px) rotate(5deg); }
}
/* Features Section */
.features {
padding: 8rem 2rem;
background: linear-gradient(180deg, #0a0a0a 0%, #111827 100%);
.scroll-indicator {
position: absolute;
bottom: 2rem;
left: 50%;
transform: translateX(-50%);
color: rgba(255,255,255,0.5);
font-size: 1.5rem;
animation: bounce 2s ease-in-out infinite;
z-index: 10;
text-decoration: none;
}
@keyframes bounce {
0%, 100% { transform: translateX(-50%) translateY(0); }
50% { transform: translateX(-50%) translateY(10px); }
}
/* Section Styles */
.section-header {
text-align: center;
margin-bottom: 4rem;
@@ -406,14 +568,26 @@ onMounted(() => {
font-size: clamp(2rem, 5vw, 3rem);
font-weight: 700;
color: white;
margin-bottom: 1rem;
}
.section-subtitle {
color: #94a3b8;
font-size: 1.125rem;
max-width: 600px;
margin: 0 auto;
}
/* Features */
.features {
padding: 8rem 2rem;
background: linear-gradient(180deg, #0a0a0a 0%, #111827 100%);
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 2rem;
max-width: 1200px;
margin: 0 auto;
}
.feature-card {
@@ -432,9 +606,7 @@ onMounted(() => {
background: rgba(99, 102, 241, 0.05);
}
.feature-card:hover .feature-glow {
opacity: 1;
}
.feature-card:hover .feature-glow { opacity: 1; }
.feature-glow {
position: absolute;
@@ -473,6 +645,240 @@ onMounted(() => {
line-height: 1.6;
}
/* How It Works */
.how-it-works {
padding: 8rem 2rem;
background: #0a0a0a;
}
.steps-container {
display: flex;
justify-content: center;
gap: 4rem;
position: relative;
flex-wrap: wrap;
}
.step {
text-align: center;
max-width: 280px;
position: relative;
z-index: 1;
}
.step-number {
width: 60px;
height: 60px;
background: linear-gradient(135deg, #6366f1, #8b5cf6);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
font-weight: 700;
color: white;
margin: 0 auto 1.5rem;
}
.step h3 {
color: white;
font-size: 1.25rem;
margin-bottom: 0.5rem;
}
.step p {
color: #94a3b8;
}
.steps-line {
position: absolute;
top: 30px;
left: 20%;
right: 20%;
height: 2px;
background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
z-index: 0;
}
/* Pricing */
.pricing {
padding: 8rem 2rem;
background: linear-gradient(180deg, #111827 0%, #0a0a0a 100%);
}
.pricing-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
max-width: 1000px;
margin: 0 auto;
}
.pricing-card {
position: relative;
padding: 2.5rem;
background: rgba(255,255,255,0.02);
border: 1px solid rgba(255,255,255,0.05);
border-radius: 24px;
transition: all 0.3s ease;
}
.pricing-card.popular {
border-color: #6366f1;
background: rgba(99, 102, 241, 0.05);
transform: scale(1.05);
}
.popular-badge {
position: absolute;
top: -12px;
left: 50%;
transform: translateX(-50%);
padding: 0.5rem 1rem;
background: linear-gradient(135deg, #6366f1, #8b5cf6);
border-radius: 100px;
font-size: 0.75rem;
font-weight: 600;
color: white;
}
.pricing-card h3 {
color: white;
font-size: 1.5rem;
margin-bottom: 1rem;
}
.price {
margin-bottom: 1rem;
}
.currency {
font-size: 1.5rem;
color: #94a3b8;
vertical-align: top;
}
.amount {
font-size: 4rem;
font-weight: 700;
color: white;
}
.period {
color: #64748b;
}
.plan-desc {
color: #94a3b8;
margin-bottom: 2rem;
}
.features-list {
list-style: none;
margin-bottom: 2rem;
}
.features-list li {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem 0;
color: #cbd5e1;
border-bottom: 1px solid rgba(255,255,255,0.05);
}
.features-list li i {
color: #22c55e;
}
/* Testimonials */
.testimonials {
padding: 8rem 2rem;
background: #0a0a0a;
}
.testimonials-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.testimonial-card {
padding: 2rem;
background: rgba(255,255,255,0.02);
border: 1px solid rgba(255,255,255,0.05);
border-radius: 24px;
}
.quote-icon {
font-size: 4rem;
line-height: 1;
color: #6366f1;
opacity: 0.5;
}
.quote {
color: #e2e8f0;
font-size: 1.125rem;
line-height: 1.7;
margin-bottom: 1.5rem;
}
.author {
display: flex;
align-items: center;
gap: 1rem;
}
.avatar {
font-size: 2rem;
}
.author strong {
display: block;
color: white;
}
.author span {
color: #64748b;
font-size: 0.875rem;
}
/* FAQ */
.faq {
padding: 8rem 2rem;
background: linear-gradient(180deg, #0a0a0a 0%, #111827 100%);
}
.faq-list {
max-width: 700px;
margin: 0 auto;
}
.faq-item {
border-bottom: 1px solid rgba(255,255,255,0.1);
cursor: pointer;
}
.faq-question {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 0;
color: white;
font-weight: 500;
}
.faq-question i {
color: #6366f1;
}
.faq-answer {
padding-bottom: 1.5rem;
color: #94a3b8;
line-height: 1.7;
}
/* CTA Section */
.cta-section {
position: relative;
@@ -502,12 +908,18 @@ onMounted(() => {
margin-bottom: 2rem;
}
.cta-buttons {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}
:deep(.btn-cta) {
background: linear-gradient(135deg, #f43f5e, #ec4899) !important;
border: none !important;
padding: 1rem 2.5rem !important;
font-weight: 600 !important;
font-size: 1.1rem !important;
}
:deep(.btn-cta:hover) {
@@ -515,6 +927,12 @@ onMounted(() => {
box-shadow: 0 20px 40px -10px rgba(244, 63, 94, 0.5);
}
:deep(.btn-ghost-light) {
border-color: rgba(255,255,255,0.3) !important;
color: white !important;
padding: 1rem 2rem !important;
}
.cta-glow {
position: absolute;
top: 50%;
@@ -526,18 +944,96 @@ onMounted(() => {
pointer-events: none;
}
/* Mobile Adjustments */
/* Footer */
.footer {
padding: 4rem 2rem 2rem;
background: #0a0a0a;
border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr;
gap: 3rem;
margin-bottom: 3rem;
}
.footer-brand .brand {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 1.5rem;
font-weight: 700;
color: white;
margin-bottom: 1rem;
}
.footer-brand p {
color: #64748b;
margin-bottom: 1.5rem;
}
.social-links {
display: flex;
gap: 1rem;
}
.social-links a {
width: 40px;
height: 40px;
background: rgba(255,255,255,0.05);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
color: #94a3b8;
transition: all 0.2s ease;
}
.social-links a:hover {
background: #6366f1;
color: white;
}
.footer-links h4 {
color: white;
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 1.5rem;
}
.footer-links a {
display: block;
color: #64748b;
text-decoration: none;
padding: 0.5rem 0;
transition: color 0.2s ease;
}
.footer-links a:hover {
color: white;
}
.footer-bottom {
padding-top: 2rem;
border-top: 1px solid rgba(255,255,255,0.05);
text-align: center;
color: #64748b;
}
/* Mobile */
@media (max-width: 768px) {
.hero-stats {
gap: 1.5rem;
}
.stat-divider {
display: none;
}
.floating-elements {
display: none;
}
.hero-stats { gap: 1.5rem; }
.stat-divider { display: none; }
.floating-elements { display: none; }
.steps-container { flex-direction: column; gap: 2rem; }
.steps-line { display: none; }
.pricing-card.popular { transform: none; }
.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
.footer-grid { grid-template-columns: 1fr; }
}
</style>