|
2 | 2 | <head> |
3 | 3 | <title>Edinburgh Hacklab Training Docs</title> |
4 | 4 | <style> |
5 | | - body { |
6 | | - max-width: 70ch; |
7 | | - margin: 1rem auto; |
8 | | - font-family: system-ui; |
9 | | - color: #212121; |
10 | | - } |
11 | | - footer { text-align: center; padding: 1rem; } |
12 | | - summary {border-bottom: 1px solid black;} |
13 | | - .h3 { font-size: 1.5rem; padding: 0.2rem; display: inline-block; font-weight: bold; margin-top: 20px;} |
14 | | - .h4:nth-child(2) { margin-top: 10px; } |
15 | | - .h4 { display: block; margin: 0.1rem; font-size: 1.3rem; font-weight: bold} |
16 | | - .h4 a, .h4 a:visited, .h4 a:hover { color: inherit !important; text-decoration: none; font-size: 0.8rem; float: right; } |
17 | | - li { margin: 0.5rem; } |
18 | | - a { text-decoration: none; color: #0d47a1; } |
19 | | - a:visited { color: #0d47a1; } |
20 | | - a:hover { color: #1266e2; } |
| 5 | + body { |
| 6 | + max-width: 70ch; |
| 7 | + margin: 1rem auto; |
| 8 | + font-family: system-ui; |
| 9 | + color: #212121; |
| 10 | + background-size: cover; |
| 11 | + background-repeat: no-repeat; |
| 12 | + background-attachment: fixed; |
| 13 | + } |
| 14 | + footer { text-align: center; padding: 1rem; } |
| 15 | + summary {border-bottom: 1px solid black;} |
| 16 | + .h3 { font-size: 1.5rem; padding: 0.2rem; display: inline-block; font-weight: bold; margin-top: 20px;} |
| 17 | + .h4:nth-child(2) { margin-top: 10px; } |
| 18 | + .h4 { display: block; margin: 0.1rem; font-size: 1.3rem; font-weight: bold} |
| 19 | + .h4 a, .h4 a:visited, .h4 a:hover { color: inherit !important; text-decoration: none; font-size: 0.8rem; float: right; } |
| 20 | + li { margin: 0.5rem; } |
| 21 | + a { text-decoration: none; color: #0d47a1; } |
| 22 | + a:visited { color: #0d47a1; } |
| 23 | + a:hover { color: #1266e2; } |
| 24 | + .body { |
| 25 | + padding: 50px; |
| 26 | + height: auto; |
| 27 | + box-shadow: 0 0 25px 25px white; |
| 28 | + background-color: white; |
| 29 | + min-height: 100vh; |
| 30 | + } |
21 | 31 | </style> |
| 32 | + |
| 33 | + <script> |
| 34 | + function randomImage(){ |
| 35 | + console.log({{images}}) |
| 36 | + var images = {{images}} |
| 37 | + var size = images.length; |
| 38 | + var x = Math.floor(size * Math.random()); |
| 39 | + var element = document.body |
| 40 | + element.style.backgroundImage = "linear-gradient(rgba(255, 255, 255, 0.75)), url("+ images[x] + ")"; |
| 41 | + } |
| 42 | + |
| 43 | + document.addEventListener("DOMContentLoaded", randomImage); |
| 44 | + </script> |
22 | 45 | </head> |
23 | 46 | <body> |
24 | | - <h1>Edinburgh Hacklab Training Docs</h1> |
| 47 | + <div class="body"> |
| 48 | + <h1>Edinburgh Hacklab Training Docs</h1> |
25 | 49 |
|
26 | | - <p> |
27 | | - These are the documents we use for training people how to use our tools. |
28 | | - </p> |
| 50 | + <p> |
| 51 | + These are the documents we use for training people how to use our tools. |
| 52 | + </p> |
29 | 53 |
|
30 | 54 |
|
31 | | - <ul> |
32 | | - <li><strong>Risk assessments</strong> outline the risks of each tool, and the steps we take to control them.</li> |
33 | | - <li><strong>Training docs</strong> are summaries of what needs to be taught to use that tool safely, intended to help instructors deliver training.</li> |
34 | | - <li><strong>Training cards</strong> are checklists for an instructor to fill out when training someone on that tool. Depending on the tool, we may require that a paper copy of this is filled out.</li> |
35 | | - </ul> |
| 55 | + <ul> |
| 56 | + <li><strong>Risk assessments</strong> outline the risks of each tool, and the steps we take to control them.</li> |
| 57 | + <li><strong>Training docs</strong> are summaries of what needs to be taught to use that tool safely, intended to help instructors deliver training.</li> |
| 58 | + <li><strong>Training cards</strong> are checklists for an instructor to fill out when training someone on that tool. Depending on the tool, we may require that a paper copy of this is filled out.</li> |
| 59 | + </ul> |
36 | 60 |
|
37 | | - <p> |
38 | | - To contribute to these training docs, see <a href="https://github.com/edinburghhacklab/hacklab-training">the github repository</a>. Non-vital information about a tool may belong better on <a href="https://wiki.ehlab.uk">the wiki</a>. |
39 | | - </p> |
| 61 | + <p> |
| 62 | + To contribute to these training docs, see <a href="https://github.com/edinburghhacklab/hacklab-training">the github repository</a>. Non-vital information about a tool may belong better on <a href="https://wiki.ehlab.uk">the wiki</a>. |
| 63 | + </p> |
40 | 64 |
|
41 | | - {%- set idxs = [] %} |
42 | | - {%- for key, value in syllabuses.items() recursive %} |
43 | | - {%- set depth = idxs|length + 2 %} |
44 | | - {% if depth == 3 %} |
45 | | - </details> |
46 | | - <details> |
47 | | - {% endif %} |
48 | | - {% if depth > 2 %} |
| 65 | + {%- set idxs = [] %} |
| 66 | + {%- for key, value in syllabuses.items() recursive %} |
| 67 | + {%- set depth = idxs|length + 2 %} |
49 | 68 | {% if depth == 3 %} |
50 | | - <summary> |
| 69 | + </details> |
| 70 | + <details> |
51 | 71 | {% endif %} |
52 | | - <div class="h{{depth}}"> |
53 | | - {{ key }} |
54 | | - {% if value.files %} |
55 | | - <a href="https://github.com/edinburghhacklab/hacklab-training/commit/{{ value.version }}">Version: {{ value.version }} - {{ value.commit_date }}</a> |
| 72 | + {% if depth > 2 %} |
| 73 | + {% if depth == 3 %} |
| 74 | + <summary> |
| 75 | + {% endif %} |
| 76 | + <div class="h{{depth}}"> |
| 77 | + {{ key }} |
| 78 | + {% if value.files %} |
| 79 | + <a href="https://github.com/edinburghhacklab/hacklab-training/commit/{{ value.version }}">Version: {{ value.version }} - {{ value.commit_date }}</a> |
| 80 | + {% endif %} |
| 81 | + </div> |
| 82 | + {% if depth == 3 %} |
| 83 | + </summary> |
56 | 84 | {% endif %} |
57 | | - </div> |
58 | | - {% if depth == 3 %} |
59 | | - </summary> |
60 | | - {% endif %} |
61 | 85 |
|
62 | | - {% endif %} |
63 | | - {%- if value.files %} |
64 | | - <ul> |
65 | | - {%- for file, filename in value.files.items() %} |
66 | | - <li><a href="{{ filename }}">{{ file }}</a></li> |
67 | | - {%- endfor %} |
68 | | - </ul> |
69 | | - {%- else %} |
70 | | - {%- do idxs.append(loop.index) %} |
71 | | - {{ loop(value.items()) }} |
72 | | - {%- do idxs.pop() %} |
73 | | - {%- endif %} |
74 | | - {%- endfor %} |
75 | | - <footer> |
76 | | - <p><small>Last updated: {{ timestr }}</small></p> |
77 | | - </footer> |
| 86 | + {% endif %} |
| 87 | + {%- if value.files %} |
| 88 | + <ul> |
| 89 | + {%- for file, filename in value.files.items() %} |
| 90 | + <li><a href="{{ filename }}">{{ file }}</a></li> |
| 91 | + {%- endfor %} |
| 92 | + </ul> |
| 93 | + {%- else %} |
| 94 | + {%- do idxs.append(loop.index) %} |
| 95 | + {{ loop(value.items()) }} |
| 96 | + {%- do idxs.pop() %} |
| 97 | + {%- endif %} |
| 98 | + {%- endfor %} |
| 99 | + <footer> |
| 100 | + <p><small>Last updated: {{ timestr }}</small></p> |
| 101 | + </footer> |
| 102 | + </div> |
78 | 103 | </body> |
79 | 104 | </html> |
0 commit comments