From 7f77f960d9486608603e966eb0603b5233e12eca Mon Sep 17 00:00:00 2001 From: ner Date: Wed, 20 Mar 2024 18:47:39 +0200 Subject: [PATCH] fix: theme-color --- app/(site)/loading.tsx | 1 + app/layout.tsx | 17 ++++++++--------- .../Header/components/Navigation/index.tsx | 2 +- components/Header/index.tsx | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/(site)/loading.tsx b/app/(site)/loading.tsx index f74a14a..64327e5 100644 --- a/app/(site)/loading.tsx +++ b/app/(site)/loading.tsx @@ -1,4 +1,5 @@ import { Loader } from 'lucide-react'; + export default function Loading() { return (
diff --git a/app/layout.tsx b/app/layout.tsx index 9fb62fe..ddba0ff 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,5 +1,5 @@ import React, { ReactNode } from 'react'; -import type { Metadata, Viewport } from 'next'; +import type { Metadata } from 'next'; import { cookies } from 'next/headers'; import Header from '@/components/Header'; @@ -12,19 +12,18 @@ export const metadata: Metadata = { description: 'It is going to help you find a movie for evening' }; -export const viewport: Viewport = { - themeColor: 'black', - width: 'device-width', - initialScale: 1, - maximumScale: 1, - userScalable: false -}; - export default function RootLayout({ children }: { children: ReactNode }) { const theme = cookies().get('theme')?.value as Theme; return ( + + + +
diff --git a/components/Header/components/Navigation/index.tsx b/components/Header/components/Navigation/index.tsx index a5b67a3..ff73af9 100644 --- a/components/Header/components/Navigation/index.tsx +++ b/components/Header/components/Navigation/index.tsx @@ -17,7 +17,7 @@ export default function Navigation() { { path: '/top', title: 'Top rated' }, { path: '/favorites', title: 'Favorites' } ].map(({ path, title }) => ( - + {title} diff --git a/components/Header/index.tsx b/components/Header/index.tsx index 1fbcb2f..e8b77db 100644 --- a/components/Header/index.tsx +++ b/components/Header/index.tsx @@ -11,7 +11,7 @@ const Header: FC = () => (
- + Movie advisor