Skip to content

Commit

Permalink
Devconnect banner
Browse files Browse the repository at this point in the history
  • Loading branch information
gkoscky committed Nov 17, 2023
1 parent 8645f98 commit ef6c899
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,13 @@ module.exports = async function createConfigAsync() {
position: 'right',
},
],
},
announcementBar: {
id: "DevConnect",
content:
'<a href="https://lu.ma/hookathon" target="_blank" rel="noreferrer">🦄 ⚡️ Join the UNISUAVE Researchathon @Devconnect Istanbul!</a>',
isCloseable: false,
}

}),
presets: [
[
Expand Down
38 changes: 37 additions & 1 deletion src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,40 @@ h2 {
.menu__link--sublist::after {
background: var(--ifm-menu-link-sublist-icon) 50%/1.5rem 1.5rem;
opacity: .75;
}
}

div[role=banner] {
min-height: 32px;

> div {
min-height: 32px;
padding: 0px;
border: 0px;
display: flex;
align-items: center;
justify-content: center;
column-gap: 10px;
background-color: #e982ff;
color: #000000;
text-align: center;
font-size: 100%;
a {
font-family: "CMU-Serif";
font-size: 16px;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}
}
@media (min-width: 341px) and (max-width: 640px) {
div[role=banner] > div a {
flex-basis: 280px;
}
}
@media (max-width: 340px) {
div[role=banner] > div a {
flex-basis: 150px;
}
}

0 comments on commit ef6c899

Please sign in to comment.