|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <title>Extended HTTP API service for Prometheus</title> |
| 7 | + <link rel="icon" type="image/png" href="https://raw.githubusercontent.com/hayk96/prometheus-api/main/docs/images/logo.png"> |
| 8 | + <style> |
| 9 | + body, h1, ul, li, a { |
| 10 | + margin: 0; |
| 11 | + padding: 0; |
| 12 | + } |
| 13 | + body { |
| 14 | + font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; |
| 15 | + background: linear-gradient(135deg, #667eea, #764ba2); |
| 16 | + color: white; |
| 17 | + display: flex; |
| 18 | + flex-direction: column; |
| 19 | + align-items: center; |
| 20 | + justify-content: center; |
| 21 | + height: 100vh; |
| 22 | + background-size: 200% 200%; |
| 23 | + animation: backgroundShift 10s ease infinite; |
| 24 | + } |
| 25 | + |
| 26 | + @keyframes backgroundShift { |
| 27 | + 0% { background-position: 0% 50%; } |
| 28 | + 50% { background-position: 100% 50%; } |
| 29 | + 100% { background-position: 0% 50%; } |
| 30 | + } |
| 31 | + |
| 32 | + a { |
| 33 | + color: white; |
| 34 | + text-decoration: none; |
| 35 | + } |
| 36 | + |
| 37 | + nav { |
| 38 | + position: fixed; |
| 39 | + top: 0; |
| 40 | + left: 0; |
| 41 | + right: 0; |
| 42 | + display: flex; |
| 43 | + justify-content: space-between; |
| 44 | + align-items: center; |
| 45 | + padding: 10px 20px; |
| 46 | + background: #30354b; |
| 47 | + box-shadow: 0 2px 5px rgba(40, 14, 14, 0.3); |
| 48 | + z-index: 1000; |
| 49 | + } |
| 50 | + .navbar-logo { |
| 51 | + height: 50px; |
| 52 | + animation: enterLogo 1s ease-out forwards; |
| 53 | + } |
| 54 | + |
| 55 | + @keyframes enterLogo { |
| 56 | + 0% { transform: scale(0); } |
| 57 | + 80% { transform: scale(1.1); } |
| 58 | + 100% { transform: scale(1); } |
| 59 | + } |
| 60 | + |
| 61 | + .nav-title { |
| 62 | + margin-left: 10px; |
| 63 | + font-size: 20px; |
| 64 | + font-weight: 500; |
| 65 | + } |
| 66 | + .nav-menu { |
| 67 | + display: flex; |
| 68 | + align-items: center; |
| 69 | + list-style: none; |
| 70 | + } |
| 71 | + .nav-item:not(:last-child) { |
| 72 | + margin-right: 20px; |
| 73 | + } |
| 74 | + .nav-link { |
| 75 | + display: flex; |
| 76 | + align-items: center; |
| 77 | + } |
| 78 | + .nav-link img { |
| 79 | + height: 20px; |
| 80 | + margin-right: 8px; |
| 81 | + } |
| 82 | + |
| 83 | + .nav-link:hover { |
| 84 | + animation: linkPulse 1s infinite; |
| 85 | + } |
| 86 | + |
| 87 | + @keyframes linkPulse { |
| 88 | + 0% { transform: scale(1); } |
| 89 | + 50% { transform: scale(1.05); } |
| 90 | + 100% { transform: scale(1); } |
| 91 | + } |
| 92 | + |
| 93 | + .container { |
| 94 | + text-align: center; |
| 95 | + max-width: 400px; |
| 96 | + width: 90%; |
| 97 | + padding: 2rem; |
| 98 | + background: rgba(255, 255, 255, 0.1); |
| 99 | + border-radius: 10px; |
| 100 | + backdrop-filter: blur(10px); |
| 101 | + border: 1px solid rgba(255, 255, 255, 0.3); |
| 102 | + position: relative; |
| 103 | + top: 60px; |
| 104 | + } |
| 105 | + h1 { |
| 106 | + font-size: 2rem; |
| 107 | + margin-bottom: 1rem; |
| 108 | + } |
| 109 | + button { |
| 110 | + font-size: 1rem; |
| 111 | + padding: 0.75rem 1.5rem; |
| 112 | + margin: 0.5rem; |
| 113 | + border: none; |
| 114 | + border-radius: 20px; |
| 115 | + cursor: pointer; |
| 116 | + transition: all 0.3s ease; |
| 117 | + color: #ffffff; |
| 118 | + background-image: linear-gradient(45deg, #f6d365, #fda085); |
| 119 | + box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16); |
| 120 | + width: 200px; |
| 121 | + } |
| 122 | + button:hover { |
| 123 | + animation: buttonPulse 0.5s ease; |
| 124 | + } |
| 125 | + |
| 126 | + @keyframes buttonPulse { |
| 127 | + from { transform: translateY(0); } |
| 128 | + 50% { transform: translateY(-5px); } |
| 129 | + to { transform: translateY(0); } |
| 130 | + } |
| 131 | + |
| 132 | + @media (max-width: 768px) { |
| 133 | + .nav-title { |
| 134 | + display: none; |
| 135 | + } |
| 136 | + .nav-link img { |
| 137 | + margin-right: 5px; |
| 138 | + } |
| 139 | + .container { |
| 140 | + padding: 1.5rem; |
| 141 | + top: 30px; |
| 142 | + width: 95%; |
| 143 | + } |
| 144 | + button { |
| 145 | + padding: 0.5rem 1rem; |
| 146 | + } |
| 147 | + } |
| 148 | + </style> |
| 149 | +</head> |
| 150 | +<body> |
| 151 | + <nav> |
| 152 | + <div style="display: flex; align-items: center;"> |
| 153 | + <img src="https://raw.githubusercontent.com/hayk96/prometheus-api/main/docs/images/logo.png" alt="Prometheus API" class="navbar-logo"> |
| 154 | + <span class="nav-title">Prometheus API</span> |
| 155 | + </div> |
| 156 | + <ul class="nav-menu"> |
| 157 | + <li class="nav-item"> |
| 158 | + <a href="https://github.com/hayk96/prometheus-api" class="nav-link"> |
| 159 | + <img src="/images/logo-github.png" alt="GitHub Logo">GitHub |
| 160 | + </a> |
| 161 | + </li> |
| 162 | + <li class="nav-item"> |
| 163 | + <a href="#" id="apiDocumentationLink" class="nav-link"> |
| 164 | + <img src="/images/icon-web-code.png" alt="Prometheus Docs Logo">API Documentation |
| 165 | + </a> |
| 166 | + </li> |
| 167 | + </ul> |
| 168 | + </nav> |
| 169 | + <div class="container"> |
| 170 | + <h1>The easiest Prometheus management interface</h1> |
| 171 | + <button id="openPrometheusButton">Open Prometheus</button> |
| 172 | + <button id="rulesManagementButton">Rules Management</button> |
| 173 | + <button id="metricsManagementButton">Metrics Management</button> |
| 174 | + <button id="reportsButton">Reports</button> |
| 175 | + </div> |
| 176 | + <script> |
| 177 | + document.addEventListener('DOMContentLoaded', function() { |
| 178 | + document.getElementById('apiDocumentationLink').href = window.location.origin + '/redoc'; |
| 179 | + document.getElementById('openPrometheusButton').onclick = function() { |
| 180 | + window.location.href = window.location.origin + '/graph'; |
| 181 | + }; |
| 182 | + document.getElementById('rulesManagementButton').onclick = function() { |
| 183 | + window.location.href = window.location.origin + '/rules-management'; |
| 184 | + }; |
| 185 | + document.getElementById('metricsManagementButton').onclick = function() { |
| 186 | + window.location.href = window.location.origin + '/metrics-management'; |
| 187 | + }; |
| 188 | + document.getElementById('reportsButton').onclick = function() { |
| 189 | + window.location.href = window.location.origin + '/reports'; |
| 190 | + }; |
| 191 | + }); |
| 192 | + </script> |
| 193 | +</body> |
| 194 | +</html> |
0 commit comments