website: add announcement banner

This commit is contained in:
Yangshun 2021-09-19 02:24:15 +08:00
parent 4da53aac23
commit d0f47427ac
2 changed files with 9 additions and 0 deletions

View File

@ -10,6 +10,10 @@ module.exports = {
projectName: 'front-end-interview-handbook',
onBrokenLinks: 'ignore',
themeConfig: {
announcementBar: {
id: 'announcement-1', // Increment on change
content: `⭐️ Front End Interview Handbook now includes content on coding questions and system design questions!⭐️`,
},
prism: {
theme: require('prism-react-renderer/themes/github'),
darkTheme: require('prism-react-renderer/themes/dracula'),

View File

@ -37,3 +37,8 @@ html[data-theme='dark'] {
--ifm-h3-font-size: 1.25rem;
}
}
div[class^='announcementBar_'] {
background-color: var(--ifm-color-primary);
font-weight: bold;
}