k8s-pulse/templates/index.html

46 lines
2.0 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kubernetes Cluster Visualization</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/static/style.css">
<script src="https://d3js.org/d3.v7.min.js"></script>
</head>
<body>
<div class="app-container">
<header class="glass-panel header">
<div class="logo">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 2L2 7L12 12L22 7L12 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M2 17L12 22L22 17" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M2 12L12 17L22 12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<h1>K8s Pulse</h1>
</div>
<div class="controls">
<div class="toggle-container">
<button class="toggle-btn active" id="btn-cpu">CPU</button>
<button class="toggle-btn" id="btn-mem">Memory</button>
</div>
</div>
</header>
<main class="main-content">
<div id="loading" class="loading glass-panel">
<div class="spinner"></div>
<p>Analyzing Cluster...</p>
</div>
<div id="chart-container" class="chart-container"></div>
</main>
</div>
<div id="tooltip" class="tooltip glass-panel hidden"></div>
<script src="/static/app.js"></script>
</body>
</html>