UNPKG

@lanaco/lnc-react-ui

Version:

React component library

63 lines (55 loc) 1.76 kB
"use strict";const e=require("react/jsx-runtime"),o=require("react"),s=require("./emotion-styled.browser.esm-DwHBgTPn.cjs"),c=require("./breakpoints-CcVm-gVm.cjs"),l=s.styled.div` display: flex; flex-direction: column; align-items: center; gap: 2rem; & .section__heading { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; & .section__title { color: var(--gray-900, #0c1520); font-size: 1.5rem; font-style: normal; font-weight: 600; line-height: 2rem; } & .section__description { color: var(--gray-500, #7a8594); font-size: 1rem; font-style: normal; font-weight: 500; line-height: 1.5rem; } } @media ${c.down("S")} { & .section__heading { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; & .section__title { color: var(--gray-900, #0c1520); font-size: 1rem; font-style: normal; font-weight: 500; line-height: 1.5rem; } & .section__description { color: var(--gray-500, #7a8594); font-size: 0.875rem; font-style: normal; font-weight: 400; line-height: 1.25rem; letter-spacing: 0.0156rem; } } & .section__image { width: 100%; height: auto; } } `,a=o.forwardRef(({title:t,description:i,image:n},r)=>e.jsxs(l,{ref:r,children:[e.jsxs("div",{className:"section__heading",children:[t&&e.jsx("div",{className:"section__title",children:t}),i&&e.jsx("div",{className:"section__description",children:i})]}),n&&e.jsx("img",{src:n,alt:"Banner",className:"section__image"})]}));module.exports=a;