File tree Expand file tree Collapse file tree 5 files changed +86
-10
lines changed Expand file tree Collapse file tree 5 files changed +86
-10
lines changed Original file line number Diff line number Diff line change 1
1
.logo {
2
- padding : 15px 0 ;
2
+ padding : 11 px 0 15px 0 ;
3
3
height : 100% ;
4
4
max-width : 100% ;
5
5
}
Original file line number Diff line number Diff line change
1
+ .sub {
2
+ font-weight : 600 ;
3
+ margin : 3px 0 0 7px ;
4
+ font-size : 0.9em ;
5
+ color : # 8a9db3 ;
6
+ -webkit-user-select : none;
7
+ -moz-user-select : none;
8
+ -ms-user-select : none;
9
+ user-select : none;
10
+ }
11
+
12
+ .separator {
13
+ height : 70% ;
14
+ width : 1px ;
15
+ background-color : # f3f3f3 ;
16
+ margin-left : 2.1em ;
17
+ margin-right : 0.8em ;
18
+ }
19
+
20
+ .link {
21
+ align-items : center;
22
+ display : inline-flex;
23
+ text-decoration : none !important ;
24
+ color : # 2b4869 ;
25
+ position : relative;
26
+ padding : 0 1em ;
27
+ font-weight : 500 ;
28
+ font-size : 0.95em ;
29
+ }
30
+
31
+ .link : after {
32
+ transition : 150ms ease-in-out all;
33
+ content : "" ;
34
+ display : block;
35
+ width : 100% ;
36
+ height : 2px ;
37
+ position : absolute;
38
+ bottom : 0 ;
39
+ background-color : transparent;
40
+ left : 0 ;
41
+ }
42
+
43
+ .link : hover {
44
+ color : # 2b4869 ;
45
+ }
46
+
47
+ .link : hover .link : after {
48
+ background-color : # 2b4869 ;
49
+ }
Original file line number Diff line number Diff line change @@ -9,15 +9,14 @@ import { VscSignIn } from "react-icons/vsc";
9
9
import { getStoreService } from "../../../store/local/stores" ;
10
10
import { ProfilePopup } from "./ProfilePopup" ;
11
11
import { Logo } from "./Logo" ;
12
+ import styles from "./Navigation.module.css" ;
12
13
13
14
const ProductHome = ( ) => {
14
15
return (
15
16
< >
16
17
< Logo > </ Logo >
17
- < span style = { { fontWeight : "bold" , marginTop : 3 , marginLeft : 10 } } >
18
- { " " }
19
- Alpha community preview
20
- </ span >
18
+ < span className = { styles . sub } > Alpha preview</ span >
19
+ < div className = { styles . separator } > </ div >
21
20
</ >
22
21
) ;
23
22
} ;
@@ -31,7 +30,20 @@ export const Navigation = observer(() => {
31
30
return (
32
31
< AN
33
32
renderProductHome = { ProductHome }
34
- primaryItems = { [ ] }
33
+ primaryItems = { [
34
+ < a
35
+ href = "/docs"
36
+ className = { styles . link }
37
+ onClick = { ( e ) => {
38
+ e . preventDefault ( ) ;
39
+ navigationStore . navigateToDocs ( ) ;
40
+ } } >
41
+ Documentation
42
+ </ a > ,
43
+ // <PrimaryButton onClick={navigationStore.navigateToDocs}>
44
+ // Documentation
45
+ // </PrimaryButton>,
46
+ ] }
35
47
renderProfile = { observer ( ( ) => (
36
48
< >
37
49
{ sessionStore . isLoggedIn && (
Original file line number Diff line number Diff line change @@ -24,11 +24,16 @@ export const StartScreen = observer(() => {
24
24
}
25
25
}
26
26
27
- function onDocsClick ( e : any ) {
27
+ function onTutorialClick ( e : any ) {
28
28
e . preventDefault ( ) ;
29
29
navigationStore . navigateToTutorial ( ) ;
30
30
}
31
31
32
+ function onDocsClick ( e : any ) {
33
+ e . preventDefault ( ) ;
34
+ navigationStore . navigateToDocs ( ) ;
35
+ }
36
+
32
37
return (
33
38
< >
34
39
< div className = "page centered" >
@@ -60,7 +65,7 @@ export const StartScreen = observer(() => {
60
65
< a
61
66
className = "button primary"
62
67
href = "/docs/interactive-introduction.md"
63
- onClick = { onDocsClick } >
68
+ onClick = { onTutorialClick } >
64
69
Try interactive tutorial
65
70
</ a >
66
71
@@ -216,7 +221,7 @@ export const StartScreen = observer(() => {
216
221
< div >
217
222
< a
218
223
href = "/docs/interactive-introduction.md"
219
- onClick = { onDocsClick }
224
+ onClick = { onTutorialClick }
220
225
className = "button" >
221
226
Try interactive tutorial
222
227
</ a >
@@ -240,10 +245,16 @@ export const StartScreen = observer(() => {
240
245
< li >
241
246
< a
242
247
href = "/docs/interactive-introduction.md"
243
- onClick = { onDocsClick } >
248
+ onClick = { onTutorialClick } >
244
249
< span > Interactive introduction</ span >
245
250
</ a >
246
251
</ li >
252
+ < li >
253
+ < a href = "/docs" onClick = { onDocsClick } >
254
+ < span > Documentation</ span >
255
+ </ a >
256
+ </ li >
257
+
247
258
{ /* <li>
248
259
<a
249
260
target="_blank"
Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ a:focus {
21
21
outline : none;
22
22
}
23
23
24
+ a {
25
+ color : # 2c73c5 ;
26
+ }
27
+
24
28
/* @import "~react-resizable/css/styles.css"; */
25
29
body {
26
30
margin : 0 ;
You can’t perform that action at this time.
0 commit comments