Template
Next.js 16 + React 19 storefront template with Shopify Storefront API integration, Tailwind v4, and shadcn/ui components. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0111qSr3KopyGRsJ6LznR1xZ
41 lines
850 B
TypeScript
41 lines
850 B
TypeScript
'use client';
|
|
|
|
import React from 'react';
|
|
import './globals.css';
|
|
import { Space_Grotesk, Inter, Poppins } from 'next/font/google';
|
|
|
|
const poppins = Poppins({
|
|
subsets: ['latin'],
|
|
weight: ['400', '500', '600', '700'],
|
|
variable: '--font-poppins',
|
|
});
|
|
|
|
const spaceGrotesk = Space_Grotesk({
|
|
subsets: ['latin'],
|
|
weight: ['400', '500', '600', '700'],
|
|
variable: '--font-heading',
|
|
});
|
|
|
|
const inter = Inter({
|
|
subsets: ['latin'],
|
|
weight: ['400', '500', '600'],
|
|
variable: '--font-body',
|
|
});
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html
|
|
lang="en"
|
|
className={`${poppins.variable} ${spaceGrotesk.variable} ${inter.variable}`}
|
|
>
|
|
<body className="font-body antialiased bg-background text-foreground m-0 p-0">
|
|
{children}
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|