|
11 | 11 | # -------------- |
12 | 12 | # Navigation bar partial |
13 | 13 | # -------------- |
| 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 | + |
14 | 27 | div_nav = html.Div( |
15 | 28 | [ |
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="/"), |
24 | 29 | html.Br(), |
25 | 30 | html.A( |
26 | 31 | "👾 Source Code", |
|
29 | 34 | ), |
30 | 35 | html.Br(), |
31 | 36 | 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", |
33 | 38 | ), |
| 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"), |
34 | 47 | ] |
35 | 48 | ) |
36 | 49 |
|
37 | 50 | # -------------- |
38 | 51 | # Layout |
39 | 52 | # -------------- |
40 | 53 | 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 | + ], |
42 | 60 | ) |
43 | 61 |
|
44 | 62 | # -------------- |
|
0 commit comments