Skip to content

Commit 6a8b8d8

Browse files
committed
adding redis 7.2 announcement bar
1 parent 09d8d1b commit 6a8b8d8

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

docusaurus.config.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -314,14 +314,14 @@ module.exports = {
314314
// Useful if you want to support a single color mode
315315
disableSwitch: false,
316316
},
317-
// announcementBar: {
318-
// id: 'redisconf20201cfp', // Any value that will identify this message.
319-
// content:
320-
// '<a href="https://redis.com/redisdays/" target="_blank" rel="noopener">RedisDays Available Now On-Demand.</a>',
321-
// backgroundColor: '#fff', // Defaults to `#fff`.
322-
// textColor: '#000', // Defaults to `#000`.
323-
// isCloseable: true, // Defaults to `true`.
324-
// },
317+
announcementBar: {
318+
id: 'redis-7-2-release', // Any value that will identify this message.
319+
content:
320+
'<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>',
321+
backgroundColor: 'rgb(210, 215, 254)', // Defaults to `#fff`.
322+
textColor: 'rgb(22 31 49)', // Defaults to `#000`.
323+
isCloseable: true, // Defaults to `true`.
324+
},
325325
}),
326326
presets: [
327327
[

src/css/custom.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,16 @@ html[data-theme='dark'] {
5555
.home-main {
5656
overflow: hidden;
5757
}
58+
59+
.announcement-bar {
60+
:hover {
61+
color: rgb(79, 70, 229);
62+
}
63+
64+
> a {
65+
display: inline-block;
66+
width:100%;
67+
text-decoration: none !important;
68+
font-size: 1rem;
69+
}
70+
}

0 commit comments

Comments
 (0)