feat: add net-zero co2 badge (#30)

Reviewed-on: https://codeberg.org/nhcarrigan/portfolio/pulls/30
Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
This commit is contained in:
2024-10-23 19:59:59 +00:00
committed by Naomi the Technomancer
parent 2e655fabbd
commit 561b588c6f
2 changed files with 70 additions and 22 deletions

View File

@ -4,6 +4,7 @@ import "./globals.css";
import { ClientNavigation } from "@/components/navigation";
import Script from "next/script";
import PlausibleProvider from "next-plausible";
import { ClientFooter } from "@/components/footer";
const inter = Inter({ subsets: ["latin"] });
@ -28,30 +29,46 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<PlausibleProvider domain="nhcarrigan.com" customDomain="https://analytics.nhcarrigan.com" trackFileDownloads={true} trackOutboundLinks={true}>
<link rel="icon" href="https://cdn.nhcarrigan.com/logo.png" sizes="any" />
<body className={inter.className}>
<header>
<ClientNavigation />
</header>
{children}
<video
src="https://cdn.nhcarrigan.com/overlay.webm"
autoPlay
loop
muted
playsInline
className="fixed top-0 left-0 w-full h-full object-cover opacity-25"
style={{ pointerEvents: "none" }}
/>
</body>
<Script
type="text/javascript"
id="hs-script-loader"
async
defer
src="//js.hs-scripts.com/47086586.js"
strategy="beforeInteractive"
src="https://widgets.tree-nation.com/js/widgets/v1/widgets.min.js?v=1.0"
></Script>
<PlausibleProvider
domain="nhcarrigan.com"
customDomain="https://analytics.nhcarrigan.com"
trackFileDownloads={true}
trackOutboundLinks={true}
>
<link
rel="icon"
href="https://cdn.nhcarrigan.com/logo.png"
sizes="any"
/>
<body className={inter.className}>
<header>
<ClientNavigation />
</header>
{children}
<video
src="https://cdn.nhcarrigan.com/overlay.webm"
autoPlay
loop
muted
playsInline
className="fixed top-0 left-0 w-full h-full object-cover opacity-25"
style={{ pointerEvents: "none" }}
/>
<footer>
<ClientFooter />
</footer>
</body>
<Script
type="text/javascript"
id="hs-script-loader"
async
defer
src="//js.hs-scripts.com/47086586.js"
></Script>
</PlausibleProvider>
</html>
);