@veracity/vui
Version:
Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.
76 lines (74 loc) • 2.12 kB
JavaScript
import { cs } from "../utils/styles.js";
import { useStyleConfig } from "../core/theme.js";
import vui from "../core/vui.js";
import { Box } from "../box/box.js";
import { T } from "../t/t.js";
import { Link } from "../link/link.js";
import { useFooterContext } from "./context.js";
import { FooterHeading } from "./footerHeading.js";
import FooterColumn from "./footerColumn.js";
import { jsx, jsxs } from "react/jsx-runtime";
//#region src/footer/footerTrademark.tsx
const defaultLinkedInUrl = "https://www.linkedin.com/showcase/veracity-data-platform";
/** Section includes a heading and a set of links. */
const FooterTrademark = vui((props, ref) => {
const { className, linkedIn, ...rest } = props;
const styles = useStyleConfig("Footer", useFooterContext());
return /* @__PURE__ */ jsxs(Box, {
className: cs("vui-footerTrademark", className),
ref,
w: "100%",
gap: {
xs: 1,
sm: 0
},
wrap: true,
...styles.trademark,
...rest,
children: [/* @__PURE__ */ jsx(FooterColumn, {
centerV: true,
flex: {
xs: "0 0 100%",
md: "0 0 25%"
},
maxW: "auto",
children: /* @__PURE__ */ jsx(Link, {
fontWeight: "demi",
href: linkedIn ?? "https://www.linkedin.com/showcase/veracity-data-platform",
startIcon: /* @__PURE__ */ jsx(Link.Icon, {
mr: 1,
left: 0,
name: "brandCircleLinkedIn",
radius: "50%",
size: "sm"
}),
isExternal: true,
...styles.link,
children: /* @__PURE__ */ jsx(FooterHeading, {
mb: 0,
text: "Follow us"
})
})
}), /* @__PURE__ */ jsx(FooterColumn, {
centerV: true,
flex: {
xs: "0 0 100%",
md: "0 0 75%"
},
maxW: "auto",
children: /* @__PURE__ */ jsxs(T, {
size: "xs",
children: [/* @__PURE__ */ jsx(T, {
size: "xs",
fontWeight: "demi",
children: "Veracity by DNV"
}), ", DNV AS, NO-1322 Høvik, Norway"]
})
})]
});
});
FooterTrademark.displayName = "FooterTrademark";
//#endregion
export { FooterTrademark, FooterTrademark as default, defaultLinkedInUrl };
globalThis.__vuiVersion__ = "5.3.1"
//# sourceMappingURL=footerTrademark.js.map