Skip to content

Commit

Permalink
Add links to talk to an expert
Browse files Browse the repository at this point in the history
  • Loading branch information
samkim committed Oct 27, 2023
1 parent 8887211 commit 972b35b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = {
announcementBar: {
id: 'github_star',
content:
'<span class="announcement-bar">📣 <span><strong>The Zanzibar Paper</strong>, annotated by AuthZed</span> <a href="https://zanzibar.tech" target="_blank" class="banner-button">Read Paper</a></span>',
'<div class="announcement-bar"><div class="announcement-bar-left">📣 <span><strong>The Zanzibar Paper</strong>, annotated by AuthZed</span> <a href="https://authzed.com/zanzibar" target="_blank" class="banner-button">Read Paper</a></div><div><a class="outline" href="https://authzed.com/call?utm_source=docs" target="_blank">Talk to an Expert</a></div></div>',
backgroundColor: '#15131d',
textColor: '#fff',
isCloseable: false,
Expand All @@ -38,7 +38,7 @@ module.exports = {
alt: 'authzed',
src: 'https://authzed.com/authzed-logo-multi.svg',
href: 'https://authzed.com',
target: '_self'
target: '_self',
},
items: [
{
Expand Down
15 changes: 9 additions & 6 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ module.exports = {
{
type: 'link',
label: 'REST API Reference',
href: 'https://www.postman.com/authzed/workspace/spicedb/overview',
},
href: 'https://www.postman.com/authzed/workspace/spicedb/overview',
},
{
type: 'category',
label: 'Getting Started',
Expand Down Expand Up @@ -51,7 +51,7 @@ module.exports = {
],
},
'spicedb-serverless/overview',
{
{
type: 'category',
label: 'SpiceDB Dedicated',
collapsed: true,
Expand All @@ -63,9 +63,7 @@ module.exports = {
type: 'category',
label: 'Networking',
collapsed: true,
items: [
'spicedb-dedicated/networking/aws',
],
items: ['spicedb-dedicated/networking/aws'],
},
],
},
Expand Down Expand Up @@ -114,5 +112,10 @@ module.exports = {
],
},
'support',
{
type: 'link',
label: 'Talk to an Expert',
href: 'https://authzed.com/call?utm_source=docs',
},
],
};
25 changes: 22 additions & 3 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,31 @@ html[data-theme='dark'] {
}

.announcement-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
}

.announcement-bar-left {
display: flex;
align-items: center;
gap: 15px;
padding: 0px 20px;
}

.announcement-bar a.outline {
text-decoration: none;
background-color: #eee;
color: #111;
padding: 6px 16px;
border-radius: 8px;
transition: background-color 300ms ease-in-out;

}
.announcement-bar a.outline:hover {
border: 1px solid #fff;
background-color: #111;
color: #eee;
}

.banner-button {
Expand All @@ -132,8 +153,6 @@ html[data-theme='dark'] {
background-color: #FF5C61;
}

.b

pre.prism-code {
background-color: #201D2D;
}
Expand Down

0 comments on commit 972b35b

Please sign in to comment.