Skip to content

Commit

Permalink
add accessibility widget
Browse files Browse the repository at this point in the history
  • Loading branch information
FoggyMtnDrifter committed Apr 17, 2024
1 parent 9d0633c commit 57e916e
Show file tree
Hide file tree
Showing 4 changed files with 1,028 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
typings/
typings/
public/
2 changes: 2 additions & 0 deletions app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Footer from "./Footer";

import type { Metadata } from "next";
import type { ReactNode } from "react";
import AccessibilityWidget from "@/components/AccessibilityWidget";

type RootLayoutProps = {
children: ReactNode;
Expand Down Expand Up @@ -62,6 +63,7 @@ export default function RootLayout({
<main>{children}</main>
<Footer />
</ThemeProvider>
<AccessibilityWidget />
</body>
</html>
);
Expand Down
12 changes: 12 additions & 0 deletions components/AccessibilityWidget.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import Script from "next/script";

function AccessibilityWidget() {
return (
<Script
src="/sienna.min.js"
strategy="afterInteractive"
/>
);
}

export default AccessibilityWidget;
Loading

0 comments on commit 57e916e

Please sign in to comment.