diff --git a/src/app/(static)/layout.tsx b/src/app/(static)/layout.tsx index 2d9733f..ce7c8f0 100644 --- a/src/app/(static)/layout.tsx +++ b/src/app/(static)/layout.tsx @@ -1,11 +1,13 @@ import { PropsWithChildren } from 'react'; import Footer from '@/containers/footer'; +import Newsletter from '@/containers/newsletter'; export default function StaticPageLayout({ children }: Readonly) { return (
{children} +
); diff --git a/src/components/app-menu/content.tsx b/src/components/app-menu/content.tsx index 510f979..538ed29 100644 --- a/src/components/app-menu/content.tsx +++ b/src/components/app-menu/content.tsx @@ -11,19 +11,10 @@ import { cn } from '@/lib/utils'; import { menuOpenAtom } from '@/app/store'; import { SECTIONS } from '@/containers/header'; -import Newsletter from '@/containers/newsletter'; - -import { - Dialog, - DialogContent, - DialogHeader, - DialogTitle, - DialogTrigger, -} from '@/components/ui/dialog'; const navItemContainerClass = 'hover:text-navy-500 relative inline-flex items-center space-x-6 text-xl text-grey-800 2xl:text-4xl' as const; -const NavItem = (props: PropsWithChildren) => { +const NavItem = (props: PropsWithChildren) => { const setOpen = useSetAtom(menuOpenAtom); const Text = ( <> @@ -32,32 +23,6 @@ const NavItem = (props: PropsWithChildren ); - if (props.isDialogButton) { - return ( - - - - - - - - Interested in our work? - - - - - - ); - } - return ( {
    {SECTIONS.map((item) => (
  • - - {item.name} - + {item.name}
  • ))}
diff --git a/src/containers/header/index.tsx b/src/containers/header/index.tsx index e0b470e..965cab6 100644 --- a/src/containers/header/index.tsx +++ b/src/containers/header/index.tsx @@ -14,7 +14,7 @@ export const SECTIONS = [ { name: 'About', href: '/about' }, { name: 'Cases', href: '/cases' }, { name: 'Events & News', href: '/events-news' }, - { name: 'Contact us', href: '#contact-us' }, + { name: 'Contact us', href: 'mailto:more4nature_project@un-ihe.org' }, ] as const; export default function Header({ diff --git a/src/containers/newsletter/index.tsx b/src/containers/newsletter/index.tsx index 0adfdf5..e6c26a7 100644 --- a/src/containers/newsletter/index.tsx +++ b/src/containers/newsletter/index.tsx @@ -120,9 +120,16 @@ export default function Newsletter() { ); return ( -
+
+

+ Interested in environmental conservation? +

- +