2023-07-21 14:22:46 +02:00
|
|
|
import { SectionsMenu } from 'shared/components/navigation/sections-menu.mjs'
|
2023-04-09 15:57:25 +02:00
|
|
|
import { useTranslation } from 'next-i18next'
|
|
|
|
import { ActiveSection, ns as primaryNs } from 'shared/components/navigation/primary.mjs'
|
2023-04-16 16:19:49 +02:00
|
|
|
import { ModalWrapper } from 'shared/components/wrappers/modal.mjs'
|
2023-07-26 18:23:49 +02:00
|
|
|
import { NavLinks, Breadcrumbs } from 'shared/components/navigation/sitenav.mjs'
|
|
|
|
import { PageLink } from 'shared/components/page-link.mjs'
|
2023-04-09 15:57:25 +02:00
|
|
|
|
|
|
|
export const ns = primaryNs
|
|
|
|
|
2023-05-08 19:28:03 +02:00
|
|
|
export const ModalMenu = () => {
|
2023-04-09 15:57:25 +02:00
|
|
|
const { t } = useTranslation(ns)
|
|
|
|
|
|
|
|
return (
|
2023-04-25 17:33:34 +02:00
|
|
|
<ModalWrapper flex="col" justify="top lg:justify-center" slideFrom="left">
|
2023-04-16 16:19:49 +02:00
|
|
|
<div className="max-w-full">
|
|
|
|
<div
|
|
|
|
className={`
|
2023-04-19 20:11:30 +02:00
|
|
|
py-4 lg:py-16 w-full m-auto
|
2023-04-16 16:19:49 +02:00
|
|
|
flex flex-col-reverse gap-0 flex-wrap justify-between
|
|
|
|
lg:max-w-6xl lg:flex-nowrap lg:gap-8 lg:flex-row
|
|
|
|
`}
|
|
|
|
>
|
2023-04-19 20:11:30 +02:00
|
|
|
<div className="w-full lg:w-1/2">
|
2023-05-08 19:28:03 +02:00
|
|
|
<SectionsMenu />
|
2023-04-16 16:19:49 +02:00
|
|
|
</div>
|
2023-04-19 20:11:30 +02:00
|
|
|
<div className="w-full lg:w-1/2">
|
2023-07-26 18:23:49 +02:00
|
|
|
<div className="flex flex-row gap-2 mb-4 items-center justify-center">
|
|
|
|
<PageLink href="/" txt={t('sections:home')} />
|
|
|
|
<span>|</span>
|
|
|
|
<PageLink href="/search" txt={t('sections:search')} />
|
|
|
|
<span>|</span>
|
|
|
|
<PageLink href="/sitemap" txt={t('sections:sitemap')} />
|
|
|
|
<span>|</span>
|
|
|
|
<PageLink href="/support" txt={t('sections:support')} />
|
|
|
|
</div>
|
|
|
|
<Breadcrumbs lead />
|
|
|
|
<NavLinks />
|
2023-05-08 19:28:03 +02:00
|
|
|
<ActiveSection bare />
|
2023-04-16 16:19:49 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-04-09 15:57:25 +02:00
|
|
|
</div>
|
2023-04-16 16:19:49 +02:00
|
|
|
</ModalWrapper>
|
2023-04-09 15:57:25 +02:00
|
|
|
)
|
|
|
|
}
|