You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
robotop.krasnikov.pro/.history/components/Layout_20220708224846.tsx

46 lines
1.2 KiB

import React from 'react';
import { MetaProps } from '../types/layout';
import Head from './Head';
import Navigation from './Navigation';
import ThemeSwitch from './ThemeSwitch';
type LayoutProps = {
children: React.ReactNode;
customMeta?: MetaProps;
};
export const WEBSITE_HOST_URL = 'https://nextjs-typescript-mdx-blog.vercel.app';
const Layout = ({ children, customMeta }: LayoutProps): JSX.Element => {
return (
<>
<Head customMeta={customMeta} />
<header>
<div className="max-w-5xl px-8 mx-auto max-w">
<div className="flex items-center justify-between py-6">
<Navigation />
<ThemeSwitch />
</div>
</div>
</header>
<main>
<div className="max-w-5xl px-8 py-4 mx-auto max-w">
{children}
</div>
</main>
<footer className="py-8">
<div className="max-w-5xl px-8 mx-auto max-w">
Разработано {' '}
<a
className="text-gray-900 dark:text-white"
href="https://krasnikov.pro"
>
Krasnikov.pro
</a>
</div>
</footer>
</>
);
};
export default Layout;