1
0
Fork 0
freesewing/sites/dev/components/navigation/modal-menu.mjs

48 lines
1.7 KiB
JavaScript
Raw Normal View History

2023-05-22 19:53:24 +02:00
import { SectionsMenu, ns as sectionsNs } from 'site/components/navigation/sections-menu.mjs'
import { useTranslation } from 'next-i18next'
import { ActiveSection, ns as primaryNs } from 'shared/components/navigation/primary.mjs'
import { ModalWrapper } from 'shared/components/wrappers/modal.mjs'
2023-05-22 19:53:24 +02:00
import { nsMerge } from 'shared/utils.mjs'
import { ChoiceLink } from 'shared/components/choice-link.mjs'
2023-05-22 19:53:24 +02:00
export const ns = nsMerge(primaryNs, sectionsNs)
export const ModalMenu = () => {
const { t } = useTranslation(ns)
return (
2023-05-22 19:53:24 +02:00
<ModalWrapper flex="col" justify="top" slideFrom="left">
<div className="max-w-full">
<div
className={`
2023-05-22 19:53:24 +02:00
py-4 w-full m-auto
flex flex-col-reverse gap-0 flex-wrap justify-between
lg:max-w-6xl lg:flex-nowrap lg:gap-8 lg:flex-row
`}
>
<div className="w-full lg:w-1/2">
2023-05-22 19:53:24 +02:00
<h3>Content per role</h3>
<SectionsMenu />
2023-05-22 19:53:24 +02:00
<h3 className="mt-8">Content per documentation type</h3>
<SectionsMenu bOnly />
</div>
<div className="w-full lg:w-1/2">
2023-05-22 19:53:24 +02:00
<h3>You are here</h3>
<ActiveSection bare />
2023-05-22 19:53:24 +02:00
<h3 className="mt-8">Search & Sitemap</h3>
<p>Cannot find what you are looking for?</p>
<ChoiceLink href="/search" title="Search">
If you cannot find what you are looking for but you know the key words, try our
search.
</ChoiceLink>
<ChoiceLink href="/sitemap" title="Sitemap">
The sitemap lists all pages on this website. It can give you a good idea of what you
can find here.
</ChoiceLink>
</div>
</div>
</div>
</ModalWrapper>
)
}