langflow/docs/src/theme/Footer.js
Lucas Oliveira 2f96dbbdd4
docs: replace documentation icon and primary color (#4582)
* Updated primary color to be pink

* Updated primary color and header logo

* Updated favico

* Updated icon on Mendable search for docs

* Yarn.lock update

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-11-14 09:58:42 +00:00

52 lines
1.2 KiB
JavaScript

import React from "react";
import Footer from "@theme-original/Footer";
import { MendableFloatingButton } from "@mendable/search";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
export default function FooterWrapper(props) {
const iconSpan1 = React.createElement(
"img",
{
src: "/img/langflow-icon-black-transparent.svg",
srcDark: "",
style: { width: "40px" },
},
null
);
const icon = React.createElement(
"div",
{
style: {
color: "#000000",
fontSize: "22px",
width: "48px",
height: "48px",
margin: "0px",
padding: "0px",
display: "flex",
alignItems: "center",
justifyContent: "center",
textAlign: "center",
},
},
[iconSpan1]
);
const {
siteConfig: { customFields },
} = useDocusaurusContext();
const mendableFloatingButton = React.createElement(MendableFloatingButton, {
floatingButtonStyle: { color: "#000000", backgroundColor: "#f6f6f6" },
anon_key: customFields.mendableAnonKey,
showSimpleSearch: true,
icon: icon,
});
return (
<>
<Footer />
{mendableFloatingButton}
</>
);
}