update design
This commit is contained in:
@@ -1,13 +1,22 @@
|
||||
import React from 'react';
|
||||
import type { Metadata } from 'next';
|
||||
import { Toaster } from 'sonner';
|
||||
import { ShopifyProvider } from '@/contexts/shopify-context';
|
||||
import CartDrawer from '@/components/CartDrawer';
|
||||
import Theme from '@/components/Theme';
|
||||
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',
|
||||
description: 'Start prompting',
|
||||
title: 'Frontend | Shopify',
|
||||
description: 'Frontend Shopify Storefront',
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
@@ -16,19 +25,18 @@ export default function RootLayout({
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
</head>
|
||||
<html lang="en" className={poppins.variable}>
|
||||
<head></head>
|
||||
<body className="m-0 p-0 font-body">
|
||||
<ShopifyProvider>
|
||||
<Theme />
|
||||
<div className="w-full flex flex-col min-h-[calc(100vh-80px)]">
|
||||
<Providers>
|
||||
<PromoBanner />
|
||||
<ShopHeader />
|
||||
<main className="min-h-screen">
|
||||
{children}
|
||||
</div>
|
||||
<Toaster />
|
||||
<CartDrawer />
|
||||
</ShopifyProvider>
|
||||
</main>
|
||||
<ShopFooter />
|
||||
<ShopifyCart />
|
||||
</Providers>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user