Skip to content

Commit 1d89f84

Browse files
committed
Styling & add docs to footer
1 parent 8fd8191 commit 1d89f84

File tree

4 files changed

+67
-11
lines changed

4 files changed

+67
-11
lines changed
Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.sub {
2-
font-weight: bold;
3-
margin: 3px 0 0 10px;
2+
font-weight: 600;
3+
margin: 3px 0 0 7px;
44
font-size: 0.9em;
5+
color: #8a9db3;
56
-webkit-user-select: none;
67
-moz-user-select: none;
78
-ms-user-select: none;
@@ -12,6 +13,37 @@
1213
height: 70%;
1314
width: 1px;
1415
background-color: #f3f3f3;
15-
margin-left: 1.6em;
16-
margin-right: 1em;
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;
1749
}

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const ProductHome = () => {
1515
return (
1616
<>
1717
<Logo></Logo>
18-
<span className={styles.sub}> Alpha community preview</span>
18+
<span className={styles.sub}> Alpha preview</span>
1919
<div className={styles.separator}></div>
2020
</>
2121
);
@@ -31,9 +31,18 @@ export const Navigation = observer(() => {
3131
<AN
3232
renderProductHome={ProductHome}
3333
primaryItems={[
34-
<PrimaryButton onClick={navigationStore.navigateToDocs}>
34+
<a
35+
href="/docs"
36+
className={styles.link}
37+
onClick={(e) => {
38+
e.preventDefault();
39+
navigationStore.navigateToDocs();
40+
}}>
3541
Documentation
36-
</PrimaryButton>,
42+
</a>,
43+
// <PrimaryButton onClick={navigationStore.navigateToDocs}>
44+
// Documentation
45+
// </PrimaryButton>,
3746
]}
3847
renderProfile={observer(() => (
3948
<>

packages/editor/src/app/main/components/startscreen/StartScreen.tsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,16 @@ export const StartScreen = observer(() => {
2424
}
2525
}
2626

27-
function onDocsClick(e: any) {
27+
function onTutorialClick(e: any) {
2828
e.preventDefault();
2929
navigationStore.navigateToTutorial();
3030
}
3131

32+
function onDocsClick(e: any) {
33+
e.preventDefault();
34+
navigationStore.navigateToDocs();
35+
}
36+
3237
return (
3338
<>
3439
<div className="page centered">
@@ -60,7 +65,7 @@ export const StartScreen = observer(() => {
6065
<a
6166
className="button primary"
6267
href="/docs/interactive-introduction.md"
63-
onClick={onDocsClick}>
68+
onClick={onTutorialClick}>
6469
Try interactive tutorial
6570
</a>
6671

@@ -216,7 +221,7 @@ export const StartScreen = observer(() => {
216221
<div>
217222
<a
218223
href="/docs/interactive-introduction.md"
219-
onClick={onDocsClick}
224+
onClick={onTutorialClick}
220225
className="button">
221226
Try interactive tutorial
222227
</a>
@@ -240,10 +245,16 @@ export const StartScreen = observer(() => {
240245
<li>
241246
<a
242247
href="/docs/interactive-introduction.md"
243-
onClick={onDocsClick}>
248+
onClick={onTutorialClick}>
244249
<span>Interactive introduction</span>
245250
</a>
246251
</li>
252+
<li>
253+
<a href="/docs" onClick={onDocsClick}>
254+
<span>Documentation</span>
255+
</a>
256+
</li>
257+
247258
{/* <li>
248259
<a
249260
target="_blank"

packages/editor/src/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ a:focus {
2121
outline: none;
2222
}
2323

24+
a {
25+
color: #2c73c5;
26+
}
27+
2428
/* @import "~react-resizable/css/styles.css"; */
2529
body {
2630
margin: 0;

0 commit comments

Comments
 (0)