Skip to content

Commit

Permalink
feat(docs-site) brought back announcement banner (#11618)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayacryl authored Oct 15, 2024
1 parent d8ede69 commit c834cdb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
8 changes: 8 additions & 0 deletions docs-website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ module.exports = {
// isCloseable: false,
// },
// }),
announcementBar: {
id: "announcement-2",
content:
'<div style="display: flex; justify-content: center; align-items: center;width: 100%;"><!--img src="/img/acryl-logo-white-mark.svg" / --><div style="font-size: .8rem; font-weight: 600; background-color: white; color: #111; padding: 0px 8px; border-radius: 4px; margin-right:12px;">NEW</div><p><span>Join us at Metadata & AI Summit, Oct. 29 & 30!</span></p><a href="http://www.acryldata.io/conference?utm_source=datahub_web&utm_medium=metadata_ai_2024&utm_campaign=home_banner" target="_blank" class="button">Register →</a></div>',
backgroundColor: "#111",
textColor: "#ffffff",
isCloseable: false,
},
colorMode: {
// Only support light mode.
defaultMode: 'light',
Expand Down
2 changes: 1 addition & 1 deletion docs-website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function Home() {
return !siteConfig.customFields.isSaas ? (
<Layout
title={siteConfig.tagline}
description="DataHub is a data discovery application built on an extensible data catalog that helps you tame the complexity of diverse data ecosystems."
description="DataHub is a metadata management platform, spaning data discovery, observability and governance. It helps you tame the complexity of diverse data ecosystems."
>
{isTourModalVisible ? (
<div className="tourModal">
Expand Down
5 changes: 3 additions & 2 deletions docs-website/src/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
--ifm-navbar-item-padding-horizontal: 1rem;

/* Announcement Bar */
--docusaurus-announcement-bar-height: 60px !important;
--docusaurus-announcement-bar-height: 48px !important;

/* Rule */
--ifm-hr-border-width: 1px 0 0 0;
Expand Down Expand Up @@ -141,8 +141,9 @@ div[class^="announcementBar"] {
}

a {
color: var(--ifm-button-color);
color: #EFB300;
text-decoration: none;
font-size: 1rem
}
}
}
Expand Down

0 comments on commit c834cdb

Please sign in to comment.