aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/templates/layout
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/templates/layout')
-rw-r--r--src/components/templates/layout/layout.tsx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/templates/layout/layout.tsx b/src/components/templates/layout/layout.tsx
index 16c9180..19cefce 100644
--- a/src/components/templates/layout/layout.tsx
+++ b/src/components/templates/layout/layout.tsx
@@ -1,3 +1,4 @@
+import Head from 'next/head';
import {
useRef,
type FC,
@@ -53,6 +54,16 @@ export const Layout: FC<LayoutProps> = ({ children, isHome }) => {
return (
<>
+ <Head>
+ <noscript>
+ <style>
+ {/* eslint-disable-next-line react/jsx-no-literals */}
+ {`.js-only {
+ display: none !important;
+ }`}
+ </style>
+ </noscript>
+ </Head>
<span id={topId} ref={topRef} tabIndex={-1} />
<noscript>
<div className={styles['noscript-spacing']} />