92 lines
2.7 KiB
TypeScript
92 lines
2.7 KiB
TypeScript
import type { Metadata } from "next";
|
|
import Image from "next/image";
|
|
import localFont from "next/font/local";
|
|
import { LanguageProvider } from './context/LanguageContext';
|
|
import "./globals.css";
|
|
|
|
const geistSans = localFont({
|
|
src: "./fonts/GeistVF.woff",
|
|
variable: "--font-geist-sans",
|
|
weight: "100 900",
|
|
});
|
|
const geistMono = localFont({
|
|
src: "./fonts/GeistMonoVF.woff",
|
|
variable: "--font-geist-mono",
|
|
weight: "100 900",
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "OR-Tool by Spaceholder Programming",
|
|
description: "OR-Tool by Spaceholder Programming",
|
|
};
|
|
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
|
|
<html lang="en">
|
|
<body
|
|
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
|
>
|
|
<LanguageProvider>
|
|
{children}
|
|
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]">
|
|
<footer className=" flex gap-6 flex-wrap items-center justify-center">
|
|
<a
|
|
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
|
|
href="https://github.com/Spaceholder-Programming/Operations-Research-Tool/wiki"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
<Image
|
|
aria-hidden
|
|
src="https://nextjs.org/icons/file.svg"
|
|
alt="File icon"
|
|
width={16}
|
|
height={16}
|
|
/>
|
|
Docs
|
|
</a>
|
|
<a
|
|
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
|
|
href="https://github.com/Spaceholder-Programming/Operations-Research-Tool/"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
<Image
|
|
aria-hidden
|
|
src="https://nextjs.org/icons/globe.svg"
|
|
alt="Globe icon"
|
|
width={16}
|
|
height={16}
|
|
/>
|
|
Source Code
|
|
</a>
|
|
<a
|
|
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
|
|
href="https://www.gnu.org/software/glpk/"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
<Image
|
|
aria-hidden
|
|
src="https://nextjs.org/icons/globe.svg"
|
|
alt="Globe icon"
|
|
width={16}
|
|
height={16}
|
|
/>
|
|
GLPK
|
|
</a>
|
|
</footer>
|
|
</div>
|
|
</LanguageProvider>
|
|
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|