Skip to content

Commit

Permalink
update docs top bar
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Oct 12, 2023
1 parent aae4313 commit ab0632c
Show file tree
Hide file tree
Showing 5 changed files with 209 additions and 29 deletions.
8 changes: 2 additions & 6 deletions docs/website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,23 +86,19 @@ const config = {
{ to: 'blog', label: 'Blog', position: 'left' },
{
href: 'https://join.slack.com/t/dlthub-community/shared_invite/zt-1slox199h-HAE7EQoXmstkP_bTqal65g',
label: '.',
label: 'Join community',
position: 'right',
className: 'slack-navbar',
},
{
href: 'https://github.com/dlt-hub/dlt',
label: '.',
label: 'Star us',
position: 'right',
className: 'github-navbar',
"aria-label": "GitHub repository",
},
],
},
announcementBar: {
content:
'⭐️ If you like data load tool (dlt), give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/dlt-hub/dlt">GitHub</a>! ⭐️',
},
footer: {
style: 'dark',
links: [
Expand Down
27 changes: 17 additions & 10 deletions docs/website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -364,26 +364,32 @@ html[data-theme='dark'] .footer__item a:hover{
opacity: 0.8;
}


.github-navbar,
.slack-navbar,
.slack-navbar:hover,
.github-navbar:hover {
display: flex;
color: transparent;
position: relative;
top:3px;
}

.github-navbar:before {
.github-navbar {
margin-right:10px;
}

.github-navbar:after {
content: '';
width: 32px;
height: 32px;
display: flex;
background: url("../../static/img/GithubDark.svg") no-repeat;
position: relative;
left: 0px;
top: 0px;
right: -10px;
top: -3px;
}

html[data-theme='dark'] .github-navbar:before {
html[data-theme='dark'] .github-navbar:after {
background: url("../../static/img/GithubLight.svg") no-repeat;
}

Expand Down Expand Up @@ -414,20 +420,21 @@ html[data-theme='dark'] .theme-edit-this-page::before {
display: flex;
}

.slack-navbar:before {
.slack-navbar:after {
content: '';
width: 32px;
height: 32px;
display: flex;
background: url("../../static/img/SlackDark.svg") no-repeat;
background-size: 32px 32px;
position: relative;
left: 10px;
top: 0px;

right: -10px;
top: -3px;
}

html[data-theme='dark'] .slack-navbar::before {
html[data-theme='dark'] .slack-navbar::after {
background: url("../../static/img/SlackLight.svg") no-repeat;
background-size: 32px 32px;
}

/* siderbar-icons */
Expand Down
1 change: 0 additions & 1 deletion docs/website/src/theme/Root.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const overlays = {
}
}


function Overlay() {

const location = useLocation();
Expand Down
101 changes: 95 additions & 6 deletions docs/website/static/img/SlackDark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
101 changes: 95 additions & 6 deletions docs/website/static/img/SlackLight.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 ab0632c

Please sign in to comment.