232 lines
10 KiB
TypeScript
232 lines
10 KiB
TypeScript
"use client";
|
||
|
||
import { useRef } from "react";
|
||
import Link from "next/link";
|
||
import {
|
||
ArrowRight,
|
||
Bell,
|
||
CalendarDays,
|
||
Check,
|
||
CheckCircle2,
|
||
ChevronRight,
|
||
CircleUserRound,
|
||
Clock3,
|
||
Euro,
|
||
FileText,
|
||
LayoutDashboard,
|
||
MessageSquare,
|
||
MoreHorizontal,
|
||
Plus,
|
||
Search,
|
||
Sparkles,
|
||
Users,
|
||
Workflow,
|
||
} from "lucide-react";
|
||
import {
|
||
ComparisonGrid,
|
||
ComparisonTitle,
|
||
CustomerHeading,
|
||
DifferenceCta,
|
||
FaqSection,
|
||
FinalCta,
|
||
HeroCopy,
|
||
IntegrationsTitle,
|
||
LabBar,
|
||
NoahPortrait,
|
||
ProductScreenshot,
|
||
SolutionsTitle,
|
||
StoryText,
|
||
ToolChip,
|
||
TrustBand,
|
||
cx,
|
||
} from "../LabShared";
|
||
import { landingCopy, solutionModules } from "../content";
|
||
import { useLabMotion } from "../useLabMotion";
|
||
import styles from "../lab.module.css";
|
||
|
||
const pipelineColumns = [
|
||
{ label: "Anfragen", count: 8, color: "#7aa7ff" },
|
||
{ label: "Angebote", count: 5, color: "#f1b729" },
|
||
{ label: "Beauftragt", count: 12, color: "#3fc59d" },
|
||
{ label: "Abnahme", count: 3, color: "#cf8dff" },
|
||
] as const;
|
||
|
||
export default function Cockpit() {
|
||
const root = useRef<HTMLDivElement>(null);
|
||
useLabMotion(root, "cockpit");
|
||
|
||
return (
|
||
<div ref={root} className={cx(styles.page, styles.cockpitPage)}>
|
||
<LabBar active="cockpit" />
|
||
|
||
<section className={cx(styles.heroSection, styles.cockpitHero)}>
|
||
<div className={styles.cockpitHeroCopy}>
|
||
<HeroCopy />
|
||
</div>
|
||
|
||
<div className={styles.cockpitWindow} data-hero-visual data-cockpit-scroll>
|
||
<div className={styles.cockpitTopbar}>
|
||
<div className={styles.cockpitBrand}>
|
||
<span>HG</span>
|
||
<strong>Geerkens GmbH</strong>
|
||
</div>
|
||
<div className={styles.cockpitSearch}><Search size={15} /><span>Auftrag, Kunde, Nachricht …</span></div>
|
||
<div className={styles.cockpitTopActions}>
|
||
<span className={styles.cockpitOnline}><i data-live-dot /> Alle Systeme online</span>
|
||
<button aria-label="Benachrichtigungen"><Bell size={17} /></button>
|
||
<span className={styles.avatar}>NG</span>
|
||
</div>
|
||
</div>
|
||
|
||
<div className={styles.cockpitBody}>
|
||
<aside className={styles.cockpitSidebar}>
|
||
<span className={styles.sidebarActive}><LayoutDashboard size={17} /> Übersicht</span>
|
||
<span><Workflow size={17} /> Workflows</span>
|
||
<span><MessageSquare size={17} /> Chat <b>3</b></span>
|
||
<span><Users size={17} /> Team</span>
|
||
<span><FileText size={17} /> Dokumente</span>
|
||
<div className={styles.sidebarBottom}>
|
||
<Sparkles size={15} /> 38 Schritte heute automatisiert
|
||
</div>
|
||
</aside>
|
||
|
||
<div className={styles.cockpitContent}>
|
||
<div className={styles.cockpitHeading} data-cockpit-panel>
|
||
<div><span>DONNERSTAG, 06. AUGUST</span><h2>Guten Morgen, Noah.</h2></div>
|
||
<button><Plus size={16} /> Neuer Auftrag</button>
|
||
</div>
|
||
|
||
<div className={styles.metricGrid} data-stagger>
|
||
<div data-cockpit-panel><span>Offene Angebote</span><strong>€ 184.600</strong><small>+12 % diese Woche</small></div>
|
||
<div data-cockpit-panel><span>Aktive Baustellen</span><strong>18</strong><small>15 im Zeitplan</small></div>
|
||
<div data-cockpit-panel><span>Automatisiert</span><strong>38</strong><small>Schritte heute</small></div>
|
||
<div data-cockpit-panel><span>Neue Anfragen</span><strong>8</strong><small>alle beantwortet</small></div>
|
||
</div>
|
||
|
||
<div className={styles.cockpitMainGrid}>
|
||
<section className={styles.pipelinePanel} data-cockpit-panel>
|
||
<div className={styles.panelTitle}><div><span>VERTRIEB</span><h3>Aufträge im Fluss</h3></div><MoreHorizontal size={18} /></div>
|
||
<div className={styles.pipelineTrack}>
|
||
{pipelineColumns.map((column) => (
|
||
<div key={column.label}>
|
||
<span><i style={{ background: column.color }} />{column.label}</span>
|
||
<strong>{column.count}</strong>
|
||
<div className={styles.pipelineBar}><i style={{ width: `${28 + column.count * 5}%`, background: column.color }} /></div>
|
||
</div>
|
||
))}
|
||
</div>
|
||
<div className={styles.activeDeal}>
|
||
<div><span>HG-284</span><strong>Badmodernisierung Weber</strong></div>
|
||
<b>€ 24.300</b>
|
||
<span className={styles.dealStatus}>Aufmaß Freitag</span>
|
||
</div>
|
||
</section>
|
||
|
||
<section className={styles.dayPanel} data-cockpit-panel>
|
||
<div className={styles.panelTitle}><div><span>HEUTE</span><h3>Dein Betriebstag</h3></div><CalendarDays size={18} /></div>
|
||
<div className={styles.dayTimeline}>
|
||
<i className={styles.timelineRail} aria-hidden />
|
||
<i className={styles.timelineMarker} data-timeline-marker aria-hidden />
|
||
<div><time>08:00</time><span><b>Team verteilt</b><small>12 Monteure · 6 Baustellen</small></span></div>
|
||
<div><time>10:30</time><span><b>Aufmaß Weber</b><small>Lena & Tom · Bruchsal</small></span></div>
|
||
<div><time>14:00</time><span><b>Abnahme Fischer</b><small>Dokumente vorbereitet</small></span></div>
|
||
</div>
|
||
</section>
|
||
|
||
<section className={styles.approvalPanel} data-cockpit-panel>
|
||
<div className={styles.panelTitle}><div><span>TEAM</span><h3>2 Freigaben</h3></div><ChevronRight size={18} /></div>
|
||
<div className={styles.approvalRow}><span className={styles.avatarTeal}>LK</span><div><b>Lena Krause</b><small>Urlaub · 12.–19. Aug.</small></div><button><Check size={15} /></button></div>
|
||
<div className={styles.approvalRow}><span className={styles.avatarBlue}>TB</span><div><b>Tom Berger</b><small>Spesen · € 84,50</small></div><button><Check size={15} /></button></div>
|
||
</section>
|
||
|
||
<section className={styles.activityPanel} data-cockpit-panel>
|
||
<div className={styles.panelTitle}><div><span>LIVE</span><h3>Gerade passiert</h3></div><i data-live-dot /></div>
|
||
<div><MessageSquare size={15} /><span><b>Foto hochgeladen</b><small>Auftrag HG-284 · vor 2 Min.</small></span></div>
|
||
<div><Workflow size={15} /><span><b>Workflow abgeschlossen</b><small>Angebot versendet · vor 8 Min.</small></span></div>
|
||
</section>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<section className={cx(styles.section, styles.cockpitIntegrations)}>
|
||
<IntegrationsTitle dark />
|
||
<div className={styles.statusWall} data-stagger>
|
||
{Array.from({ length: 13 }, (_, index) => (
|
||
<div key={index} className={styles.statusCard}>
|
||
<ToolChip index={index} small />
|
||
<div className={styles.statusCardMeta}>
|
||
<span><i data-live-dot /> Synchron</span>
|
||
<b>{index % 4 === 0 ? "gerade eben" : `${index + 1} Min.`}</b>
|
||
</div>
|
||
</div>
|
||
))}
|
||
</div>
|
||
</section>
|
||
|
||
<section className={cx(styles.section, styles.cockpitSolutions)}>
|
||
<SolutionsTitle />
|
||
<div className={styles.solutionBento}>
|
||
<article className={cx(styles.bentoCard, styles.bentoFeatured)} data-reveal="left">
|
||
<div className={styles.bentoCopy}>
|
||
<span>01 · {solutionModules[0].metric}</span>
|
||
<h3>{solutionModules[0].title}</h3>
|
||
<p>{solutionModules[0].body}</p>
|
||
<Link href={solutionModules[0].href}>Bereich ansehen <ArrowRight size={16} /></Link>
|
||
</div>
|
||
<ProductScreenshot moduleIndex={0} />
|
||
</article>
|
||
{solutionModules.slice(1).map((solution, offset) => {
|
||
const index = offset + 1;
|
||
return (
|
||
<article key={solution.id} className={styles.bentoCard} data-reveal="up">
|
||
<span className={styles.bentoIcon}>
|
||
{index === 1 ? <Workflow size={21} /> : index === 2 ? <MessageSquare size={21} /> : <FileText size={21} />}
|
||
</span>
|
||
<div className={styles.bentoCopy}>
|
||
<span>0{index + 1} · {solution.metric}</span>
|
||
<h3>{solution.title}</h3>
|
||
<p>{solution.body}</p>
|
||
</div>
|
||
<div className={styles.bentoMiniUi} aria-hidden>
|
||
<i /><i /><i /><i />
|
||
</div>
|
||
</article>
|
||
);
|
||
})}
|
||
</div>
|
||
</section>
|
||
|
||
<section className={styles.cockpitCustomer}>
|
||
<div className={styles.cockpitCustomerHeader} data-reveal="up">
|
||
<span>AUS DEM ECHTEN BETRIEB</span>
|
||
<CustomerHeading />
|
||
<p>{landingCopy.customer.body}</p>
|
||
</div>
|
||
<div className={styles.customerScoreboard} data-stagger>
|
||
<div><Clock3 size={19} /><strong>6,4 h</strong><span>pro Woche weniger Abstimmung</span></div>
|
||
<div><CheckCircle2 size={19} /><strong>94 %</strong><span>Aufgaben im Plan</span></div>
|
||
<div><Euro size={19} /><strong>€ 184k</strong><span>offene Angebote sichtbar</span></div>
|
||
<div><CircleUserRound size={19} /><strong>12</strong><span>Mitarbeitende im selben Stand</span></div>
|
||
</div>
|
||
</section>
|
||
|
||
<section className={styles.cockpitStory}>
|
||
<div className={styles.cockpitStoryPhoto}><NoahPortrait /></div>
|
||
<StoryText compact />
|
||
</section>
|
||
|
||
<section className={cx(styles.section, styles.comparisonSection, styles.cockpitComparison)}>
|
||
<ComparisonTitle />
|
||
<ComparisonGrid />
|
||
</section>
|
||
|
||
<div className={styles.sectionNarrow}><DifferenceCta /></div>
|
||
<TrustBand />
|
||
<FaqSection />
|
||
<div className={styles.sectionNarrow}><FinalCta index="03" /></div>
|
||
</div>
|
||
);
|
||
}
|