Skip to content

Commit

Permalink
Add discord link (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
criccomini authored Aug 13, 2024
1 parent f0ecf7c commit 11d35b5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ const config: Config = {
position: 'right',
label: 'Docs',
},
{
href: "https://discord.gg/mHYmGy5MgA",
position: "right",
className: "header-discord-link",
"aria-label": "Discord server",
},
{
href: "https://github.com/slatedb/slatedb",
position: "right",
Expand Down
13 changes: 13 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ html, body {
width: 24px;
}

.header-discord-link:hover {
opacity: 0.6;
}

.header-discord-link:before {
background: url(/img/discord-icon-white.svg);
background-size: contain;
content: "";
display: flex;
height: 24px;
width: 24px;
}

.button-primary {
color: white;
padding: .25rem 1rem;
Expand Down
1 change: 1 addition & 0 deletions static/img/discord-icon-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/discord-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 11d35b5

Please sign in to comment.