Skip to content

Commit e186241

Browse files
authored
Feat/beta announcement (tauri-apps#220)
* feat: Added announcement bar * fix: Styling
1 parent 18b1236 commit e186241

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

docusaurus.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ const siteConfig = {
2727
colorMode: {
2828
defaultMode: 'dark'
2929
},
30-
// announcementBar: {
31-
// id: 'testapp',
32-
// content: t.config.announcementBar.validationApp,
33-
// backgroundColor: 'var(--ifm-color-primary)',
34-
// },
30+
announcementBar: {
31+
id: 'beta',
32+
content: t.config.announcementBar.betaSentence,
33+
backgroundColor: 'var(--ifm-color-primary)',
34+
},
3535
navbar: {
3636
hideOnScroll: false,
3737
title: ' ',

src/css/custom.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,3 +296,8 @@ html[data-theme='light'] .header-github-link::before {
296296
.react-toggle {
297297
display: inline-block;
298298
}
299+
300+
#announcement-beta {
301+
font-weight: bold;
302+
margin-top: 10px;
303+
}

translations/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"config": {
33
"announcementBar": {
4-
"validationApp": "New Validation App Coming Soon"
4+
"betaSentence": "<div id='announcement-beta'>🚀 Tauri Beta has landed! <a target='_blank' rel='noopener noreferrer' href='https://dev.to/tauri/announcing-tauri-beta-more-efficient-crossplatform-apps-with-better-features-1nbd'>Click here for more details.</a></div>"
55
},
66
"tagline": "Build smaller, faster, and more secure desktop applications with a web frontend"
77
},

0 commit comments

Comments
 (0)