diff --git a/docs/src/components/HasuraConBanner/index.tsx b/docs/src/components/HasuraConBanner/index.tsx index a8ec06c15df..c97ba2f103f 100644 --- a/docs/src/components/HasuraConBanner/index.tsx +++ b/docs/src/components/HasuraConBanner/index.tsx @@ -1,19 +1,49 @@ import React from 'react'; -import hasuraConDark from '@site/static/img/hasura-con-dark.png'; -import hasuraConLight from '@site/static/img/hasura-con-light.png'; +// import hasuraConDark from '@site/static/img/hasura-con-dark.png'; +// import hasuraConLight from '@site/static/img/hasura-con-light.png'; import ArrowRight from '@site/static/icons/arrow_right.svg'; import styles from './styles.module.scss'; const HasuraConBanner = props => { - const isSnowFlakeSectionPage = props.location.pathname.startsWith(`/docs/latest/databases/snowflake`); + const isSnowFlakeSection = props.location.pathname.startsWith(`/docs/latest/databases/snowflake`); - const isObservabilitySectionPage = props.location.pathname.startsWith(`/docs/latest/observability`); + const isObservabilitySection = props.location.pathname.startsWith(`/docs/latest/observability`); - const isSecuritySectionPage = props.location.pathname.startsWith(`/docs/latest/security`); + const isSecuritySection = props.location.pathname.startsWith(`/docs/latest/security`); - if (isSnowFlakeSectionPage) { + const isMySQLSection = props.location.pathname.startsWith(`/docs/latest/databases/mysql`); + + const isOracleSection = props.location.pathname.startsWith(`/docs/latest/databases/oracle`); + + const isMariaDBSection = props.location.pathname.startsWith(`/docs/latest/databases/mariadb`); + + // Banner for - New product launch webinar */ + if (isMySQLSection || isOracleSection || isMariaDBSection) { + return ( +
+ ); + } + + if (isSnowFlakeSection) { return (