Skip to content

Commit da01bf4

Browse files
committed
Simplify nav: 'Start free' + 'Sign in' buttons (like Linear)
1 parent dff5379 commit da01bf4

2 files changed

Lines changed: 26 additions & 17 deletions

File tree

docusaurus.config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,16 +203,21 @@ module.exports = {
203203
label: 'Blog',
204204
position: 'right',
205205
},
206+
{
207+
to: '/consulting',
208+
label: 'Consulting',
209+
position: 'right',
210+
},
206211
{
207212
type: 'html',
208213
className: 'menu__list-item--sign-in-button',
209-
value: `<a href="/consulting" class="consulting-button">Consulting</a>`,
214+
value: `<a href=${SIGN_IN_URL} class="start-free-button">Start free</a>`,
210215
position: 'right',
211216
},
212217
{
213218
type: 'html',
214219
className: 'menu__list-item--sign-in-button',
215-
value: `<a href=${SIGN_IN_URL} class="console-button">Console</a>`,
220+
value: `<a href=${SIGN_IN_URL} class="sign-in-button">Sign in</a>`,
216221
position: 'right',
217222
},
218223
],

src/css/custom.css

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -778,14 +778,14 @@ html[data-theme="dark"] .avatar__name > a {
778778
font-size: 20px;
779779
}
780780

781-
.sign-in-button, .console-button, .consulting-button {
781+
.start-free-button, .sign-in-button {
782782
font-weight: var(--ifm-font-weight-semibold);
783783
padding: 0.275rem 1.25rem;
784784
vertical-align: middle;
785785
border-radius: 0.25rem;
786786
}
787787

788-
.navbar-sidebar__item div[class="menu__list-item"]:not(:first-of-type), .github-sm, .navbar-sidebar__item .menu__list-item--sign-in-button, .navbar-sidebar__item .menu__list-item--console-button, .navbar-sidebar__item .menu__list-item--consulting-button {
788+
.navbar-sidebar__item div[class="menu__list-item"]:not(:first-of-type), .github-sm, .navbar-sidebar__item .menu__list-item--sign-in-button {
789789
margin-top: 1rem;
790790
padding: var(--ifm-menu-link-padding-vertical)
791791
var(--ifm-menu-link-padding-horizontal);
@@ -799,26 +799,30 @@ html[data-theme="dark"] .avatar__name > a {
799799
color: inherit;
800800
}
801801

802-
html[data-theme="light"] .sign-in-button, html[data-theme="light"] .consulting-button {
803-
color: var(--ifm-color-black);
804-
border: 1px solid #ff6112;
802+
/* Primary CTA button - "Start free" */
803+
html[data-theme="light"] .start-free-button {
804+
color: #fff;
805+
background-color: #0F879D;
806+
border: 1px solid #0F879D;
805807
}
806808

807-
html[data-theme="dark"] .sign-in-button, html[data-theme="dark"] .consulting-button {
808-
color: var(--ifm-color-base);
809-
background-color: #ff6112;
809+
html[data-theme="dark"] .start-free-button {
810+
color: #fff;
811+
background-color: #0F879D;
810812
border: 1px solid transparent;
811813
}
812814

813-
html[data-theme="light"] .console-button{
815+
/* Secondary button - "Sign in" */
816+
html[data-theme="light"] .sign-in-button {
814817
color: var(--ifm-color-black);
815-
border: 1px solid #0F879D;
818+
border: 1px solid #888;
819+
background-color: transparent;
816820
}
817821

818-
html[data-theme="dark"] .console-button{
822+
html[data-theme="dark"] .sign-in-button {
819823
color: var(--ifm-color-base);
820-
background-color: #0F879D;
821-
border: 1px solid transparent;
824+
border: 1px solid #666;
825+
background-color: transparent;
822826
}
823827

824828
.github-container {
@@ -908,9 +912,9 @@ html[data-theme="dark"] .console-button{
908912
padding-top: 1.75rem;
909913
}
910914

911-
.sign-in-button, .console-button, .consulting-button {
915+
.start-free-button, .sign-in-button {
912916
display: flex;
913-
width: 162px;
917+
width: 100px;
914918
justify-content: center;
915919
}
916920
}

0 commit comments

Comments
 (0)