Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d12e4b6989 | |||
| f4d430f675 | |||
| 9e90ad755f | |||
| 45b1a16eb1 | |||
| 52bd5c1e01 | |||
| 08e4b30497 | |||
| 74efe16eb7 |
@@ -1,48 +1,47 @@
|
|||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import { Halant } from "next/font/google";
|
import { Bitcount_Grid_Double_Ink } from "next/font/google";
|
||||||
import { Inter } from "next/font/google";
|
import "./styles/variables.css";
|
||||||
import { Nunito_Sans } from "next/font/google";
|
import "./styles/base.css";
|
||||||
import "./globals.css";
|
|
||||||
import { ServiceWrapper } from "@/components/ServiceWrapper";
|
|
||||||
import Tag from "@/tag/Tag";
|
|
||||||
import { getVisualEditScript } from "@/utils/visual-edit-script";
|
|
||||||
import { Libre_Baskerville } from "next/font/google";
|
|
||||||
import { Figtree } from "next/font/google";
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const bitcountGridDoubleInk = Bitcount_Grid_Double_Ink({
|
||||||
|
variable: "--font-bitcount-grid-double-ink", subsets: ["latin"],
|
||||||
|
});
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Brew Haven | Premium Specialty Coffee Shop", description: "Discover exceptional specialty coffee handcrafted by passionate baristas. Ethically sourced, expertly roasted, and served with care.", keywords: "coffee shop, specialty coffee, espresso, cold brew, artisan coffee, barista, sustainable coffee", robots: {
|
title: "Brew Haven - Premium Specialty Coffee", description: "Experience the finest specialty coffee crafted by passionate baristas. From single-origin espresso to artisan cold brew."};
|
||||||
index: true,
|
|
||||||
follow: true,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
const figtree = Figtree({
|
|
||||||
variable: "--font-figtree",
|
|
||||||
subsets: ["latin"],
|
|
||||||
});
|
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
children,
|
children,
|
||||||
}: Readonly<{
|
}: {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}>) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<html lang="en" suppressHydrationWarning>
|
<html lang="en" suppressHydrationWarning>
|
||||||
<ServiceWrapper>
|
<body className={`${bitcountGridDoubleInk.variable}`}>
|
||||||
<body className={`${figtree.variable} antialiased`}>
|
<ServiceWrapper>
|
||||||
<Tag />
|
<Tag />
|
||||||
{children}
|
{children}
|
||||||
<script
|
</ServiceWrapper>
|
||||||
dangerouslySetInnerHTML={{
|
<script
|
||||||
__html: `${getVisualEditScript()}`
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: `
|
||||||
|
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
||||||
|
document.documentElement.classList.add('dark');
|
||||||
|
} else {
|
||||||
|
document.documentElement.classList.remove('dark');
|
||||||
|
}
|
||||||
|
`,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</body>
|
</body>
|
||||||
</ServiceWrapper>
|
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ServiceWrapper({ children }: { children: React.ReactNode }) {
|
||||||
|
return <>{children}</>;
|
||||||
|
}
|
||||||
|
|
||||||
|
function Tag() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
@@ -11,7 +11,7 @@ html {
|
|||||||
body {
|
body {
|
||||||
background-color: var(--background);
|
background-color: var(--background);
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
font-family: var(--font-figtree), sans-serif;
|
font-family: var(--font-bitcount-grid-double-ink), sans-serif;
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
overscroll-behavior: none;
|
overscroll-behavior: none;
|
||||||
@@ -24,5 +24,5 @@ h3,
|
|||||||
h4,
|
h4,
|
||||||
h5,
|
h5,
|
||||||
h6 {
|
h6 {
|
||||||
font-family: var(--font-figtree), sans-serif;
|
font-family: var(--font-bitcount-grid-double-ink), sans-serif;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user