init
This commit is contained in:
31
cansat/layouts/default.tsx
Normal file
31
cansat/layouts/default.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
import { Link } from "@heroui/link";
|
||||
|
||||
import { Head } from "./head";
|
||||
|
||||
import { Navbar } from "@/components/navbar";
|
||||
|
||||
export default function DefaultLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<div className="relative flex flex-col h-screen">
|
||||
<Head />
|
||||
<Navbar />
|
||||
<main className="container mx-auto max-w-7xl px-6 flex-grow pt-16">
|
||||
{children}
|
||||
</main>
|
||||
<footer className="w-full flex items-center justify-center py-3">
|
||||
<Link
|
||||
isExternal
|
||||
className="flex items-center gap-1 text-current"
|
||||
href="https://www.heroui.com"
|
||||
title="heroui.com homepage"
|
||||
>
|
||||
<span className="text-default-600">© 2024 Adlerka Space Program</span>
|
||||
</Link>
|
||||
</footer>
|
||||
</div>
|
||||
);
|
||||
}
|
21
cansat/layouts/head.tsx
Normal file
21
cansat/layouts/head.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from "react";
|
||||
import NextHead from "next/head";
|
||||
|
||||
import { siteConfig } from "@/config/site";
|
||||
|
||||
export const Head = () => {
|
||||
return (
|
||||
<NextHead>
|
||||
<title>{siteConfig.name}</title>
|
||||
<meta key="title" content={siteConfig.name} property="og:title" />
|
||||
<meta content={siteConfig.description} property="og:description" />
|
||||
<meta content={siteConfig.description} name="description" />
|
||||
<meta
|
||||
key="viewport"
|
||||
content="viewport-fit=cover, width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
|
||||
name="viewport"
|
||||
/>
|
||||
<link href="/favicon.ico" rel="icon" />
|
||||
</NextHead>
|
||||
);
|
||||
};
|
Reference in New Issue
Block a user