-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathlayout.tsx
More file actions
85 lines (79 loc) · 2.15 KB
/
layout.tsx
File metadata and controls
85 lines (79 loc) · 2.15 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import type { Metadata } from "next";
import { Geist, Geist_Mono, Kanit, Poppins } from "next/font/google";
import "./globals.css";
import GlassNavBar from "@/components/navbar";
import { Footer } from "@/components/footer";
import { ViewTransitions } from 'next-view-transitions'
import SmoothScroll from "@/components/SmoothScroll";
import ScrollToTop from "@/components/ScrollToTop";
const poppins = Poppins({
subsets: ["latin"],
weight: ["400", "500", "600"],
});
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
const kanit = Kanit({
weight: ["400", "700", "800"],
style: ["normal", "italic"],
subsets: ["latin"],
variable: "--font-kanit",
});
export const metadata: Metadata = {
metadataBase: new URL('https://hackbyte.in'),
title: {
default: "HackByte 4.0 | IIITDMJ Hackathon",
template: "%s | HackByte 4.0"
},
description: "HackByte is IIITDMJ's student-run hackathon. Join us for 3 days of coding, innovation, and fun. April 3-5, 2026.",
icons: {
icon: '/favicon.ico',
},
keywords: ["Hackathon", "IIITDMJ", "Coding", "HackByte", "Jabalpur", "Tech Event"],
openGraph: {
title: "HackByte 4.0 | IIITDMJ Hackathon",
description: "Join us for 3 days of coding, innovation, and fun at IIITDM Jabalpur.",
url: 'https://hackbyte.in',
siteName: 'HackByte',
images: [
{
url: '/hackbyte_home_page.png',
width: 1200,
height: 630,
},
],
locale: 'en_US',
type: 'website',
},
robots: {
index: true,
follow: true,
},
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<ViewTransitions>
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} ${kanit.variable} ${poppins.className} antialiased overflow-x-hidden bg-black`}
>
<SmoothScroll>
<ScrollToTop />
<GlassNavBar />
{children}
<Footer />
</SmoothScroll>
</body>
</html>
</ViewTransitions>
);
}