|
7 | 7 | /> |
8 | 8 | <meta charset="UTF-8" /> |
9 | 9 | <style> |
| 10 | + /* Theme from Material for MkDocs */ |
| 11 | + |
10 | 12 | @font-face { |
11 | | - font-family: SourceSans3; |
| 13 | + font-family: "Source Sans 3"; |
12 | 14 | src: url("SourceSans3.ttf"); |
13 | 15 | } |
14 | 16 |
|
15 | 17 | :root { |
16 | | - --blue: #88f; |
17 | | - --black: #222226; |
18 | | - --white: #ebe9e5; |
| 18 | + --header-bg: rgb(84, 109, 120); |
| 19 | + |
| 20 | + --footer-bg: rgb(17, 19, 23); |
| 21 | + --footer-hi: rgba(255, 255, 255, 0.7); |
| 22 | + --footer-fg: rgba(255, 255, 255, 0.45); |
| 23 | + |
| 24 | + --main-bg: rgb(30, 33, 41); |
| 25 | + --main-header: rgba(226, 228, 233, 0.56); |
| 26 | + --main-fg: rgba(226, 228, 233, 0.82); |
| 27 | + |
| 28 | + --white: rgb(255, 255, 255); |
| 29 | + |
| 30 | + font-size: 20px; |
| 31 | + } |
| 32 | + |
| 33 | + @media screen and (min-width: 2000) { |
| 34 | + :root { |
| 35 | + font-size: 24px; |
| 36 | + } |
| 37 | + } |
| 38 | + |
| 39 | + @media screen and (min-width: 1600) { |
| 40 | + :root { |
| 41 | + font-size: 22px; |
| 42 | + } |
19 | 43 | } |
20 | 44 |
|
21 | 45 | body { |
22 | | - background: var(--black); |
23 | | - color: var(--white); |
| 46 | + background: var(--main-bg); |
| 47 | + color: var(--main-fg); |
24 | 48 | display: flex; |
25 | 49 | flex-direction: column; |
26 | | - font-family: "Source Sans Pro", sans-serif; |
| 50 | + font-family: "Source Sans 3", sans-serif; |
27 | 51 | margin: 0; |
28 | 52 | min-height: 100vh; |
29 | | - padding: 0 2em; |
30 | 53 | } |
31 | 54 |
|
32 | 55 | header { |
| 56 | + background: var(--header-bg); |
| 57 | + box-shadow: 0 0 0.2rem #0000001a, 0 0.2rem 0.4rem #0003; |
| 58 | + color: var(--white); |
| 59 | + font-weight: 700; |
33 | 60 | text-transform: uppercase; |
34 | | - padding: 25px 20px; |
| 61 | + } |
| 62 | + |
| 63 | + header svg { |
| 64 | + height: 1.2rem; |
| 65 | + width: auto; |
| 66 | + padding: 8px; |
| 67 | + margin: 4px; |
| 68 | + } |
| 69 | + |
| 70 | + header .title { |
| 71 | + font-size: 0.9rem; |
| 72 | + line-height: 2.4rem; |
| 73 | + margin-left: 1rem; |
| 74 | + } |
| 75 | + |
| 76 | + header .header { |
| 77 | + align-items: center; |
| 78 | + display: flex; |
35 | 79 | } |
36 | 80 |
|
37 | 81 | main { |
38 | 82 | flex: 1; |
39 | | - padding: 20px; |
| 83 | + font-size: 0.8em; |
40 | 84 | } |
41 | 85 |
|
42 | 86 | .content { |
| 87 | + box-sizing: border-box; |
43 | 88 | margin: auto; |
44 | | - max-width: 640px; |
| 89 | + max-width: 800px; |
45 | 90 | } |
46 | 91 |
|
47 | | - .header { |
48 | | - align-items: center; |
49 | | - display: flex; |
50 | | - gap: 1em; |
| 92 | + .content.padding { |
| 93 | + padding: 0 12px; |
51 | 94 | } |
52 | 95 |
|
53 | 96 | h1 { |
54 | | - font-size: 1.5em; |
| 97 | + color: var(--main-header); |
| 98 | + font-size: 2em; |
55 | 99 | font-weight: 300; |
56 | | - margin: 0; |
| 100 | + letter-spacing: -0.01em; |
| 101 | + line-height: 1.3; |
| 102 | + margin: 3rem 0 1.5rem; |
| 103 | + |
| 104 | + display: flex; |
| 105 | + align-items: center; |
| 106 | + } |
| 107 | + |
| 108 | + .emoji { |
| 109 | + color: var(--white); |
| 110 | + font-size: 1.5em; |
| 111 | + line-height: 1em; |
| 112 | + margin-right: 1rem; |
| 113 | + width: auto; |
| 114 | + } |
| 115 | + |
| 116 | + p { |
| 117 | + font-size: 0.8rem; |
| 118 | + line-height: 1.6; |
57 | 119 | } |
58 | 120 |
|
59 | 121 | table { |
60 | | - background: var(--white); |
| 122 | + border: 0.05rem solid rgba(240, 241, 244, 0.12); |
61 | 123 | border-collapse: collapse; |
62 | | - border-radius: 2.75px; |
63 | | - border-style: hidden; |
64 | | - color: var(--black); |
65 | | - margin: 1em 0; |
| 124 | + font-size: 0.64rem; |
| 125 | + margin: 1.5rem 0; |
66 | 126 | width: 100%; |
67 | 127 | } |
68 | 128 |
|
69 | 129 | tr { |
70 | | - border: solid 1px var(--black); |
| 130 | + border: 0.05rem solid rgba(240, 241, 244, 0.12); |
71 | 131 | } |
72 | 132 |
|
73 | 133 | th, |
74 | 134 | td { |
75 | | - padding: 15px 30px; |
| 135 | + padding: 1em 1.25em; |
76 | 136 | text-align: left; |
77 | 137 | } |
78 | 138 |
|
79 | 139 | th { |
80 | 140 | font-weight: 700; |
| 141 | + width: 37.5%; |
81 | 142 | } |
82 | 143 |
|
83 | 144 | footer { |
84 | | - font-size: 1rem; |
85 | | - margin-top: 4em; |
86 | | - padding: 1em; |
87 | | - text-align: center; |
88 | | - } |
89 | | - |
90 | | - .highlight { |
91 | | - align-items: center; |
92 | | - flex-wrap: wrap; |
93 | | - font-size: 2em; |
94 | | - display: flex; |
95 | | - justify-content: center; |
96 | | - margin: 2em 0; |
97 | | - row-gap: 1em; |
| 145 | + background: var(--footer-bg); |
| 146 | + color: var(--footer-fg); |
| 147 | + font-size: 0.64rem; |
| 148 | + line-height: 1.6; |
| 149 | + padding: 0.6rem; |
98 | 150 | } |
99 | 151 |
|
100 | | - .emoji { |
101 | | - font-size: 2.75em; |
102 | | - line-height: 1em; |
103 | | - margin: 0 1rem; |
104 | | - width: auto; |
105 | | - } |
106 | | - |
107 | | - .intro-container { |
108 | | - align-items: flex-start; |
109 | | - display: flex; |
110 | | - flex-direction: column; |
111 | | - justify-content: center; |
| 152 | + footer .version { |
| 153 | + color: var(--footer-hi); |
112 | 154 | } |
113 | 155 |
|
114 | | - .intro-row { |
115 | | - background: var(--white); |
116 | | - border-radius: 2.75px; |
117 | | - color: var(--black); |
118 | | - line-height: 1.25em; |
119 | | - margin: 0.125em; |
120 | | - padding: 0 0.25em; |
121 | | - } |
122 | | - |
123 | | - a { |
124 | | - color: var(--blue); |
| 156 | + footer a { |
| 157 | + color: var(--footer-hi); |
125 | 158 | text-decoration: none; |
126 | 159 | } |
127 | 160 |
|
128 | | - a:visited { |
129 | | - color: var(--blue); |
| 161 | + footer a:visited { |
| 162 | + color: var(--footer-hi); |
130 | 163 | } |
131 | 164 |
|
132 | | - a:hover, |
133 | | - a:focus { |
| 165 | + footer a:hover, |
| 166 | + footer a:focus { |
| 167 | + color: var(--white); |
134 | 168 | outline: none; |
135 | 169 | text-decoration: underline; |
136 | 170 | } |
|
143 | 177 | width="32" |
144 | 178 | height="32" |
145 | 179 | viewBox="0 0 16 16" |
146 | | - fill="none" |
147 | 180 | xmlns="http://www.w3.org/2000/svg" |
148 | 181 | > |
149 | 182 | <path |
150 | | - d="M 3 2 A 1 1 0 0 0 3 4 A 1 1 0 0 0 3 2 M 3 4 L 3 10 A 3 3 0 0 0 6 13 L 10 13 M 8 11 L 10 13 L 8 15 M 13 12 A 1 1 0 0 0 13 14 A 1 1 0 0 0 13 12 M 13 12 L 13 6 A 3 3 0 0 0 10 3 L 6 3 M 8 1 L 6 3 L 8 5" |
| 183 | + d="M 2.5 1 A 1 1 0 0 0 2.5 4 A 1 1 0 0 0 2.5 1 M 2.5 4 L 2.5 11.5 A 2 2 0 0 0 4.5 13.5 L 10.5 13.5 M 9 12 L 10.5 13.5 L 9 15 M 13.5 12 A 1 1 0 0 0 13.5 15 A 1 1 0 0 0 13.5 12 M 13.5 12 L 13.5 4.5 A 2 2 0 0 0 11.5 2.5 L 5.5 2.5 M 7 1 L 5.5 2.5 L 7 4" |
| 184 | + fill="none" |
151 | 185 | stroke="currentColor" |
| 186 | + stroke-linecap="round" |
152 | 187 | stroke-linejoin="round" |
| 188 | + stroke-width="1.125px" |
153 | 189 | ></path> |
154 | 190 | </svg> |
155 | | - <h1>Animals</h1> |
| 191 | + <span class="title">Animals</span> |
156 | 192 | </div> |
157 | 193 | </header> |
158 | 194 | <main> |
159 | | - <div class="content"> |
160 | | - <div class="highlight"> |
| 195 | + <div class="content padding"> |
| 196 | + <h1> |
161 | 197 | <span aria-hidden="true" class="emoji">build_emoji</span> |
162 | | - <div class="intro-container"> |
163 | | - <span class="intro-row">build_hello!</span> |
164 | | - <span class="intro-row">I'm a build_name.</span> |
165 | | - </div> |
166 | | - </div> |
| 198 | + build_hello! I'm a build_name. |
| 199 | + </h1> |
| 200 | + <p> |
| 201 | + This is a static website for testing networking and demonstrating |
| 202 | + rolling updates and load-balancing. The animal emoji and greeting |
| 203 | + above vary based on which version of this site is deployed to the |
| 204 | + server. The data in the table below vary depending on which server |
| 205 | + handled the request. |
| 206 | + </p> |
167 | 207 | <table> |
168 | 208 | <tbody> |
169 | 209 | <tr> |
170 | | - <th>Hostname:</th> |
| 210 | + <th>Hostname</th> |
171 | 211 | <td>nginx_hostname</td> |
172 | 212 | </tr> |
173 | 213 | <tr> |
174 | | - <th>Address:</th> |
| 214 | + <th>Address</th> |
175 | 215 | <td>nginx_address</td> |
176 | 216 | </tr> |
177 | 217 | </tbody> |
178 | 218 | </table> |
179 | 219 | </div> |
180 | 220 | </main> |
181 | 221 | <footer> |
182 | | - <a target="_blank" href="https://github.com/kangasta/animals.git" |
183 | | - >kangasta / animals</a |
184 | | - > |
185 | | - build_version_note |
| 222 | + <div class="content padding"> |
| 223 | + <div class="version"> |
| 224 | + <a |
| 225 | + target="_blank" |
| 226 | + href="https://github.com/cicd-tutorials/animals.git" |
| 227 | + >CI/CD Tutorials / Animals</a |
| 228 | + > |
| 229 | + build_version_note |
| 230 | + </div> |
| 231 | + <div> |
| 232 | + Theme from |
| 233 | + <a target="_blank" href="https://squidfunk.github.io/mkdocs-material/" |
| 234 | + >Material for MkDocs</a |
| 235 | + > |
| 236 | + </div> |
| 237 | + </div> |
186 | 238 | </footer> |
187 | 239 | </body> |
188 | 240 | </html> |
0 commit comments