Skip to content

Commit

Permalink
adding redis 7.2 announcement bar
Browse files Browse the repository at this point in the history
  • Loading branch information
wjohnsto committed Aug 15, 2023
1 parent 09d8d1b commit 6a8b8d8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,14 +314,14 @@ module.exports = {
// Useful if you want to support a single color mode
disableSwitch: false,
},
// announcementBar: {
// id: 'redisconf20201cfp', // Any value that will identify this message.
// content:
// '<a href="https://redis.com/redisdays/" target="_blank" rel="noopener">RedisDays Available Now On-Demand.</a>',
// backgroundColor: '#fff', // Defaults to `#fff`.
// textColor: '#000', // Defaults to `#000`.
// isCloseable: true, // Defaults to `true`.
// },
announcementBar: {
id: 'redis-7-2-release', // Any value that will identify this message.
content:
'<div class="announcement-bar"><a href="https://redis.com/blog/introducing-redis-7-2/" target="_blank" rel="noopener"><span>Announcing Redis 7.2 and Enhanced Vector DB</span> <span style="margin-left:1rem">Learn more</span> <span style="margin-left:0.25rem">→</span></a></div>',
backgroundColor: 'rgb(210, 215, 254)', // Defaults to `#fff`.
textColor: 'rgb(22 31 49)', // Defaults to `#000`.
isCloseable: true, // Defaults to `true`.
},
}),
presets: [
[
Expand Down
13 changes: 13 additions & 0 deletions src/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,16 @@ html[data-theme='dark'] {
.home-main {
overflow: hidden;
}

.announcement-bar {
:hover {
color: rgb(79, 70, 229);
}

> a {
display: inline-block;
width:100%;
text-decoration: none !important;
font-size: 1rem;
}
}

0 comments on commit 6a8b8d8

Please sign in to comment.