-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.tsx
More file actions
102 lines (96 loc) · 2.84 KB
/
layout.tsx
File metadata and controls
102 lines (96 loc) · 2.84 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import type { Metadata, Viewport } from "next";
import Toolbar from "@/components/Navbar";
import BottomNavbar from "@/components/BottomNavbar";
import ReferralTracker from "@/components/ReferralTracker";
import { Montserrat } from "next/font/google";
import "@/styles/globals.css";
import { EventProvider } from "@/context/EventContext";
import { EventService } from "@/services/EventService";
const montserrat = Montserrat({ subsets: ["latin"] });
const siteUrl = "https://sinfo.org";
export const metadata: Metadata = {
metadataBase: new URL(siteUrl),
title: {
default: "SINFO — Portugal's Biggest Free Tech Conference",
template: "%s | SINFO",
},
description:
"SINFO is Portugal's biggest free technology conference, held annually at Instituto Superior Técnico in Lisbon. Join thousands of tech enthusiasts, industry leaders, and innovators.",
keywords: [
"SINFO",
"tech conference",
"Portugal",
"Lisbon",
"IST",
"technology",
"speakers",
"innovation",
"free conference",
],
authors: [{ name: "SINFO", url: siteUrl }],
creator: "SINFO",
openGraph: {
type: "website",
locale: "en_US",
url: siteUrl,
siteName: "SINFO",
title: "SINFO — Portugal's Biggest Free Tech Conference",
description:
"SINFO is Portugal's biggest free technology conference, held annually at Instituto Superior Técnico in Lisbon. Join thousands of tech enthusiasts, industry leaders, and innovators.",
images: [
{
url: "/images/pages/home.jpg",
alt: "SINFO — Portugal's Biggest Free Tech Conference",
},
],
},
twitter: {
card: "summary_large_image",
title: "SINFO — Portugal's Biggest Free Tech Conference",
description:
"SINFO is Portugal's biggest free technology conference, held annually at Instituto Superior Técnico in Lisbon.",
images: ["/images/pages/home.jpg"],
creator: "@sinfosl",
},
robots: {
index: true,
follow: true,
googleBot: {
index: true,
follow: true,
"max-image-preview": "large",
"max-snippet": -1,
},
},
alternates: {
canonical: siteUrl,
},
};
export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
maximumScale: 1,
userScalable: true,
viewportFit: "cover",
};
export default async function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
const event = await EventService.getLatest();
return (
<html lang="en" className="bg-sinfo-primary">
<body className={montserrat.className}>
<EventProvider initialEvent={event}>
<ReferralTracker />
<div className="min-h-dvh text-white flex flex-col">
<Toolbar />
<div className="flex-1 bg-gray-100 text-black">{children}</div>
<BottomNavbar />
</div>
</EventProvider>
</body>
</html>
);
}