57 lines
1.5 KiB
TypeScript
57 lines
1.5 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Merriweather } from 'next/font/google';
|
|
import "./globals.css";
|
|
|
|
import MainHeader from "@/components/header/main";
|
|
import MainFooter from "@/components/footer/main";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Ader Konstantin Blog",
|
|
description: "Welcome to AderKI Blog. There will be posts about digital design and computer architecture",
|
|
keywords: ["AderKI", "blog", "computer"],
|
|
authors: [{ name: "Ader Konstantin" }],
|
|
openGraph: {
|
|
title: "AderKI Blog",
|
|
description: "Welcome to AderKI Blog. There will be posts about digital design and computer architecture",
|
|
url: "https://blog.aderk.org/",
|
|
images: [
|
|
{
|
|
url: "/images/logo.png", // Path to your Open Graph image
|
|
width: 800,
|
|
height: 600,
|
|
alt: "AderKI Blog Logo",
|
|
},
|
|
],
|
|
siteName: "Ader Konstantin Blog",
|
|
},
|
|
icons: {
|
|
icon: "/images/favicon.ico", // Path to your favicon
|
|
},
|
|
};
|
|
|
|
import { Source_Serif_4 } from 'next/font/google';
|
|
|
|
const sourceSerif = Source_Serif_4({
|
|
subsets: ['latin', 'cyrillic'],
|
|
display: 'swap',
|
|
});
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html className="dark" lang="en">
|
|
<body
|
|
className={`${sourceSerif.className} dark:bg- dark:text-white bg-white text-black font-sans`}
|
|
>
|
|
<div className="text-xl 2xl:mx-75 xl:mx-36 md:mx-6">
|
|
<MainHeader />
|
|
{children}
|
|
<MainFooter />
|
|
</div>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|