mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-26 17:37:33 +00:00
docs:remove hubspot form and instead link to acryldata.io (#3488)
This commit is contained in:
parent
f49666a230
commit
05273a5c45
@ -33,7 +33,7 @@ module.exports = {
|
||||
announcementBar: {
|
||||
id: "announcement",
|
||||
content:
|
||||
'<div><img src="/img/acryl-logo-white-mark.svg" /><p><strong>Managed DataHub</strong><span> Acryl Data delivers an easy to consume DataHub platform for the enterprise</span></p></div> <a href="/managed" class="button button--primary">Sign up for Managed DataHub →</a>',
|
||||
'<div><img src="/img/acryl-logo-white-mark.svg" /><p><strong>Managed DataHub</strong><span> Acryl Data delivers an easy to consume DataHub platform for the enterprise</span></p></div> <a href="https://www.acryldata.io/beta?utm_source=datahubproject" target="_blank" class="button button--primary">Sign up for Managed DataHub →</a>',
|
||||
backgroundColor: "#090a11",
|
||||
textColor: "#ffffff",
|
||||
isCloseable: false,
|
||||
|
||||
@ -26,8 +26,7 @@
|
||||
"docusaurus-plugin-sass": "^0.2.1",
|
||||
"react": "^16.12.0",
|
||||
"react-dom": "^16.12.0",
|
||||
"sass": "^1.43.2",
|
||||
"uuid": "^8.3.2"
|
||||
"sass": "^1.43.2"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import React from "react";
|
||||
import clsx from "clsx";
|
||||
import useBaseUrl from "@docusaurus/useBaseUrl";
|
||||
import Link from "@docusaurus/Link";
|
||||
|
||||
import styles from "../styles/section.module.scss";
|
||||
|
||||
@ -14,12 +13,13 @@ const AnnouncementSection = () => (
|
||||
Acryl Data delivers an easy to consume DataHub platform for the
|
||||
enterprise
|
||||
</p>
|
||||
<Link
|
||||
to={useBaseUrl("/managed")}
|
||||
<a
|
||||
href="https://www.acryldata.io/datahub-beta"
|
||||
target="_blank"
|
||||
class="button button--primary button--lg"
|
||||
>
|
||||
Sign up for Managed DataHub →
|
||||
</Link>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
||||
@ -1,45 +0,0 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
|
||||
const makeHubspotForm = (formId, uniqueId) => {
|
||||
window.hbspt.forms.create({
|
||||
region: "na1",
|
||||
portalId: "14552909",
|
||||
formId: formId,
|
||||
target: `#form-${uniqueId}`,
|
||||
formInstanceId: `instance-${uniqueId}`,
|
||||
});
|
||||
};
|
||||
|
||||
const loadHubspotScript = (formId, uniqueId) => {
|
||||
let script = document.createElement(`script`);
|
||||
script.defer = true;
|
||||
script.onload = () => {
|
||||
makeHubspotForm(formId, uniqueId);
|
||||
};
|
||||
script.src = `//js.hsforms.net/forms/v2.js`;
|
||||
document.head.appendChild(script);
|
||||
};
|
||||
|
||||
const HubspotForm = ({ formId }) => {
|
||||
const [uniqueId, setUniqueID] = useState(null);
|
||||
const [loading, setLoading] = useState(true);
|
||||
|
||||
useEffect(() => {
|
||||
setUniqueID(uuidv4());
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (uniqueId) {
|
||||
if (!window.hbspt) {
|
||||
loadHubspotScript(formId, uniqueId);
|
||||
} else {
|
||||
makeHubspotForm(formId, uniqueId);
|
||||
}
|
||||
setLoading(false);
|
||||
}
|
||||
}, [uniqueId]);
|
||||
return <>{loading ? <>Loading...</> : <div id={`form-${uniqueId}`}></div>}</>;
|
||||
};
|
||||
|
||||
export default HubspotForm;
|
||||
@ -1,30 +0,0 @@
|
||||
import React from "react";
|
||||
import Layout from "@theme/Layout";
|
||||
import HubspotForm from "../components/HubspotForm";
|
||||
|
||||
function Managed() {
|
||||
return (
|
||||
<Layout title="Managed DataHub">
|
||||
<div className="container">
|
||||
<div
|
||||
className="row"
|
||||
style={{ padding: "5vh 2rem", justifyContent: "center" }}
|
||||
>
|
||||
<div className="col col--6">
|
||||
<div
|
||||
style={{
|
||||
background: "white",
|
||||
padding: "2rem",
|
||||
borderRadius: "10px",
|
||||
}}
|
||||
>
|
||||
<HubspotForm formId="ae8c7cd1-1db3-4483-b1db-b169813b9129" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
||||
export default Managed;
|
||||
@ -9833,11 +9833,6 @@ uuid@^3.3.2, uuid@^3.4.0:
|
||||
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
|
||||
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
|
||||
|
||||
uuid@^8.3.2:
|
||||
version "8.3.2"
|
||||
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
|
||||
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
|
||||
|
||||
valid-url@1.0.9:
|
||||
version "1.0.9"
|
||||
resolved "https://registry.yarnpkg.com/valid-url/-/valid-url-1.0.9.tgz#1c14479b40f1397a75782f115e4086447433a200"
|
||||
|
||||
@ -4,8 +4,9 @@ Sign up for fully managed, hassle-free and secure SaaS service for DataHub, prov
|
||||
|
||||
<p>
|
||||
<a
|
||||
className='button button--primary button--lg'
|
||||
href="https://datahubproject.io/managed">
|
||||
className="button button--primary button--lg"
|
||||
href="https://www.acryldata.io/datahub-beta"
|
||||
target="_blank" >
|
||||
Sign up
|
||||
</a>
|
||||
</p>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user