CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Canceled after 0s
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Canceled after 0s
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Canceled after 0s
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Canceled after 0s
The editable id of the Home usps/items rows was also the row's primary key in PostgreSQL (a duplicate would fail to save; new rows needed a manual id). It is now the `key` field; migration 20260929_213538_home_row_keys adds the column and backfills it (main tables from id, version tables from _uuid). Tried on the staging pg_dump: keys backfilled, second run no-op, all 14 public pages unchanged. React keys use `key`; the transfer upgrades old bundles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
296 lines
12 KiB
TypeScript
Executable File
296 lines
12 KiB
TypeScript
Executable File
import { localePath, type Locale } from '@/lib/i18n'
|
|
import type { getHomeContent } from '@/lib/payload-content'
|
|
import { groupReferences, type PartnerView, type Relationship } from '@/lib/partner-references'
|
|
import ReferencesSection from './ReferencesSection'
|
|
import { externalLinkProps } from '@/lib/external-link'
|
|
|
|
type HomeViewProps = {
|
|
content: Awaited<ReturnType<typeof getHomeContent>>
|
|
partners: PartnerView[]
|
|
locale: Locale
|
|
}
|
|
|
|
export default function HomeView({ content: pageContent, partners, locale }: HomeViewProps) {
|
|
const contactHref = localePath(locale, 'contact')
|
|
const references = groupReferences(partners)
|
|
const refCopy = pageContent.referencesSection
|
|
const labels = refCopy.relationshipLabels
|
|
const relationshipLabel = (relationship: Relationship) =>
|
|
({
|
|
'client-reference': refCopy.clientsTitle,
|
|
'technology-partner': labels.technologyPartner,
|
|
infrastructure: labels.infrastructure,
|
|
supplier: labels.supplier,
|
|
'technology-used': labels.technologyUsed,
|
|
'professional-partner': labels.professionalPartner,
|
|
})[relationship]
|
|
return (
|
|
<div className="space-y-0">
|
|
{/* Hero Section */}
|
|
<section className="bg-gradient-hero py-20 lg:py-28 relative overflow-hidden">
|
|
{/* Background decoration */}
|
|
<div className="absolute inset-0 overflow-hidden pointer-events-none">
|
|
<div
|
|
className="absolute -top-40 -right-40 w-80 h-80 rounded-full opacity-30 animate-pulse-slow"
|
|
style={{ background: 'var(--color-primary-200)' }}
|
|
/>
|
|
<div
|
|
className="absolute -bottom-40 -left-40 w-96 h-96 rounded-full opacity-20 animate-pulse-slow"
|
|
style={{ background: 'var(--color-accent-200)', animationDelay: '1s' }}
|
|
/>
|
|
</div>
|
|
|
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center relative z-10">
|
|
<h1
|
|
className="text-4xl md:text-5xl lg:text-6xl font-bold mb-6 leading-tight animate-fade-in-up"
|
|
style={{ color: 'var(--color-foreground)' }}
|
|
>
|
|
{pageContent.hero.title}
|
|
</h1>
|
|
<p
|
|
className="text-lg md:text-xl max-w-4xl mx-auto mb-8 leading-relaxed animate-fade-in-up"
|
|
style={{ color: 'var(--color-foreground-muted)', animationDelay: '100ms' }}
|
|
>
|
|
{pageContent.hero.description}
|
|
</p>
|
|
|
|
{pageContent.hero.trustBullets && (
|
|
<div
|
|
className="flex flex-wrap justify-center gap-4 md:gap-8 mb-10 text-sm font-medium animate-fade-in-up"
|
|
style={{ color: 'var(--color-foreground-secondary)', animationDelay: '150ms' }}
|
|
>
|
|
{pageContent.hero.trustBullets.map((bullet: string, i: number) => (
|
|
<div key={i} className="flex items-center gap-2">
|
|
<span style={{ color: 'var(--color-primary-500)' }}>✓</span>
|
|
{bullet}
|
|
</div>
|
|
))}
|
|
</div>
|
|
)}
|
|
<div
|
|
className="flex flex-col sm:flex-row gap-4 justify-center items-center animate-fade-in-up"
|
|
style={{ animationDelay: '200ms' }}
|
|
>
|
|
<a
|
|
href={pageContent.hero.cta.primary.href}
|
|
{...externalLinkProps(pageContent.hero.cta.primary.href)}
|
|
className="btn btn-primary text-lg px-8 py-4 group"
|
|
>
|
|
<svg
|
|
className="w-5 h-5 transition-transform duration-200 group-hover:scale-110"
|
|
fill="none"
|
|
stroke="currentColor"
|
|
viewBox="0 0 24 24"
|
|
>
|
|
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10" />
|
|
</svg>
|
|
{pageContent.hero.cta.primary.text}
|
|
</a>
|
|
{pageContent.hero.cta.secondary && (
|
|
<a
|
|
href={pageContent.hero.cta.secondary.href}
|
|
{...externalLinkProps(pageContent.hero.cta.secondary.href)}
|
|
className="btn btn-secondary text-lg px-8 py-4"
|
|
>
|
|
{pageContent.hero.cta.secondary.text}
|
|
</a>
|
|
)}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
{/* USP Section */}
|
|
<section
|
|
className="py-20"
|
|
style={{ background: 'var(--color-background-secondary)' }}
|
|
>
|
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
|
<div className="text-center mb-12">
|
|
<h2
|
|
className="text-3xl md:text-4xl font-bold mb-4"
|
|
style={{ color: 'var(--color-foreground)' }}
|
|
>
|
|
{pageContent.about.title}
|
|
</h2>
|
|
</div>
|
|
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 stagger-children">
|
|
{(pageContent.about.usps ?? []).map((usp, index) => (
|
|
<div
|
|
key={usp.key}
|
|
className="group text-center p-6 rounded-xl transition-all duration-300 hover-lift animate-fade-in-up"
|
|
style={{
|
|
background: 'var(--color-background)',
|
|
border: '1px solid var(--color-border)',
|
|
animationDelay: `${index * 100}ms`
|
|
}}
|
|
>
|
|
<div
|
|
className="icon-container icon-container-lg mx-auto mb-4"
|
|
>
|
|
<span className="text-2xl">{usp.icon}</span>
|
|
</div>
|
|
<h3
|
|
className="text-lg font-semibold mb-2 transition-colors duration-200"
|
|
style={{ color: 'var(--color-foreground)' }}
|
|
>
|
|
{usp.title}
|
|
</h3>
|
|
<p style={{ color: 'var(--color-foreground-muted)' }}>
|
|
{usp.description}
|
|
</p>
|
|
</div>
|
|
))}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
{/* Services Section */}
|
|
<section
|
|
className="py-20"
|
|
style={{ background: 'var(--color-background)' }}
|
|
>
|
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
|
<div className="text-center mb-12">
|
|
<h2
|
|
className="text-3xl md:text-4xl font-bold mb-4"
|
|
style={{ color: 'var(--color-foreground)' }}
|
|
>
|
|
{pageContent.services.title}
|
|
</h2>
|
|
<p
|
|
className="text-lg max-w-3xl mx-auto"
|
|
style={{ color: 'var(--color-foreground-muted)' }}
|
|
>
|
|
{pageContent.services.subtitle}
|
|
</p>
|
|
</div>
|
|
<div className="grid grid-cols-1 md:grid-cols-3 gap-8 max-w-5xl mx-auto">
|
|
{pageContent.services.items.map((service, index) => (
|
|
<div
|
|
key={service.key}
|
|
className="group card hover-lift"
|
|
style={{ animationDelay: `${index * 100}ms` }}
|
|
>
|
|
<div className="icon-container mb-4">
|
|
<span className="text-xl">{service.icon}</span>
|
|
</div>
|
|
<h3
|
|
className="text-xl font-semibold mb-3 transition-colors duration-200 group-hover:text-blue-600"
|
|
style={{ color: 'var(--color-foreground)' }}
|
|
>
|
|
{service.title}
|
|
</h3>
|
|
<p
|
|
className="leading-relaxed mb-4"
|
|
style={{ color: 'var(--color-foreground-muted)' }}
|
|
>
|
|
{service.description}
|
|
</p>
|
|
<div className="mb-4">
|
|
<h4
|
|
className="text-sm font-semibold mb-2"
|
|
style={{ color: 'var(--color-foreground-secondary)' }}
|
|
>
|
|
{pageContent.serviceFeatures.title}
|
|
</h4>
|
|
<ul
|
|
className="text-sm space-y-1.5"
|
|
style={{ color: 'var(--color-foreground-muted)' }}
|
|
>
|
|
{service.features.map((feature, idx) => (
|
|
<li key={idx} className="flex items-start group/item">
|
|
<span
|
|
className="mr-2 transition-transform duration-200 group-hover/item:scale-125"
|
|
style={{ color: 'var(--color-success-500)' }}
|
|
>
|
|
✓
|
|
</span>
|
|
{feature}
|
|
</li>
|
|
))}
|
|
</ul>
|
|
</div>
|
|
<a
|
|
href={contactHref}
|
|
className="inline-flex items-center font-medium transition-all duration-200 group/link"
|
|
style={{ color: 'var(--color-primary-600)' }}
|
|
>
|
|
{service.ctaText}
|
|
<svg
|
|
className="w-4 h-4 ml-1 transition-transform duration-200 group-hover/link:translate-x-1"
|
|
fill="none"
|
|
stroke="currentColor"
|
|
viewBox="0 0 24 24"
|
|
>
|
|
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
|
|
</svg>
|
|
</a>
|
|
</div>
|
|
))}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
{/* References (MITHOME-131): clients and partners are separate blocks. */}
|
|
<ReferencesSection title={refCopy.clientsTitle} subtitle={refCopy.clientsSubtitle} entries={references.clients} />
|
|
<ReferencesSection
|
|
title={refCopy.partnersTitle}
|
|
subtitle={refCopy.partnersSubtitle}
|
|
entries={references.partners}
|
|
relationshipLabel={relationshipLabel}
|
|
/>
|
|
|
|
{/* CTA Section */}
|
|
<section
|
|
className="py-20 relative overflow-hidden"
|
|
style={{ background: 'var(--color-foreground)' }}
|
|
>
|
|
{/* Animated background elements */}
|
|
<div className="absolute inset-0 overflow-hidden pointer-events-none opacity-10">
|
|
<div
|
|
className="absolute top-10 left-10 w-32 h-32 rounded-full animate-float"
|
|
style={{ background: 'var(--color-primary-500)' }}
|
|
/>
|
|
<div
|
|
className="absolute bottom-10 right-20 w-24 h-24 rounded-full animate-float"
|
|
style={{ background: 'var(--color-accent-500)', animationDelay: '0.5s' }}
|
|
/>
|
|
<div
|
|
className="absolute top-1/2 right-1/4 w-16 h-16 rounded-full animate-float"
|
|
style={{ background: 'var(--color-primary-400)', animationDelay: '1s' }}
|
|
/>
|
|
</div>
|
|
|
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center relative z-10">
|
|
<h2
|
|
className="text-3xl md:text-4xl font-bold mb-4"
|
|
style={{ color: 'var(--color-background)' }}
|
|
>
|
|
{pageContent.cta.title}
|
|
</h2>
|
|
<p
|
|
className="text-xl mb-8 max-w-2xl mx-auto"
|
|
style={{ color: 'var(--color-background)', opacity: 0.8 }}
|
|
>
|
|
{pageContent.cta.subtitle}
|
|
</p>
|
|
<a
|
|
href={contactHref}
|
|
className="btn btn-primary text-lg px-8 py-4 hover-glow"
|
|
>
|
|
{pageContent.cta.button}
|
|
<svg
|
|
className="w-5 h-5 ml-2"
|
|
fill="none"
|
|
stroke="currentColor"
|
|
viewBox="0 0 24 24"
|
|
>
|
|
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M17 8l4 4m0 0l-4 4m4-4H3" />
|
|
</svg>
|
|
</a>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
)
|
|
}
|