Skip to content

Commit 6f20ef8

Browse files
committed
Add v4 announcement
1 parent 9bba7f6 commit 6f20ef8

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

docusaurus.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ const config: Config = {
126126
require.resolve("./src/css/general.css"),
127127
require.resolve("./src/css/intro.css"),
128128
require.resolve("./src/css/navbar.css"),
129+
require.resolve("./src/css/announcement.css"),
129130
require.resolve("./src/css/docsearch.css"),
130131
require.resolve("./src/css/menu.css"),
131132
require.resolve("./src/css/badge.css"),
@@ -142,6 +143,13 @@ const config: Config = {
142143
],
143144

144145
themeConfig: {
146+
announcementBar: {
147+
id: "v4_early_access",
148+
content:
149+
'🚀 imgproxy v4 is almost here! <a href="https://imgproxy.net/v4-early-access" target="_blank" rel="noopener noreferrer">Join Early Access Program</a> to test imgproxy Pro v4 for free and get a discount on your first year of subscription!',
150+
isCloseable: true,
151+
},
152+
145153
colorMode: {
146154
defaultMode: "dark",
147155
disableSwitch: false,

src/css/announcement.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.theme-announcement-bar {
2+
--docusaurus-announcement-bar-height: auto;
3+
4+
background-color: var(--neon-a-bg) !important;
5+
color: var(--text-primary) !important;
6+
font-variation-settings: "wght" 400, "wdth" 75;
7+
padding: 2px 0;
8+
9+
& a {
10+
color: var(--neon-a-fg) !important;
11+
}
12+
13+
& .close {
14+
color: var(--text-primary);
15+
flex-basis: 50px;
16+
}
17+
}

0 commit comments

Comments
 (0)