Skip to content

Commit 8fd8191

Browse files
committed
Docs menu link
1 parent e142eff commit 8fd8191

File tree

3 files changed

+26
-6
lines changed

3 files changed

+26
-6
lines changed

packages/editor/src/app/main/components/Logo.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.logo {
2-
padding: 15px 0;
2+
padding: 11px 0 15px 0;
33
height: 100%;
44
max-width: 100%;
55
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.sub {
2+
font-weight: bold;
3+
margin: 3px 0 0 10px;
4+
font-size: 0.9em;
5+
-webkit-user-select: none;
6+
-moz-user-select: none;
7+
-ms-user-select: none;
8+
user-select: none;
9+
}
10+
11+
.separator {
12+
height: 70%;
13+
width: 1px;
14+
background-color: #f3f3f3;
15+
margin-left: 1.6em;
16+
margin-right: 1em;
17+
}

packages/editor/src/app/main/components/Navigation.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ import { VscSignIn } from "react-icons/vsc";
99
import { getStoreService } from "../../../store/local/stores";
1010
import { ProfilePopup } from "./ProfilePopup";
1111
import { Logo } from "./Logo";
12+
import styles from "./Navigation.module.css";
1213

1314
const ProductHome = () => {
1415
return (
1516
<>
1617
<Logo></Logo>
17-
<span style={{ fontWeight: "bold", marginTop: 3, marginLeft: 10 }}>
18-
{" "}
19-
Alpha community preview
20-
</span>
18+
<span className={styles.sub}> Alpha community preview</span>
19+
<div className={styles.separator}></div>
2120
</>
2221
);
2322
};
@@ -31,7 +30,11 @@ export const Navigation = observer(() => {
3130
return (
3231
<AN
3332
renderProductHome={ProductHome}
34-
primaryItems={[]}
33+
primaryItems={[
34+
<PrimaryButton onClick={navigationStore.navigateToDocs}>
35+
Documentation
36+
</PrimaryButton>,
37+
]}
3538
renderProfile={observer(() => (
3639
<>
3740
{sessionStore.isLoggedIn && (

0 commit comments

Comments
 (0)