Skip to content

Commit

Permalink
show hidden animated elements when js is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tarikcoskun committed Oct 11, 2024
1 parent 9ef46c1 commit 22fa2a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/(main)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ import { Footer } from "@/components/layout/Footer";
export default function MainLayout({ children }: React.PropsWithChildren) {
return (
<>
<noscript>
<style dangerouslySetInnerHTML={{
__html: "[style*=\"opacity:0\"] { opacity: unset !important; transform: unset !important; }",
}}
/>
</noscript>

<Navbar />
{children}
<Footer />
Expand Down

0 comments on commit 22fa2a8

Please sign in to comment.