|
| 1 | +<html lang="en"><head> |
| 2 | + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 3 | + <meta name="robots" content="noindex, nofollow"> |
| 4 | + <title>Warden</title> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| 6 | + <meta http-equiv="refresh" content="{{ .RefreshFrequency }}"> |
| 7 | + <link rel="preconnect" href="https://fonts.bunny.net" crossorigin=""> |
| 8 | + <link rel="dns-prefetch" href="https://fonts.bunny.net"> |
| 9 | + <link href="https://fonts.bunny.net/css2?family=Open+Sans:wght@400;700&display=swap" rel="stylesheet"> |
| 10 | + <style> |
| 11 | + html,body {background-color:black;color:#fff;font-family:'Open Sans',sans-serif;height:100vh;margin:0;font-size:0} |
| 12 | + .container {height:100vh;align-items:center;display:flex;justify-content:center;position:relative} |
| 13 | + .wrap {text-align:center} |
| 14 | + .ghost {animation:float 3s ease-out infinite} |
| 15 | + @keyframes float { 50% {transform:translate(0,20px)}} |
| 16 | + .shadowFrame {width:130px;margin: 10px auto 0 auto} |
| 17 | + .shadow {animation:shrink 3s ease-out infinite;transform-origin:center center} |
| 18 | + @keyframes shrink {0%{width:90%;margin:0 5%} 50% {width:60%;margin:0 18%} 100% {width:90%;margin:0 5%}} |
| 19 | + h3 {font-size:17px;text-transform: uppercase;margin:0.3em auto} |
| 20 | + .description {font-size:13px;color:#feb8c5} |
| 21 | + .details {color:#999;width:100%} |
| 22 | + .details table {width:100%} |
| 23 | + .details td {white-space:nowrap;font-size:11px} |
| 24 | + .details .name {text-align:right;padding-right:.6em;width:50%} |
| 25 | + .details .value {text-align:left;padding-left:.6em;font-family:'Lucida Console','Courier New',monospace} |
| 26 | + .details .value.error {color: rgb(231, 89, 82)} |
| 27 | + .details .value.success {color: rgb(82, 231, 142)} |
| 28 | + </style> |
| 29 | +</head> |
| 30 | +<body> |
| 31 | +<div class="container"> |
| 32 | + <div class="wrap"> |
| 33 | + |
| 34 | + <pre class="warden-mark" style=" |
| 35 | + color: green; |
| 36 | + font-size: 22px; |
| 37 | + line-height: 1em; |
| 38 | + font-weight: 600; |
| 39 | + text-shadow: 2px 2px 3px #005003; |
| 40 | +"> _ __ __ |
| 41 | +| | / /___ __________/ /__ ____ |
| 42 | +| | /| / / __ `/ ___/ __ / _ \/ __ \ |
| 43 | +| |/ |/ / /_/ / / / /_/ / __/ / / / |
| 44 | +|__/|__/\__,_/_/ \__,_/\___/_/ /_/ |
| 45 | + </pre> |
| 46 | + <h3><span>Starting</span> {{ .DisplayName }}</h3> |
| 47 | + <p class="description">Your instance(s) will stop after {{ .SessionDuration }} of inactivity</p> |
| 48 | + <div class="details"> |
| 49 | + <table> |
| 50 | + {{- range $i, $instance := .InstanceStates }} |
| 51 | + <tr> |
| 52 | + <td class="name">{{ $instance.Name }}</td> |
| 53 | + {{- if $instance.Error }} |
| 54 | + <td class="value error">{{ $instance.Error }}</td> |
| 55 | + {{- else }} |
| 56 | + <td class="value success">{{ $instance.Status }} ({{ $instance.CurrentReplicas }}/{{ $instance.DesiredReplicas }})</td> |
| 57 | + {{- end}} |
| 58 | + </tr> |
| 59 | + {{ end -}} |
| 60 | + </table> |
| 61 | + </div> |
| 62 | + </div> |
| 63 | +</div> |
| 64 | + |
| 65 | +</body></html> |
0 commit comments