File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -205,24 +205,11 @@ const config: Config = {
205205 value : `
206206 <a
207207 href="https://console.juno.build"
208- class="navbar-menu-item "
208+ class="button button--hero "
209209 target="_blank"
210210 rel="noopener noreferrer"
211211 >
212- Start Building
213- <svg
214- xmlns="http://www.w3.org/2000/svg"
215- width="24"
216- height="24"
217- viewBox="0 0 24 24"
218- fill="none"
219- stroke="currentColor"
220- stroke-width="2"
221- stroke-linecap="round"
222- stroke-linejoin="round"
223- >
224- <path d="M7 7h10v10"/><path d="M7 17 17 7"/>
225- </svg>
212+ Sign in
226213 </a>`
227214 . replace ( / \n \s + / g, " " )
228215 . trim ( )
@@ -231,7 +218,7 @@ const config: Config = {
231218 type : "html" ,
232219 position : "right" ,
233220 value :
234- '<a href="https://github.com/junobuild/juno" target="_blank" rel="noopener noreferrer" aria-label="Go to Juno GitHub repo" class="navbar-menu-item"><span>GitHub</span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 512 512" fill="currentColor"><path d="M256 32C132.3 32 32 134.9 32 261.7c0 101.5 64.2 187.5 153.2 217.9a17.56 17.56 0 003.8.4c8.3 0 11.5-6.1 11.5-11.4 0-5.5-.2-19.9-.3-39.1a102.4 102.4 0 01-22.6 2.7c-43.1 0-52.9-33.5-52.9-33.5-10.2-26.5-24.9-33.6-24.9-33.6-19.5-13.7-.1-14.1 1.4-14.1h.1c22.5 2 34.3 23.8 34.3 23.8 11.2 19.6 26.2 25.1 39.6 25.1a63 63 0 0025.6-6c2-14.8 7.8-24.9 14.2-30.7-49.7-5.8-102-25.5-102-113.5 0-25.1 8.7-45.6 23-61.6-2.3-5.8-10-29.2 2.2-60.8a18.64 18.64 0 015-.5c8.1 0 26.4 3.1 56.6 24.1a208.21 208.21 0 01112.2 0c30.2-21 48.5-24.1 56.6-24.1a18.64 18.64 0 015 .5c12.2 31.6 4.5 55 2.2 60.8 14.3 16.1 23 36.6 23 61.6 0 88.2-52.4 107.6-102.3 113.3 8 7.1 15.2 21.1 15.2 42.5 0 30.7-.3 55.5-.3 63 0 5.4 3.1 11.5 11.4 11.5a19.35 19.35 0 004-.4C415.9 449.2 480 363.1 480 261.7 480 134.9 379.7 32 256 32z"/></svg></a>'
221+ '<a href="https://github.com/junobuild/juno" target="_blank" rel="noopener noreferrer" aria-label="Go to Juno GitHub repo" class="navbar-github-link"><span>GitHub</span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 512 512" fill="currentColor"><path d="M256 32C132.3 32 32 134.9 32 261.7c0 101.5 64.2 187.5 153.2 217.9a17.56 17.56 0 003.8.4c8.3 0 11.5-6.1 11.5-11.4 0-5.5-.2-19.9-.3-39.1a102.4 102.4 0 01-22.6 2.7c-43.1 0-52.9-33.5-52.9-33.5-10.2-26.5-24.9-33.6-24.9-33.6-19.5-13.7-.1-14.1 1.4-14.1h.1c22.5 2 34.3 23.8 34.3 23.8 11.2 19.6 26.2 25.1 39.6 25.1a63 63 0 0025.6-6c2-14.8 7.8-24.9 14.2-30.7-49.7-5.8-102-25.5-102-113.5 0-25.1 8.7-45.6 23-61.6-2.3-5.8-10-29.2 2.2-60.8a18.64 18.64 0 015-.5c8.1 0 26.4 3.1 56.6 24.1a208.21 208.21 0 01112.2 0c30.2-21 48.5-24.1 56.6-24.1a18.64 18.64 0 015 .5c12.2 31.6 4.5 55 2.2 60.8 14.3 16.1 23 36.6 23 61.6 0 88.2-52.4 107.6-102.3 113.3 8 7.1 15.2 21.1 15.2 42.5 0 30.7-.3 55.5-.3 63 0 5.4 3.1 11.5 11.4 11.5a19.35 19.35 0 004-.4C415.9 449.2 480 363.1 480 261.7 480 134.9 379.7 32 256 32z"/></svg></a>'
235222 }
236223 ]
237224 } ,
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export default function Hero(): JSX.Element {
5151 </ p >
5252 < p className = { `${ styles . item } ` } > </ p >
5353 < div className = { `${ styles . item } ${ styles . actions } ` } >
54- < Start position = "hero" > Get Started </ Start >
54+ < Start position = "hero" > Start Building </ Start >
5555 < Link
5656 className = "button button--juno"
5757 to = "/docs/intro"
Original file line number Diff line number Diff line change 3636 }
3737}
3838
39- // "Start building" and GitHub links
40- .navbar-menu-item {
41- display : flex ;
42- gap : 4px ;
43- color : var (--ifm-menu-color );
44- padding : var (--ifm-menu-link-padding-vertical )
45- var (--ifm-menu-link-padding-horizontal );
46-
47- text-decoration : none !important ;
48- border-radius : 0.25rem ;
49-
50- & :hover {
51- background : var (--ifm-menu-color-background-hover );
52- color : var (--ifm-menu-color );
53- }
39+ // Github link in the navbar
40+ .navbar__item :has (.navbar-github-link ) {
41+ padding : 0 8px ;
42+ }
43+
44+ .navbar-github-link {
45+ display : none ;
5446
5547 @media screen and (min-width : 996px ) {
48+ display : flex ;
5649 justify-content : center ;
5750 align-items : center ;
51+
52+ height : 34px ;
53+ width : 34px ;
54+
55+ border-radius : 50% ;
56+
5857 color : inherit ;
5958
60- padding : 0 ;
59+ & :hover {
60+ background : var (--ifm-color-emphasis-200 );
61+ color : inherit ;
62+ }
6163
6264 span {
6365 display : none ;
6466 }
67+ }
68+ }
6569
66- & :hover {
67- background : inherit ;
68- color : var (--ifm-navbar-link-hover-color );
69- }
70+ // Sign in button in the navbar
71+ .navbar .button--hero {
72+ display : none ;
73+
74+ @media screen and (min-width : 996px ) {
75+ display : block ;
76+
77+ padding : 2px 10px ;
7078 }
7179}
Original file line number Diff line number Diff line change 11nav {
2+ div [class *= " navbarSearchContainer" ] {
3+ padding-left : 4px ;
4+ }
5+
26 .DocSearch {
37 --docsearch-searchbox-background : var (--ifm-navbar-background-color );
48
5- outline : solid 1 px var ( --navbar-search-border-color ) !important ;
6- outline-offset : -0.5 px ; // Allow the border and focus shadow to blend seamlessly
9+ height : 34 px ;
10+
711 & :hover ,
812 & :focus {
9- outline : solid 1px var (--ifm-color-primary ) !important ;
10- }
11-
12- .DocSearch-Button-Placeholder {
13- font-family : var (--ifm-font-family-base );
14- padding-left : 1rem ;
15- color : var (--docsearch-text-color );
13+ background : var (--ifm-color-emphasis-200 );
14+ box-shadow : none ;
1615 }
1716
17+ .DocSearch-Button-Placeholder ,
1818 .DocSearch-Button-Keys {
1919 display : none ;
2020 }
21-
22- @media screen and (min-width : 769px ) {
23- position : relative ;
24- width : 150px ;
25-
26- // Move the looking glass icon on the right,
27- // but only on the button, not in the modal (where classes are reused)
28- & :not (:has (.DocSearch-Modal )) .DocSearch-Search-Icon {
29- position : absolute ;
30- right : 1rem ;
31- top : 50% ;
32- transform : translateY (-50% );
33- }
34- }
3521 }
3622}
You can’t perform that action at this time.
0 commit comments