@undp/design-system-react
Version:
React based design system for UNDP
2 lines • 2.16 kB
JavaScript
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./utils-Dd9-5CFr.cjs"),t=require("./Typography.cjs");let n=require("react/jsx-runtime");function r({className:t,children:r,...i}){return(0,n.jsx)(`footer`,{...i,className:e.t(`h-auto w-full bg-footer-background px-3 pt-14 pb-12 text-content-reverse`,t),children:(0,n.jsx)(`div`,{className:e.t(`mx-auto w-full sm:w-[83.333%]`),children:r})})}function i({className:t,children:r,...i}){return(0,n.jsx)(`div`,{className:e.t(`mx-auto h-auto w-full sm:w-[83.333%]`,t),...i,children:r})}function a({className:r,link:i,children:a,locale:o=`en`,...s}){return(0,n.jsxs)(`div`,{...s,className:e.t(`mb-8 flex flex-wrap items-center justify-between gap-x-4 gap-y-6 border-b border-b-background px-3 pt-0 pb-12`,r),children:[(0,n.jsxs)(`div`,{className:`m-0 flex items-center gap-4`,children:[(0,n.jsx)(`a`,{href:i||`./`,target:`_blank`,rel:`noreferrer`,children:(0,n.jsx)(`img`,{alt:`undp logo`,src:`https://cdn.jsdelivr.net/npm/@undp/design-system-assets/images/${o===`es`||o===`fr`?`pnud`:`undp`}-logo-white.svg`,className:`w-[60px]`})}),(0,n.jsxs)(t.H5,{className:`text-content-reverse`,marginBottom:`none`,children:[`United Nations`,(0,n.jsx)(`br`,{}),`Development Programme`]})]}),(0,n.jsx)(`div`,{children:a})]})}function o({className:e,children:t,...r}){return(0,n.jsx)(`div`,{...r,className:e,children:t})}function s({className:r,children:i,...a}){return(0,n.jsxs)(`div`,{...a,className:e.t(`mt-6 flex flex-wrap items-center justify-between gap-x-4 gap-y-6`,r),children:[(0,n.jsx)(t.P,{className:`m-0 px-0 py-0 text-content-reverse text-sm md:m-0 md:text-base lg:text-base`,children:`© United Nations Development Programme`}),(0,n.jsxs)(`div`,{className:`flex flex-wrap gap-x-4 gap-y-6`,children:[i,(0,n.jsx)(`a`,{href:`https://www.undp.org/copyright-terms-use`,target:`_blank`,rel:`noopener noreferrer`,className:`text-content-reverse text-sm opacity-100 hover:opacity-70 md:text-base`,children:`Terms of use`})]})]})}exports.Footer=r,exports.FooterContent=i,exports.FooterCopyrightUnit=s,exports.FooterLogoUnit=a,exports.FooterMainNavUnit=o;
//# sourceMappingURL=Footer.cjs.map