44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
import React from 'react';
|
|
import type { Metadata } from 'next';
|
|
import { Poppins } from 'next/font/google';
|
|
import './globals.css';
|
|
import { Providers } from './providers';
|
|
import ShopifyCart from '@/components/shopify/cart-drawer';
|
|
import ShopHeader from '@/components/shopify/shop-header';
|
|
import PromoBanner from '@/components/shopify/promo-banner';
|
|
import ShopFooter from '@/components/shopify/shop-footer';
|
|
|
|
const poppins = Poppins({
|
|
subsets: ['latin'],
|
|
weight: ['400', '500', '600', '700', '800'],
|
|
variable: '--font-poppins',
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'Frontend | Shopify',
|
|
description: 'Frontend Shopify Storefront',
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="en" className={poppins.variable}>
|
|
<head></head>
|
|
<body className="m-0 p-0 font-body">
|
|
<Providers>
|
|
<PromoBanner />
|
|
<ShopHeader />
|
|
<main className="min-h-screen">
|
|
{children}
|
|
</main>
|
|
<ShopFooter />
|
|
<ShopifyCart />
|
|
</Providers>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|