Skip to content

Commit 0654c4d

Browse files
authored
doc/website: add banner (#786)
1 parent bc81450 commit 0654c4d

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

doc/website/docusaurus.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ module.exports = {
8888
<br/>
8989
`,
9090
},
91+
announcementBar: {
92+
id: 'announcementBar-1', // Increment on change
93+
content: `️🚀 Sign up for a user testing session and receive exclusive Atlas swag, register <a target="_blank" rel="noopener noreferrer" href="https://calendly.com/ariga-user-testing/atlas-user-testing">here!</a>`,
94+
isCloseable: true,
95+
},
9196
},
9297
plugins: [
9398
[

doc/website/src/css/custom.css

+24
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,28 @@ span.token.punctuation {
136136

137137
div.language-hcl * span.token.property {
138138
color: #9CDCFE;
139+
}
140+
141+
:root {
142+
--site-primary-hue-saturation: 217, 73%, 78%;
143+
--ifm-footer-title-color: white;
144+
}
145+
146+
div[class^='announcementBar_'] {
147+
--site-announcement-bar-stripe-color1: hsl(
148+
var(--site-primary-hue-saturation),
149+
30%
150+
);
151+
--site-announcement-bar-stripe-color2: hsl(
152+
var(--site-primary-hue-saturation),
153+
55%
154+
);
155+
background: repeating-linear-gradient(
156+
35deg,
157+
var(--site-announcement-bar-stripe-color1),
158+
var(--site-announcement-bar-stripe-color1) 20px,
159+
var(--site-announcement-bar-stripe-color2) 10px,
160+
var(--site-announcement-bar-stripe-color2) 40px
161+
);
162+
font-weight: bold;
139163
}

doc/website/src/pages/index.module.css

+24
Original file line numberDiff line numberDiff line change
@@ -593,4 +593,28 @@ html[data-theme='dark'] .subtitle2 {
593593
}
594594
html[data-theme='dark'] .subtitleMargin {
595595
color: white;
596+
}
597+
598+
:root {
599+
--site-primary-hue-saturation: 217, 73%, 78%;
600+
--ifm-footer-title-color: white;
601+
}
602+
603+
div[class^='announcementBar_'] {
604+
--site-announcement-bar-stripe-color1: hsl(
605+
var(--site-primary-hue-saturation),
606+
30%
607+
);
608+
--site-announcement-bar-stripe-color2: hsl(
609+
var(--site-primary-hue-saturation),
610+
55%
611+
);
612+
background: repeating-linear-gradient(
613+
35deg,
614+
var(--site-announcement-bar-stripe-color1),
615+
var(--site-announcement-bar-stripe-color1) 20px,
616+
var(--site-announcement-bar-stripe-color2) 10px,
617+
var(--site-announcement-bar-stripe-color2) 40px
618+
);
619+
font-weight: bold;
596620
}

0 commit comments

Comments
 (0)