Skip to content

Commit 93f52c6

Browse files
committed
Add links
1 parent 4afcc01 commit 93f52c6

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

playground/src/app.jsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ const defaultCode = `
1010
1111
Edit me.
1212
13-
~~~python hello.py
13+
\`\`\`python hello.py
1414
# mark[16:24]
1515
print("This is Code Hike")
16-
~~~
16+
\`\`\`
1717
1818
`;
1919

@@ -57,6 +57,8 @@ function App() {
5757
<span>v0.5.1</span>
5858
</h1>
5959
</a>
60+
<a href="https://codehike.org/docs">Docs</a>
61+
<a href="https://codehike.org/#demos">Demos</a>
6062
</header>
6163
<main>
6264
<SplitPane

playground/src/index.css

+12-4
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ body,
2323
header {
2424
display: flex;
2525
align-items: center;
26-
gap: 0.4rem;
26+
gap: 0.8rem;
2727
background-color: #111;
2828
color: #fafafa;
2929
height: 3.2rem;
3030
min-height: 3.2rem;
3131
border-bottom: 1px solid #444;
32+
padding: 0 1.5rem;
3233
}
3334

3435
header h1 {
@@ -46,11 +47,18 @@ header h1 span {
4647
}
4748

4849
header a.code-hike {
50+
gap: 0.5rem;
51+
display: flex;
52+
margin-right: auto;
53+
}
54+
55+
header a {
4956
color: inherit;
5057
text-decoration: inherit;
51-
display: flex;
52-
margin-left: 1.5rem;
53-
gap: 0.5rem;
58+
font-size: 1.05rem;
59+
}
60+
header a:hover {
61+
color: rgb(179, 209, 245);
5462
}
5563

5664
header svg {

0 commit comments

Comments
 (0)