-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathlayout.tsx
More file actions
57 lines (53 loc) · 1.89 KB
/
Copy pathlayout.tsx
File metadata and controls
57 lines (53 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import Link from "next/link";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<head>
<link rel="preconnect" href="https://images.unsplash.com" />
<link rel="preconnect" href="https://randomuser.me" />
</head>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased bg-gray-50 text-gray-900`}
>
<header className="sticky top-0 z-50 bg-white/80 backdrop-blur border-b">
<nav className="container mx-auto px-4 h-14 flex items-center justify-between">
<Link href="/" className="font-semibold">SolveEase</Link>
<div className="flex items-center gap-6 text-sm">
<Link href="/" className="hover:text-gray-700">Workers</Link>
<Link href="/api/workers" className="hover:text-gray-700">API</Link>
<a href="https://github.com/solve-ease" target="_blank" rel="noreferrer" className="hover:text-gray-700">GitHub</a>
</div>
</nav>
</header>
<div className="min-h-[calc(100dvh-3.5rem)]">
{children}
</div>
<footer className="border-t bg-white">
<div className="container mx-auto px-4 py-6 text-sm text-gray-500 flex items-center justify-between">
<span>© {new Date().getFullYear()} SolveEase</span>
<span>Next.js • React • Tailwind CSS</span>
</div>
</footer>
</body>
</html>
);
}