@lanaco/lnc-react-ui
Version:
React component library
76 lines (68 loc) • 1.93 kB
JavaScript
import { jsxs as r, jsx as e } from "react/jsx-runtime";
import { forwardRef as a } from "react";
import { s as l } from "./emotion-styled.browser.esm-DfbrHHed.js";
import { d as s } from "./breakpoints-BubDitvo.js";
const c = l.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 ${s("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;
}
}
`, h = a(({ title: t, description: i, image: n }, o) => /* @__PURE__ */ r(c, { ref: o, children: [
/* @__PURE__ */ r("div", { className: "section__heading", children: [
t && /* @__PURE__ */ e("div", { className: "section__title", children: t }),
i && /* @__PURE__ */ e("div", { className: "section__description", children: i })
] }),
n && /* @__PURE__ */ e("img", { src: n, alt: "Banner", className: "section__image" })
] }));
export {
h as default
};