<template>
|
<div class="login-panel">
|
<div class="container">
|
<header class="header">
|
<h1>中国科学院深海科学与工程研究所安全管理信息化平台</h1>
|
</header>
|
<div class="boxes-container">
|
<div class="box" @click="openExam">
|
<!-- <i class="fas fa-shield-alt"></i>-->
|
<h2>安全教育考试系统</h2>
|
<p>Safety Education Exam System</p>
|
<div class="arrow">
|
<i class="fas fa-arrow-right"></i>
|
</div>
|
</div>
|
|
<div class="box" @click="openCheck">
|
<!-- <i class="fas fa-database"></i>-->
|
<h2>安全检查整改系统</h2>
|
<p>Safety Inspection & Rectification System</p>
|
<div class="arrow">
|
<i class="fas fa-arrow-right"></i>
|
</div>
|
</div>
|
</div>
|
|
</div>
|
<div class="videoContainer">
|
<video class="fullscreenVideo" id="bgVid" playsinline="" autoplay="" muted="" loop="">
|
<source src="../assets/back.mp4"></source>
|
</video>
|
</div>
|
</div>
|
|
</template>
|
<script setup>
|
import { ref } from 'vue'
|
defineProps({
|
msg: String,
|
})
|
const openExam = () => {
|
window.open('http://10.10.1.145:8015/nanoweb/foreground/','_blank')
|
}
|
const openCheck = () => {
|
window.open('http://10.10.1.145:8010/','_blank')
|
}
|
|
|
|
const count = ref(0)
|
</script>
|
|
|
<style scoped>
|
* {
|
margin: 0;
|
padding: 0;
|
box-sizing: border-box;
|
font-family: 'Arial', 'Microsoft YaHei', sans-serif;
|
}
|
.login-panel{
|
width: 100%;
|
height: 100%;
|
//background: url("../assets/bg2.jpg") no-repeat center;
|
background-image: url("../assets/back.mp4");
|
background-size: cover;
|
justify-content: center;
|
align-items: center;
|
|
}
|
|
|
|
.container {
|
max-width: 1300px;
|
margin: 0 auto;
|
padding: 20px;
|
}
|
|
.header {
|
text-align: center;
|
padding-top: 70px;
|
position: relative;
|
}
|
|
.header h1 {
|
color: #e0f7ff;
|
font-size: 2.5rem;
|
margin-bottom: 20px;
|
text-shadow: 0 0 10px rgba(100, 220, 255, 0.8);
|
animation: glow 2s infinite alternate;
|
}
|
|
.header::after {
|
content: '';
|
display: block;
|
width: 80px;
|
height: 4px;
|
background: #4df8ff;
|
margin: 20px auto;
|
border-radius: 2px;
|
}
|
|
.boxes-container {
|
display: flex;
|
justify-content: space-around;
|
flex-wrap: wrap;
|
gap: 30px;
|
margin-top: 12%;
|
|
}
|
|
.box {
|
width: 45%;
|
min-width: 300px;
|
height: 300px;
|
background: rgba(1, 58, 115, 0.6); /* 深海蓝半透明背景 */
|
border-radius: 10px;
|
border: 1px solid rgba(100, 220, 255, 0.4); /* 发光蓝色边框 */
|
box-shadow: 0 0 25px rgba(70, 180, 255, 0.3); /* 蓝色光晕 */
|
display: flex;
|
flex-direction: column;
|
justify-content: center;
|
align-items: center;
|
text-align: center;
|
padding: 30px;
|
cursor: pointer;
|
transition: all 0.5s ease;
|
overflow: hidden;
|
position: relative;
|
}
|
|
.box:hover {
|
transform: translateY(-10px);
|
box-shadow: 0 0 35px rgba(70, 200, 255, 0.5);
|
border-color: rgba(100, 240, 255, 0.8);
|
background: rgba(0, 60, 90, 0.7); /* 悬浮时更亮的蓝 */
|
}
|
|
.box::before {
|
content: '';
|
position: absolute;
|
top: 0;
|
left: -100%;
|
width: 100%;
|
height: 100%;
|
background: linear-gradient(90deg, transparent, rgba(0, 195, 255, 0.1), transparent);
|
transition: 0.5s;
|
}
|
|
.box:hover::before {
|
left: 100%;
|
}
|
|
.box i {
|
font-family: "Font Awesome 6 Free", "Segoe UI Emoji" !important;
|
font-weight: 900 !important;
|
}
|
|
.box h2 {
|
font-size: 1.8rem;
|
margin-bottom: 15px;
|
transition: all 0.3s ease;
|
color: #b7f0ff; /* 亮青色标题 */
|
}
|
|
.box:hover h2 {
|
text-shadow: 0 0 10px rgba(0, 195, 255, 0.7);
|
}
|
|
.box p {
|
font-size: 1rem;
|
line-height: 1.6;
|
color: rgba(200, 240, 255, 0.9); /* 浅蓝灰文字 */
|
}
|
|
.box .arrow {
|
position: absolute;
|
bottom: 20px;
|
font-size: 1.5rem;
|
opacity: 0;
|
transform: translateY(20px);
|
transition: all 0.3s ease;
|
color: #4df8ff;
|
}
|
|
.box:hover .arrow {
|
opacity: 1;
|
transform: translateY(0);
|
}
|
|
@keyframes glow {
|
from {
|
text-shadow: 0 0 5px rgba(0, 195, 255, 0.5);
|
}
|
to {
|
text-shadow: 0 0 15px rgba(0, 195, 255, 0.9), 0 0 20px rgba(0, 195, 255, 0.5);
|
}
|
}
|
|
.desc-icon {
|
font-size: 1.8rem;
|
color: rgba(77, 248, 255, 0.7);
|
margin: 10px 0;
|
filter: drop-shadow(0 0 3px rgba(77, 248, 255, 0.5));
|
transition: all 0.3s ease;
|
cursor: pointer;
|
}
|
|
.desc-icon:hover {
|
color: #4df8ff;
|
transform: rotate(45deg);
|
filter: drop-shadow(0 0 6px rgba(77, 248, 255, 0.8));
|
}
|
|
@keyframes float {
|
0% {
|
transform: translateY(0) translateX(0);
|
opacity: 0;
|
}
|
10% {
|
opacity: 1;
|
}
|
90% {
|
opacity: 1;
|
}
|
100% {
|
transform: translateY(-100vh) translateX(200px);
|
opacity: 0;
|
}
|
}
|
|
/* 响应式设计 */
|
@media (max-width: 768px) {
|
.boxes-container {
|
flex-direction: column;
|
align-items: center;
|
}
|
.box {
|
width: 80%;
|
}
|
.header h1 {
|
font-size: 2rem;
|
}
|
}
|
.videoContainer{
|
position: fixed;
|
width: 100%;
|
height: 100%;
|
overflow: hidden;
|
z-index: -100;
|
top: 0;
|
}
|
.videoContainer :before{
|
content: '';
|
position: absolute;
|
width: 100%;
|
height: 100%;
|
display: block;
|
z-index: -1;
|
top: 0;
|
left: 0;
|
background: rgba(25,29,34,.65);
|
}
|
</style>
|