fix: header
This commit is contained in:
1 parent
095f7361fa
commit
1a762d00c5
13 files changed
+432
-105
No files matched your search
@@ -34,8 +34,8 @@ export default function Container() {
|
||||
return (
|
||||
<>
|
||||
{isShowFilter && <Filter />}
|
||||
<div className='gap-2 flex bg-background mb-2 lg:static max-sm:z-10 max-sm:fixed max-sm:bottom-0 max-sm:left-0 max-sm:w-full max-sm:p-2 max-sm:px-[12px] max-sm:mb-0'>
|
||||
<Button className='p-2' onClick={handleChangeMovie(-1)} disabled={!hasPrevious} title='Previous movie'>
|
||||
<div className='gap-2 flex bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 mb-2 lg:static max-sm:z-10 max-sm:fixed max-sm:bottom-0 max-sm:left-0 max-sm:w-full max-sm:p-2 max-sm:px-2 max-sm:mb-0'>
|
||||
<Button className='p-2 grow' onClick={handleChangeMovie(-1)} disabled={!hasPrevious} title='Previous movie'>
|
||||
<ArrowLeft size={24} strokeWidth={1} />
|
||||
</Button>
|
||||
<Button
|
||||
@@ -46,7 +46,7 @@ export default function Container() {
|
||||
>
|
||||
<SlidersHorizontal size={24} strokeWidth={1} />
|
||||
</Button>
|
||||
<Button className='w-full p-2 grow' onClick={handleChangeMovie(1)} title='Next movie'>
|
||||
<Button className='p-2 grow' onClick={handleChangeMovie(1)} title='Next movie'>
|
||||
<ArrowRight size={24} strokeWidth={1} />
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
+10
-3
@@ -1,6 +1,6 @@
|
||||
import React, { ReactNode } from 'react';
|
||||
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
|
||||
import type { Metadata } from 'next';
|
||||
import type { Metadata, Viewport } from 'next';
|
||||
import { cookies } from 'next/headers';
|
||||
|
||||
import Header from '@/components/Header';
|
||||
@@ -13,19 +13,26 @@ 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 (
|
||||
<html lang='en' className={theme}>
|
||||
<head>
|
||||
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' />
|
||||
<meta name='theme-color' content='black' />
|
||||
</head>
|
||||
<body>
|
||||
<Providers theme={theme}>
|
||||
<Header />
|
||||
<main>{children}</main>
|
||||
<main className='px-2 max-w-[1260px] mx-auto'>{children}</main>
|
||||
<ReactQueryDevtools initialIsOpen={false} />
|
||||
</Providers>
|
||||
</body>
|
||||
|
||||
Reference in new issue
Block a user