From f0c587fa9b6a86cdbdec8663f2c26fcaa3ee2709 Mon Sep 17 00:00:00 2001 From: Josh Daniel Date: Fri, 16 Aug 2024 23:52:07 +0800 Subject: [PATCH] feat: add hero section --- apps/partners/package.json | 1 + apps/partners/src/app/layout.tsx | 43 +++++++++- apps/partners/src/app/page.tsx | 137 +++++++++---------------------- pnpm-lock.yaml | 3 + 4 files changed, 82 insertions(+), 102 deletions(-) diff --git a/apps/partners/package.json b/apps/partners/package.json index 56036055..44a5d8fe 100644 --- a/apps/partners/package.json +++ b/apps/partners/package.json @@ -32,6 +32,7 @@ "zod": "^3.22.4", "sonner": "^1.5.0", "nanoid": "^5.0.7", + "nextjs-toploader": "^1.6.12", "@whatwg-node/server": "^0.9.46", "@umamin/db": "workspace:*", "@umamin/gql": "workspace:*", diff --git a/apps/partners/src/app/layout.tsx b/apps/partners/src/app/layout.tsx index 1652f1d9..b8ec7ac0 100644 --- a/apps/partners/src/app/layout.tsx +++ b/apps/partners/src/app/layout.tsx @@ -1,5 +1,9 @@ -import type { Metadata, Viewport } from "next"; +import { Toaster } from "sonner"; +import Script from "next/script"; import { GeistSans } from "geist/font/sans"; +import NextTopLoader from "nextjs-toploader"; +import type { Metadata, Viewport } from "next"; +import { ThemeProvider } from "@umamin/ui/components/theme-provider"; import "@umamin/ui/globals.css"; export const viewport: Viewport = { @@ -59,7 +63,42 @@ export default function RootLayout({ }>) { return ( - {children} + + + + + {children} + + + + {process.env.NODE_ENV === "production" && ( +