diff --git a/components/LayoutFrontPage.jsx b/components/LayoutFrontPage.jsx
index 0bf1238..eb0d0c8 100644
--- a/components/LayoutFrontPage.jsx
+++ b/components/LayoutFrontPage.jsx
@@ -6,13 +6,16 @@ import { SiteFooter } from './SiteFooter'
import { PrimaryNavigation } from '@/components/PrimaryNavigation'
import { SiteHeader } from '@/components/SiteHeader'
+import { SitewideNotice } from '@/components/SitewideNotice'
LayoutFrontPage.fragment = gql`
fragment LayoutFrontPageFragment on RootQuery {
+ ...SitewideNoticeFragment
...PrimaryNavigationFragment
...FooterNavigationFragment
}
+ ${SitewideNotice.fragment}
${PrimaryNavigation.fragment}
${FooterNavigation.fragment}
`
@@ -36,7 +39,8 @@ export function LayoutFrontPage({ data, children }) {
: []
return (
<>
-
+
+
{children}
diff --git a/components/SiteHeader.jsx b/components/SiteHeader.jsx
index ed99d8e..c886066 100644
--- a/components/SiteHeader.jsx
+++ b/components/SiteHeader.jsx
@@ -10,9 +10,11 @@ import { PrimaryNavigation } from '@/components/PrimaryNavigation'
import { Search } from '@/components/Search'
import { ModeToggle } from '@/components/ThemeSelector'
-export function SiteHeader({ navigation }) {
+export function SiteHeader({ navigation, isNoticeVisible = false }) {
let [isScrolled, setIsScrolled] = useState(false)
+ const headerTopPosition = isNoticeVisible ? 'top-12' : 'top-0';
+
useEffect(() => {
function onScroll() {
setIsScrolled(window.scrollY > 0)
@@ -27,7 +29,9 @@ export function SiteHeader({ navigation }) {
return (
+ )
+ }
+}
diff --git a/wp-blocks/AcfFieldTypeSettingsBlock.js b/wp-blocks/AcfFieldTypeSettingsBlock.js
index bf5ad7c..f5741e8 100644
--- a/wp-blocks/AcfFieldTypeSettingsBlock.js
+++ b/wp-blocks/AcfFieldTypeSettingsBlock.js
@@ -1,5 +1,4 @@
import { gql } from '@apollo/client';
-import clsx from 'clsx'
import React, { useState } from 'react';
import { Button } from "@/components/ui/button";
@@ -8,7 +7,7 @@ import { Card, CardFooter, CardHeader } from "@/components/ui/card";
const AccordionItem = ({ title, content, isOpen, onClick }) => {
return (
<>
-