web-backend/templates/index.html

75 lines
2.7 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>
<!-- 引入Bootstrap的CSS文件 -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
/* 为iframe添加适当的边距和样式 */
iframe {
border-radius: 8px; /* 圆角 */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 阴影 */
width: 100%; /* 自适应宽度 */
height: 400px; /* 固定高度 */
}
/* 给容器添加一些间距 */
.container-fluid {
margin-top: 30px; /* 顶部间距 */
}
/* 设置页面标题的样式 */
h1 {
text-align: center;
margin-bottom: 30px;
}
/* 设置Chart容器的样式 */
.chart-container {
margin-bottom: 30px; /* 每个图表容器之间的间距 */
}
</style>
</head>
<body>
<!-- 页面容器 使用container-fluid -->
<div class="container-fluid mt-5">
<h1>哇哦哦哦哦哦哦哦哦哦哦哦哦哦哦哦哦</h1>
<!-- 第一个图表容器放在最上面 -->
<div class="row">
<div class="col-12 chart-container">
<iframe src="/show" frameborder="0"></iframe>
</div>
</div>
<!-- 其他四个图表容器,分成两列一行 -->
<div class="row">
<!-- 第二个图表容器 -->
<div class="col-lg-6 col-md-6 col-sm-12 chart-container">
<iframe src="/ordercount" frameborder="0"></iframe>
</div>
<!-- 第三个图表容器 -->
<div class="col-lg-6 col-md-6 col-sm-12 chart-container">
<iframe src="/streamordersummary" frameborder="0"></iframe>
</div>
</div>
<div class="row">
<!-- 第四个图表容器 -->
<div class="col-lg-6 col-md-6 col-sm-12 chart-container">
<iframe src="/streamordernamecount" frameborder="0"></iframe>
</div>
<!-- 第五个图表容器 -->
<div class="col-lg-6 col-md-6 col-sm-12 chart-container">
<iframe src="/streamsummary" frameborder="0"></iframe>
</div>
</div>
</div>
<!-- 引入Bootstrap的JS文件 -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.min.js"></script>
</body>
</html>