From 949633fb4d2dc6bf050cca10b129f61abf760599 Mon Sep 17 00:00:00 2001 From: Catherine Tan Date: Tue, 26 Nov 2024 00:10:41 -0800 Subject: [PATCH] use global css --- app/global.css | 5 +++++ app/layout.tsx | 8 ++------ styles/globalStyles.tsx | 24 ------------------------ 3 files changed, 7 insertions(+), 30 deletions(-) create mode 100644 app/global.css delete mode 100644 styles/globalStyles.tsx diff --git a/app/global.css b/app/global.css new file mode 100644 index 0000000..cca57b3 --- /dev/null +++ b/app/global.css @@ -0,0 +1,5 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} diff --git a/app/layout.tsx b/app/layout.tsx index 0c7f16d..4372f0e 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,9 +1,9 @@ import type { Metadata } from 'next'; import { Inter } from 'next/font/google'; import StyledComponentsRegistry from '@/lib/registry'; -import { GlobalStyle } from '@/styles/globalStyles'; import ProfileProvider from '@/utils/ProfileProvider'; import { AuthProvider } from '../utils/AuthProvider'; +import './global.css'; // font definitions const sans = Inter({ @@ -14,8 +14,7 @@ const sans = Inter({ // site metadata - what shows up on embeds export const metadata: Metadata = { title: 'Trap Garden', - description: - 'A web app to assist individuals, schools, and small organizations in establishing and maintaining their own gardens.', + description: 'Created by Blueprint', }; export default function RootLayout({ @@ -25,9 +24,6 @@ export default function RootLayout({ }>) { return ( - - - diff --git a/styles/globalStyles.tsx b/styles/globalStyles.tsx deleted file mode 100644 index ffe4c52..0000000 --- a/styles/globalStyles.tsx +++ /dev/null @@ -1,24 +0,0 @@ -'use client'; - -import { createGlobalStyle } from 'styled-components'; - -export const GlobalStyle = createGlobalStyle` - body { - margin: 0; - padding: 0; - box-sizing: border-box; - } -`; - -export default function GlobalStyleWrapper({ - children, -}: { - children: React.ReactNode; -}) { - return ( - <> - - {children} - - ); -}