three实现三维全球地震数据可视化大屏代码
代码语言:html
所属分类:图表
代码描述:three实现三维全球地震数据可视化大屏代码
代码标签: three 三维 全球 地震 数据 可视化 大屏 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>全球地震数据可视化大屏</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background: #000;
overflow: hidden;
font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
color: #fff;
}
#canvas-container { width: 100vw; height: 100vh; }
.header {
position: absolute;
top: 0; left: 0; right: 0;
height: 65px;
background: linear-gradient(180deg, rgba(0,12,35,0.96) 0%, rgba(0,8,25,0.4) 80%, transparent 100%);
display: flex; align-items: center; justify-content: center;
z-index: 100;
}
.header h1 {
font-size: 24px; font-weight: 300;
letter-spacing: 10px; color: #00d4ff;
text-shadow: 0 0 30px rgba(0,200,255,0.4);
}
.header::after {
content: ''; position: absolute; bottom: 0; left: 10%; right: 10%;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(0,180,255,0.5), transparent);
}
.header-time {
position: absolute; right: 30px;
font-size: 13px; color: #3388aa; letter-spacing: 2px; font-weight: 300;
}
.header-left-tag {
position: absolute; left: 30px;
font-size: 11px; color: #22667f; letter-spacing: 2px;
}
.panel-left {
position: absolute; top: 80px; left: 15px;
width: 310px; z-index: 100;
}
.panel-right {
position: absolute; top: 80px; right: 15px;
width: 310px; z-index: 100;
}
.card {
background: linear-gradient(135deg, rgba(0,18,45,0.88) 0%, rgba(0,8,25,0.92) 100%);
border: 1px solid rgba(0,100,200,0.18);
border-radius: 8px;
padding: 16px 18px;
margin-bottom: 10px;
backdrop-filter: blur(12px);
position: relative;
}
.card::before {
content: ''; position: absolute; top: 0; left: 0;
width: 2px; height: 100%;
background: linear-gradient(180deg, #00aaff, transparent);
border-radius: 2px;
}
.card-title {
font-size: 12px; color: #00bbff;
letter-spacing: 3px; margin-bottom: 12px;
font-weight: 600; text-transform: uppercase;
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-item {
text-align: center; padding: 10px 5px;
background: rgba(0,40,80,0.2); border-radius: 6px;
border: 1px solid rgba(0,80,160,0.12);
}
.stat-value {
font-size: 28px; font-weight: 700; line-height: 1.2;
background: linear-gradient(180deg, #00ddff, #0077aa);
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-value.danger { background: linear-gradient(180deg,#ff4444,#cc0000); -webkit-background-clip:text; background-clip:text; }
.stat-value.warning { background: linear-gradient(180deg,#ffaa00,#dd6600); -webkit-background-clip:text; background-clip:text; }
.stat-value.success { background: linear-gradient(180deg,#00ff88,#00aa44); -webkit-background-clip:text; background-clip:text; }
.stat-label { font-size: 10px; color: #446688; margin-top: 4px; letter-spacing: 1px; }
.quake-list { max-height: 320px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #0a2540 transparent; }
.quake-list::-webkit-scrollbar { width: 3px; }
.quake-list::-webkit-scrollbar-thumb { background: #0a3050; border-radius: 3px; }
.quake-item {
display: flex; align-items: center;
padding: 7px 8px; margin: 2px 0;
background: rgba(0,20,45,0.5); border-radius: 5px;
cursor: pointer; transition: all 0.3s;
border-left: 2px solid transparent;
}
.quake-item:hover { background: rgba(0,50,100,0.4); border-left-color: #00aaff; }
.quake-mag {
width: 40px; height: 40px; b.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0