chore(repo): sync wireframe structure and references
This commit is contained in:
1 parent
05d2d5777f
commit
d953a79e95
453 files changed
+36639
-621
No files matched your search
@@ -0,0 +1,158 @@
|
||||
import type { Metadata, Viewport } from "next";
|
||||
import { Manrope } from "next/font/google";
|
||||
import { headers } from "next/headers";
|
||||
import "./globals.css";
|
||||
import Navbar from "@/components/layout/Navbar";
|
||||
import Footer from "@/components/layout/Footer";
|
||||
import AgentationClient from "@/components/dev/AgentationClient";
|
||||
|
||||
// Manrope instead of Inter: it is warmer and more geometric while remaining
|
||||
// highly legible across product screenshots and long-form marketing copy.
|
||||
const manrope = Manrope({
|
||||
subsets: ["latin"],
|
||||
variable: "--font-sans",
|
||||
weight: ["400", "500", "600", "700", "800"],
|
||||
display: "swap",
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: {
|
||||
default: "HiveGrid: Alles was Ihr Betrieb braucht",
|
||||
template: "%s | HiveGrid",
|
||||
},
|
||||
description:
|
||||
"Von der Auftragsannahme bis zur Rechnungsstellung. HiveGrid vereint alle Werkzeuge für Ihren SHK-Betrieb.",
|
||||
metadataBase: new URL("https://hivegrid.de"),
|
||||
applicationName: "HiveGrid",
|
||||
authors: [{ name: "HiveGrid" }],
|
||||
creator: "HiveGrid",
|
||||
publisher: "HiveGrid",
|
||||
keywords: [
|
||||
"SHK Software",
|
||||
"Handwerker Software",
|
||||
"Handwerk Digitalisierung",
|
||||
"Workflow Engine",
|
||||
"CRM Handwerk",
|
||||
"Projektmanagement SHK",
|
||||
"Sanitär Heizung Klima Software",
|
||||
"DSGVO konform",
|
||||
"Made in Germany",
|
||||
],
|
||||
alternates: { canonical: "/" },
|
||||
robots: {
|
||||
index: true,
|
||||
follow: true,
|
||||
googleBot: {
|
||||
index: true,
|
||||
follow: true,
|
||||
"max-snippet": -1,
|
||||
"max-image-preview": "large",
|
||||
"max-video-preview": -1,
|
||||
},
|
||||
},
|
||||
openGraph: {
|
||||
type: "website",
|
||||
locale: "de_DE",
|
||||
siteName: "HiveGrid",
|
||||
url: "https://hivegrid.de",
|
||||
title: "HiveGrid: Alles was Ihr Betrieb braucht",
|
||||
description:
|
||||
"Von der Auftragsannahme bis zur Rechnungsstellung. HiveGrid vereint alle Werkzeuge für Ihren SHK-Betrieb.",
|
||||
},
|
||||
twitter: {
|
||||
card: "summary_large_image",
|
||||
title: "HiveGrid: Alles was Ihr Betrieb braucht",
|
||||
description:
|
||||
"Von der Auftragsannahme bis zur Rechnungsstellung. HiveGrid vereint alle Werkzeuge für Ihren SHK-Betrieb.",
|
||||
},
|
||||
formatDetection: { telephone: false, email: false, address: false },
|
||||
};
|
||||
|
||||
export const viewport: Viewport = {
|
||||
themeColor: "#F1B729",
|
||||
width: "device-width",
|
||||
initialScale: 1,
|
||||
};
|
||||
|
||||
const organizationJsonLd = {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Organization",
|
||||
name: "HiveGrid",
|
||||
legalName: "R&D² UG (haftungsbeschränkt)",
|
||||
url: "https://hivegrid.de",
|
||||
logo: "https://hivegrid.de/logo.svg",
|
||||
description:
|
||||
"HiveGrid bündelt die wichtigsten Prozesse rund um Anfrage, Auftragsgewinnung und Projektabwicklung für SHK-Betriebe.",
|
||||
address: {
|
||||
"@type": "PostalAddress",
|
||||
streetAddress: "Orbinstraße 1",
|
||||
postalCode: "76646",
|
||||
addressLocality: "Bruchsal",
|
||||
addressCountry: "DE",
|
||||
},
|
||||
contactPoint: {
|
||||
"@type": "ContactPoint",
|
||||
contactType: "customer support",
|
||||
email: "info@hivegrid.de",
|
||||
availableLanguage: "de",
|
||||
areaServed: "DE",
|
||||
},
|
||||
};
|
||||
|
||||
const websiteJsonLd = {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "WebSite",
|
||||
name: "HiveGrid",
|
||||
url: "https://hivegrid.de",
|
||||
inLanguage: "de-DE",
|
||||
publisher: { "@type": "Organization", name: "HiveGrid" },
|
||||
};
|
||||
|
||||
const productionLoginHref = "https://app.hivegrid.de/login";
|
||||
const stagingLoginHref = "https://staging-app.hivegrid.de/login";
|
||||
|
||||
function getHostname(headersList: Headers) {
|
||||
const forwardedHost = headersList.get("x-forwarded-host");
|
||||
const host = forwardedHost ?? headersList.get("host") ?? "";
|
||||
|
||||
return host.split(",")[0]?.trim().toLowerCase().split(":")[0] ?? "";
|
||||
}
|
||||
|
||||
function getLoginHref(hostname: string) {
|
||||
return hostname === "staging.hivegrid.de" ? stagingLoginHref : productionLoginHref;
|
||||
}
|
||||
|
||||
export default async function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
const loginHref = getLoginHref(getHostname(await headers()));
|
||||
|
||||
return (
|
||||
<html lang="de" className={manrope.variable}>
|
||||
<body>
|
||||
<a
|
||||
href="#main"
|
||||
className="sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-[100] focus:bg-[var(--accent-yellow)] focus:text-[var(--text-primary)] focus:px-4 focus:py-2 focus:rounded-md focus:font-semibold"
|
||||
>
|
||||
Zum Hauptinhalt springen
|
||||
</a>
|
||||
<Navbar loginHref={loginHref} />
|
||||
<main id="main" style={{ paddingTop: 80 }}>
|
||||
{children}
|
||||
</main>
|
||||
<Footer />
|
||||
<AgentationClient />
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(organizationJsonLd) }}
|
||||
/>
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(websiteJsonLd) }}
|
||||
/>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user