Skip to content

Commit 1b7fa4a

Browse files
committed
Add mini nav bar header
1 parent 47c8486 commit 1b7fa4a

1 file changed

Lines changed: 28 additions & 10 deletions

File tree

index.py

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,21 @@
1111
# --------------
1212
# Navigation bar partial
1313
# --------------
14+
15+
header = dcc.Markdown(
16+
f"""
17+
[👾][1] [☕][2] [🕷️][3] [🕷️](/kinematics) [🕷️](/leg-patterns) [🕷️](/)
18+
[1]: https://github.com/mithi/hexapod-robot-simulator
19+
[2]: https://ko-fi.com/minimithi
20+
[3]: /inverse-kinematics
21+
[4]: /kinematics
22+
[5]: /leg-patterns
23+
[6]: /
24+
"""
25+
)
26+
1427
div_nav = html.Div(
1528
[
16-
html.Br(),
17-
dcc.Link("🕷️ Kinematics", href="/kinematics"),
18-
html.Br(),
19-
dcc.Link("🕷️ Inverse Kinematics", href="/inverse-kinematics"),
20-
html.Br(),
21-
dcc.Link("🕷️ Leg Patterns", href="/leg-patterns"),
22-
html.Br(),
23-
dcc.Link("🕷️ Root", href="/"),
2429
html.Br(),
2530
html.A(
2631
"👾 Source Code",
@@ -29,16 +34,29 @@
2934
),
3035
html.Br(),
3136
html.A(
32-
"☕ Buy Mithi coffee", href="https://ko-fi.com/minimithi", target="_blank"
37+
"☕ Buy Mithi coffee", href="https://ko-fi.com/minimithi", target="_blank",
3338
),
39+
html.Br(),
40+
dcc.Link("🕷️ Root", href="/"),
41+
html.Br(),
42+
dcc.Link("🕷️ Inverse Kinematics", href="/inverse-kinematics"),
43+
html.Br(),
44+
dcc.Link("🕷️ Kinematics", href="/kinematics"),
45+
html.Br(),
46+
dcc.Link("🕷️ Leg Patterns", href="/leg-patterns"),
3447
]
3548
)
3649

3750
# --------------
3851
# Layout
3952
# --------------
4053
app.layout = html.Div(
41-
[dcc.Location(id="url", refresh=False), html.Div(id="page-content"), div_nav,]
54+
[
55+
header,
56+
dcc.Location(id="url", refresh=False),
57+
html.Div(id="page-content"),
58+
div_nav,
59+
],
4260
)
4361

4462
# --------------

0 commit comments

Comments
 (0)