Skip to content

Commit

Permalink
feat(website): add announcement bar (#56)
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Miglinci <[email protected]>
  • Loading branch information
pmig committed Jan 19, 2024
1 parent aa2971a commit 5c6ee1c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
9 changes: 9 additions & 0 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ const config: Config = {
]
],
themeConfig: {
colorMode : {
respectPrefersColorScheme: true,
},
announcementBar: {
id: 'announcementBar-0', // Increment on change
// content: '⭐️ If you like <code>glasskube</code>, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/glasskube/glasskube">GitHub</a> and follow us on <a target="_blank" rel="noopener noreferrer" href="https://x.com/glasskube">X</a> ⭐️',
content: `🎉️ <a target="_blank" href="https://github.com/glasskube/glasskube"><code>glasskube</code></a> is pre launching on GitHub 🥳️`,
isCloseable: false
},
image: 'img/glasskube-social-card.jpg',
navbar: {
title: 'Glasskube',
Expand Down
17 changes: 17 additions & 0 deletions website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
* work well for content-centric websites.
*/

/*$main-1: #0c263b;*/
/*$main-2: #174c76;*/
/*$main-3: #00b5eb;*/
/*$main-light: #ebf8fb;*/
/*$grey-0: #101010;*/
/*$grey-7: #fbfbfb;*/
/*$red: #ff4136;*/
/*$pink: #e03466;*/

/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #174c76;
Expand Down Expand Up @@ -43,3 +52,11 @@
--ifm-hero-background-color: var(--ifm-color-primary-darker);
--ifm-hero-text-color: var(--ifm-font-color-base);
}


div[class^='announcementBar_'] {
font-size: 20px;
color: var(--ifm-font-color-base);
background: linear-gradient(to right, #e03466, #63c5e3);
font-weight: bold;
}

0 comments on commit 5c6ee1c

Please sign in to comment.