Skip to content

Commit

Permalink
add: demo links and navbar images
Browse files Browse the repository at this point in the history
  • Loading branch information
LukassF committed Mar 4, 2024
1 parent e4566af commit feb155a
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 3 deletions.
Empty file added sdk/apps/docs/docs/demo.md
Empty file.
15 changes: 12 additions & 3 deletions sdk/apps/docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,21 @@ const config = {
},
{
to: 'docs/solana/solana/start',
className: 'solana_navlink navlink',
activeBasePath: 'docs/solana/solana/start',
label: 'Solana',
position: 'left'
},
{
to: 'docs/sui/sui/start',
className: 'sui_navlink navlink',
activeBasePath: 'docs/sui/sui/start',
label: 'Sui',
position: 'left'
},
{
to: 'docs/substrate/substrate/start',
className: 'substrate_navlink navlink',
activeBasePath: 'docs/substrate/substrate/start',
label: 'Substrate',
position: 'left'
Expand All @@ -94,9 +97,14 @@ const config = {
position: 'left'
},
{
href: 'https://example.connect.nightly.app/',
type: 'dropdown',
label: 'Demo',
position: 'right'
position: 'right',
items: [
{ href: 'https://solana-web3-template.nightly.app', label: 'Solana template' },
{ href: 'https://sui-web3-template.nightly.app', label: 'Sui template' },
{ href: 'https://aleph-zero-web3-template.nightly.app', label: 'Substrate template' }
]
},
{
href: 'https://twitter.com/NightlyConnect',
Expand Down Expand Up @@ -128,7 +136,7 @@ const config = {
title: 'Docs',
items: [
{
label: 'home',
label: 'Home',
to: 'docs/'
}
]
Expand Down Expand Up @@ -156,6 +164,7 @@ const config = {
]
}
],

copyright: `Copyright © ${new Date().getFullYear()} Nightly | Built with Docusaurus.`
},
prism: {
Expand Down
39 changes: 39 additions & 0 deletions sdk/apps/docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,42 @@ img[src*='#connectImage'] {
border: solid var(--ifm-color-primary) 2px;
background: linear-gradient(45deg, rgba(96, 103, 249, 0.1), transparent);
}

.navbar__items a {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

.navbar__items > .navlink {
display: flex;
flex-direction: row;
align-items: center;
gap: 5px;
}

.navbar__items > .navlink::before {
content: '';
background-size: cover;
height: 20px;
aspect-ratio: 1/1;
border-radius: 50%;
}

.navbar__items > .solana_navlink::before {
background-image: url('https://upload.wikimedia.org/wikipedia/en/b/b9/Solana_logo.png');
}

.navbar__items > .sui_navlink::before {
background-image: url('https://registry.nightly.app/networks/sui.png');
}

.navbar__items > .substrate_navlink::before {
background-image: url('https://registry.nightly.app/networks/polkadot.png');
}

@media screen and (max-width: 996px) {
.navlink {
display: none !important;
}
}

0 comments on commit feb155a

Please sign in to comment.