Files
monitor/static_backup/home.html
2025-12-05 10:22:52 +08:00

102 lines
5.5 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>监控系统首页</title>
<!-- Tailwind CSS -->
<script src="js/vendor/tailwind.js"></script>
<!-- Chart.js -->
<script src="js/vendor/chart.min.js"></script>
<!-- 自定义样式 -->
<style>
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.chart-container {
position: relative;
height: 300px;
width: 100%;
}
.status-card {
transition: all 0.3s ease;
}
.status-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.metric-value {
font-feature-settings: "tnum";
font-variant-numeric: tabular-nums;
}
</style>
</head>
<body class="bg-gray-50">
<!-- 顶部导航栏 -->
<header class="bg-white shadow-md">
<div class="container mx-auto px-4 py-4">
<div class="flex justify-between items-center">
<div class="flex items-center gap-4">
<div class="text-blue-600 font-bold text-xl">监控系统</div>
<nav class="hidden md:flex space-x-8">
<a href="/home.html" class="text-blue-600 font-medium">首页</a>
<a href="/" class="text-gray-600 hover:text-blue-600 transition-colors">仪表盘</a>
<a href="#" class="text-gray-600 hover:text-blue-600 transition-colors">设备监控</a>
<a href="#" class="text-gray-600 hover:text-blue-600 transition-colors">网络监控</a>
<a href="#" class="text-gray-600 hover:text-blue-600 transition-colors">关于产品</a>
</nav>
</div>
<div class="flex items-center gap-4">
<button class="text-gray-600 hover:text-blue-600 transition-colors">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
</svg>
</button>
<button class="text-gray-600 hover:text-blue-600 transition-colors">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"></path>
</svg>
</button>
<div class="flex items-center gap-2">
<div class="w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center">
<span class="text-blue-600 font-medium">A</span>
</div>
<span class="text-gray-600">管理员</span>
<svg class="w-4 h-4 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
</svg>
</div>
</div>
</div>
</div>
</header>
<!-- 主要内容区域 -->
<main class="container mx-auto px-4 py-6">
<!-- 监控资源概览 -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
<!-- 业务系统 -->
<div class="status-card bg-white rounded-lg shadow-md p-5">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500 text-sm font-medium">业务系统</p>
<h3 class="text-2xl font-bold text-gray-800 metric-value">355</h3>
</div>
<div class="p-3 bg-blue-100 rounded-full">
<svg class="w-6 h-6 text-blue-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"></path>
</svg>
</div>
</div>
</div>
<!-- 服务器 -->
<div class="status-card bg-white rounded-lg shadow-md p-5">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-500 text-sm font-medium">服务器</p>
<h3 class="text-2xl font-bold text-gray-800 metric-value">138</h3>
</div>
<div class="p-3 bg-green-100 rounded-full">
<svg class="w-6 h-6 text-green-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0