web-backend/templates/index.html

84 lines
3.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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">
<!-- 第一个图表容器放在最上面 -->
<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 class="row">
<h2>制作人员名单</h2>
<p>郭子奇架构设计服务器部署和Python代码调试</p>
<p>许家禾spark streaming&spark core/rdd</p>
<p>李尧宇环境部署在Kafka中创建主题order用Python代码实现producer并每隔5秒推送数据给Kafka的order主题</p>
<p>李烁升使用spark streaming每隔两秒实时统计所有订单类别的数量</p>
<p>郭志胜:数据生产及数据展示</p>
<p>陈楠使用spark sql统计各个订单的有效数和无效数量</p>
</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>