391 lines
11 KiB
TypeScript
391 lines
11 KiB
TypeScript
import Image from "next/image";
|
|
import Link from "next/link";
|
|
import {
|
|
ArrowRight,
|
|
ArrowUpRight,
|
|
Check,
|
|
ChevronDown,
|
|
Headphones,
|
|
MapPin,
|
|
Server,
|
|
ShieldCheck,
|
|
X,
|
|
} from "lucide-react";
|
|
import {
|
|
comparisonRows,
|
|
faqItems,
|
|
labVersions,
|
|
landingCopy,
|
|
solutionModules,
|
|
tools,
|
|
trustItems,
|
|
type LabVariant,
|
|
} from "./content";
|
|
import styles from "./lab.module.css";
|
|
|
|
export function cx(...classes: Array<string | false | null | undefined>) {
|
|
return classes.filter(Boolean).join(" ");
|
|
}
|
|
|
|
export function LabBar({ active }: { active?: LabVariant }) {
|
|
return (
|
|
<aside className={styles.labBar} aria-label="Temporäre Landingpage-Versionen">
|
|
<Link href="/landingpage-lab-muss-geloescht-werden" className={styles.labWarning}>
|
|
<span className={styles.warningDot} aria-hidden />
|
|
TEMP · MUSS GELÖSCHT WERDEN
|
|
</Link>
|
|
<nav className={styles.labNav} aria-label="Version wechseln">
|
|
{labVersions.map((version) => (
|
|
<Link
|
|
key={version.slug}
|
|
href={`/landingpage-lab-muss-geloescht-werden/${version.slug}`}
|
|
className={cx(styles.labNavLink, active === version.slug && styles.labNavLinkActive)}
|
|
aria-current={active === version.slug ? "page" : undefined}
|
|
>
|
|
<span>{version.index}</span>
|
|
{version.name}
|
|
</Link>
|
|
))}
|
|
</nav>
|
|
</aside>
|
|
);
|
|
}
|
|
|
|
export function HeroCopy({
|
|
kicker,
|
|
compact = false,
|
|
}: {
|
|
kicker?: string;
|
|
compact?: boolean;
|
|
}) {
|
|
return (
|
|
<div className={cx(styles.heroCopy, compact && styles.heroCopyCompact)} data-hero-copy>
|
|
<div className={styles.heroEyebrow} data-hero-item>
|
|
<span className={styles.eyebrowSignal} aria-hidden />
|
|
{kicker ?? landingCopy.hero.eyebrow}
|
|
</div>
|
|
<h1 className={styles.heroTitle} data-hero-item>
|
|
Neue Software? Brauchst du nicht.
|
|
<br />
|
|
HiveGrid <span>verbindet</span>, was du schon hast.
|
|
</h1>
|
|
<p className={styles.heroBody} data-hero-item>
|
|
{landingCopy.hero.body}
|
|
</p>
|
|
<div className={styles.heroActions} data-hero-item>
|
|
<Link href="/waitlist" className={styles.primaryButton}>
|
|
Auf die Warteliste
|
|
<ArrowRight size={17} aria-hidden />
|
|
</Link>
|
|
<Link href="/kunden" className={styles.secondaryButtonDark}>
|
|
Für wen ist HiveGrid?
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export function SectionHeading({
|
|
eyebrow,
|
|
children,
|
|
body,
|
|
dark = false,
|
|
align = "left",
|
|
}: {
|
|
eyebrow: string;
|
|
children: React.ReactNode;
|
|
body?: string;
|
|
dark?: boolean;
|
|
align?: "left" | "center";
|
|
}) {
|
|
return (
|
|
<header
|
|
className={cx(
|
|
styles.sectionHeading,
|
|
dark && styles.sectionHeadingDark,
|
|
align === "center" && styles.sectionHeadingCenter
|
|
)}
|
|
data-reveal="up"
|
|
>
|
|
<span className={styles.sectionEyebrow}>{eyebrow}</span>
|
|
<h2>{children}</h2>
|
|
{body ? <p>{body}</p> : null}
|
|
</header>
|
|
);
|
|
}
|
|
|
|
export function IntegrationsTitle({ dark = false, align = "left" }: { dark?: boolean; align?: "left" | "center" }) {
|
|
return (
|
|
<SectionHeading
|
|
eyebrow={landingCopy.integrations.eyebrow}
|
|
body={landingCopy.integrations.body}
|
|
dark={dark}
|
|
align={align}
|
|
>
|
|
{landingCopy.integrations.titleBeforeAccent} <span>{landingCopy.integrations.titleAccent}</span>
|
|
</SectionHeading>
|
|
);
|
|
}
|
|
|
|
export function SolutionsTitle({ dark = false, align = "left" }: { dark?: boolean; align?: "left" | "center" }) {
|
|
return (
|
|
<SectionHeading
|
|
eyebrow={landingCopy.solutions.eyebrow}
|
|
body={landingCopy.solutions.body}
|
|
dark={dark}
|
|
align={align}
|
|
>
|
|
{landingCopy.solutions.title}
|
|
</SectionHeading>
|
|
);
|
|
}
|
|
|
|
export function ToolChip({ index, small = false }: { index: number; small?: boolean }) {
|
|
const tool = tools[index % tools.length];
|
|
return (
|
|
<div className={cx(styles.toolChip, small && styles.toolChipSmall)} data-tool-chip>
|
|
<span className={styles.toolIcon}>
|
|
<Image src={tool.asset} alt="" width={32} height={32} sizes="32px" />
|
|
</span>
|
|
<span>{tool.name}</span>
|
|
<span className={styles.toolStatus} aria-label="Verbunden" />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export function ProductScreenshot({
|
|
moduleIndex,
|
|
priority = false,
|
|
}: {
|
|
moduleIndex: number;
|
|
priority?: boolean;
|
|
}) {
|
|
const solution = solutionModules[moduleIndex];
|
|
return (
|
|
<div className={styles.productScreenshot}>
|
|
<div className={styles.productTopbar}>
|
|
<span className={styles.productDots} aria-hidden>
|
|
<i />
|
|
<i />
|
|
<i />
|
|
</span>
|
|
<span>{solution.title}</span>
|
|
<span className={styles.productLive}>{priority ? "LIVE" : "VORSCHAU"}</span>
|
|
</div>
|
|
<div className={styles.productImage}>
|
|
<Image
|
|
src={solution.screenshot}
|
|
alt={`${solution.title} in HiveGrid`}
|
|
fill
|
|
sizes="(max-width: 800px) 92vw, 720px"
|
|
priority={priority}
|
|
/>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export function SolutionCard({
|
|
index,
|
|
visual = true,
|
|
}: {
|
|
index: number;
|
|
visual?: boolean;
|
|
}) {
|
|
const solution = solutionModules[index];
|
|
return (
|
|
<article className={styles.solutionCard} data-reveal={index % 2 === 0 ? "left" : "right"}>
|
|
<div className={styles.solutionMeta}>
|
|
<span>0{index + 1}</span>
|
|
<span>{solution.metric}</span>
|
|
</div>
|
|
<div className={styles.solutionCopy}>
|
|
<h3>{solution.title}</h3>
|
|
<p>{solution.body}</p>
|
|
{solution.href ? (
|
|
<Link href={solution.href} className={styles.textLink}>
|
|
Bereich ansehen <ArrowUpRight size={16} aria-hidden />
|
|
</Link>
|
|
) : null}
|
|
</div>
|
|
{visual ? <ProductScreenshot moduleIndex={index} /> : null}
|
|
</article>
|
|
);
|
|
}
|
|
|
|
export function CustomerHeading() {
|
|
return (
|
|
<h2 className={styles.customerTitle}>
|
|
{landingCopy.customer.titleBeforeAccent} <span>{landingCopy.customer.titleAccent}</span>{" "}
|
|
{landingCopy.customer.titleAfterAccent}
|
|
</h2>
|
|
);
|
|
}
|
|
|
|
export function StoryText({ compact = false }: { compact?: boolean }) {
|
|
return (
|
|
<div className={cx(styles.storyText, compact && styles.storyTextCompact)} data-reveal="up">
|
|
<span className={styles.storyEyebrow}>{landingCopy.story.eyebrow}</span>
|
|
<h2>{landingCopy.story.title}</h2>
|
|
<div className={styles.storyParagraphs}>
|
|
{landingCopy.story.paragraphs.map((paragraph, index) => (
|
|
<p key={paragraph}>
|
|
{index === 0 ? <strong>Ich bin Noah Geerkens.</strong> : null}
|
|
{index === 0 ? paragraph.replace("Ich bin Noah Geerkens.", "") : paragraph}
|
|
</p>
|
|
))}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export function NoahPortrait({ wide = false }: { wide?: boolean }) {
|
|
return (
|
|
<figure className={cx(styles.noahPortrait, wide && styles.noahPortraitWide)} data-reveal="scale">
|
|
<Image
|
|
src="/images/team/noah.webp"
|
|
alt="Noah Geerkens, Mitgründer und Handwerksmeister"
|
|
fill
|
|
sizes={wide ? "(max-width: 800px) 92vw, 960px" : "(max-width: 800px) 92vw, 520px"}
|
|
/>
|
|
<figcaption>
|
|
<strong>Noah Geerkens</strong>
|
|
<span>Mitgründer & Handwerksmeister</span>
|
|
</figcaption>
|
|
</figure>
|
|
);
|
|
}
|
|
|
|
export function ComparisonTitle({ dark = false, align = "center" }: { dark?: boolean; align?: "left" | "center" }) {
|
|
return (
|
|
<SectionHeading eyebrow={landingCopy.comparison.eyebrow} dark={dark} align={align}>
|
|
{landingCopy.comparison.titleBefore} <em>{landingCopy.comparison.versus}</em>{" "}
|
|
{landingCopy.comparison.titleAfter}
|
|
</SectionHeading>
|
|
);
|
|
}
|
|
|
|
export function ComparisonGrid() {
|
|
return (
|
|
<div className={styles.comparisonGrid} data-stagger>
|
|
<article className={styles.comparisonBad}>
|
|
<div className={styles.comparisonColumnTitle}>Andere Lösungen</div>
|
|
<ul>
|
|
{comparisonRows.map(([bad]) => (
|
|
<li key={bad}>
|
|
<X size={18} aria-hidden />
|
|
<span>{bad}</span>
|
|
</li>
|
|
))}
|
|
</ul>
|
|
</article>
|
|
<article className={styles.comparisonGood}>
|
|
<div className={styles.comparisonColumnTitle}>HiveGrid</div>
|
|
<ul>
|
|
{comparisonRows.map(([, good]) => (
|
|
<li key={good}>
|
|
<Check size={18} aria-hidden />
|
|
<span>{good}</span>
|
|
</li>
|
|
))}
|
|
</ul>
|
|
</article>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
const trustIcons = [Server, ShieldCheck, MapPin, Headphones] as const;
|
|
|
|
export function TrustBand() {
|
|
return (
|
|
<section className={styles.trustBand}>
|
|
<div className={styles.trustIntro} data-reveal="left">
|
|
<span className={styles.germanyFlag} aria-hidden>
|
|
<i />
|
|
<i />
|
|
<i />
|
|
</span>
|
|
<div>
|
|
<h2>{landingCopy.trust.title}</h2>
|
|
<p>{landingCopy.trust.body}</p>
|
|
</div>
|
|
</div>
|
|
<div className={styles.trustList} data-stagger>
|
|
{trustItems.map((item, index) => {
|
|
const Icon = trustIcons[index];
|
|
return (
|
|
<div key={item}>
|
|
<Icon size={18} aria-hidden />
|
|
<span>{item}</span>
|
|
</div>
|
|
);
|
|
})}
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|
|
|
|
export function FaqSection({ dark = false }: { dark?: boolean }) {
|
|
return (
|
|
<section className={cx(styles.faqSection, dark && styles.faqSectionDark)}>
|
|
<SectionHeading
|
|
eyebrow={landingCopy.faq.eyebrow}
|
|
body={landingCopy.faq.body}
|
|
dark={dark}
|
|
align="center"
|
|
>
|
|
{landingCopy.faq.title}
|
|
</SectionHeading>
|
|
<div className={styles.faqList} data-stagger>
|
|
{faqItems.map((item, index) => (
|
|
<details key={item.q} className={styles.faqItem} open={index === 0}>
|
|
<summary>
|
|
<span>{item.q}</span>
|
|
<ChevronDown size={19} aria-hidden />
|
|
</summary>
|
|
<p>{item.a}</p>
|
|
</details>
|
|
))}
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|
|
|
|
export function DifferenceCta() {
|
|
return (
|
|
<section className={styles.differenceCta} data-reveal="scale">
|
|
<div>
|
|
<span>30 MINUTEN · UNVERBINDLICH</span>
|
|
<h2>{landingCopy.differenceCta.title}</h2>
|
|
<p>{landingCopy.differenceCta.body}</p>
|
|
</div>
|
|
<Link href="/waitlist" className={styles.primaryButton}>
|
|
Auf die Warteliste <ArrowRight size={17} aria-hidden />
|
|
</Link>
|
|
</section>
|
|
);
|
|
}
|
|
|
|
export function FinalCta({ index }: { index: string }) {
|
|
return (
|
|
<section className={styles.finalCta} data-reveal="up">
|
|
<div className={styles.finalCtaIndex} aria-hidden>
|
|
{index}
|
|
</div>
|
|
<div className={styles.finalCtaCopy}>
|
|
<span>NÄCHSTER SCHRITT</span>
|
|
<h2>{landingCopy.finalCta.title}</h2>
|
|
<p>{landingCopy.finalCta.body}</p>
|
|
</div>
|
|
<div className={styles.finalCtaActions}>
|
|
<Link href="/waitlist" className={styles.primaryButton}>
|
|
Auf die Warteliste <ArrowRight size={17} aria-hidden />
|
|
</Link>
|
|
<Link href="/kontakt" className={styles.secondaryButtonDark}>
|
|
Kontakt
|
|
</Link>
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|