Skip to content

Commit

Permalink
Merge pull request #117 from etherlinkcom/social-icons
Browse files Browse the repository at this point in the history
Move social icons to navbar
  • Loading branch information
malleta authored Jul 24, 2024
2 parents 343147e + 759c459 commit c65d687
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 20 deletions.
17 changes: 15 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,22 @@ const config = {
},
items: [
{
href: 'https://github.com/etherlinkcom/docs',
label: 'GitHub',
to: 'https://discord.gg/etherlink',
position: 'right',
target: '_blank',
className: 'discord-link',
},
{
to: 'https://x.com/etherlink',
position: 'right',
target: '_blank',
className: 'x-link',
},
{
to: 'https://github.com/etherlinkcom/docs',
position: 'right',
target: '_blank',
className: 'github-link',
},
],
},
Expand Down
19 changes: 1 addition & 18 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,12 @@

const sidebars = {
documentationSidebar: [
{
type: 'category',
label: 'Welcome 👋',
collapsed: false,
items: [
'index',
{
type: 'link',
href: 'https://discord.gg/etherlink',
label: 'Join our Discord',
},
{
type: 'link',
href: 'https://twitter.com/etherlink',
label: 'Follow us on Twitter',
},
],
},
{
type: 'category',
label: 'Get started 🚀',
collapsed: false,
items: [
'index',
'get-started/using-your-wallet',
'get-started/network-information',
'get-started/getting-testnet-tokens',
Expand Down
56 changes: 56 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,62 @@ nav.navbar {
background-color: #171717;
}

/* Header icons */

/* Full-size screen */
@media screen and (min-width: 996px) {
.discord-link {
align-items: center;
display: flex;
}

.discord-link::before {
background-image: url("/img/discord-logo-white.png");
background-repeat: no-repeat;
background-position: center;
background-size: contain;
content: '';
display: inline-flex;
height: 24px;
width: 24px;
margin-right: 0.5rem;
}

.x-link {
align-items: center;
display: flex;
}

.x-link::before {
background-image: url("/img/x-logo-white.png");
background-repeat: no-repeat;
background-position: center;
background-size: contain;
content: '';
display: inline-flex;
height: 24px;
width: 24px;
margin-right: 0.5rem;
}

.github-link {
align-items: center;
display: flex;
}

.github-link::before {
background-image: url("/img/github-mark-white.png");
background-repeat: no-repeat;
background-position: center;
background-size: contain;
content: '';
display: inline-flex;
height: 24px;
width: 24px;
margin-right: 0.5rem;
color: var(--ifm-navbar-link-color);
}
}

.dropdown__menu {
background-color: #030405;
Expand Down
Binary file added static/img/discord-logo-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/github-mark-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/x-logo-white.png
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 c65d687

Please sign in to comment.