Repository navigation
Expand file tree
/
Copy pathlayout.tsx
More file actions
75 lines (70 loc) · 2.12 KB
/
Copy pathlayout.tsx
File metadata and controls
75 lines (70 loc) · 2.12 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
import localFont from "next/font/local";
import "./globals.css";
import { ToastContainer } from "react-toastify";
import { FloatingBlob } from './components/FloatingBlob'
import { Navbar } from "./components/Navbar";
import { Metadata } from "next";
import { Analytics } from "@vercel/analytics/react"
import { SpeedInsights } from "@vercel/speed-insights/next"
import Script from "next/script";
import profilePic from './images/profile_pic_8x.jpeg'
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: "Minh Ha",
description: "My journey, learnings, and projects in tech",
authors: [{ name: "Minh Ha", url: "https://minhified.codes" }],
openGraph: {
title: "Minh Ha",
description: "My journey, learnings, and projects in tech",
images: profilePic.src,
type: "website"
}
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<Script>
{
// <!-- Hotjar Tracking Code for https://minhified.codes -->
`
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:5258342,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
`
}
</Script>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased bg-gray-900 text-gray-100 dark`}
>
<ToastContainer theme="dark" />
<Navbar />
<Analytics />
<SpeedInsights />
<div className="relative">
<FloatingBlob />
<div className="relative">
{children}
</div>
</div>
</body>
</html>
);
}