guhongwei преди 5 години
родител
ревизия
b044f0dca3
променени са 5 файла, в които са добавени 593 реда и са изтрити 148 реда
  1. 26 6
      public/static/css/iconfont.css
  2. 92 8
      public/static/css/style.css
  3. 233 0
      public/static/css/style1.css
  4. 241 133
      public/static/home.html
  5. 1 1
      src/views/live/hall/liveApply.vue

Файловите разлики са ограничени, защото са твърде много
+ 26 - 6
public/static/css/iconfont.css


+ 92 - 8
public/static/css/style.css

@@ -184,7 +184,7 @@ p {
 	width: 100%;
 	height: 487px;
 	overflow: hidden;
-	background-image: url(../assets/live/top_3.png);
+	background-image: url(../images/top_3.png);
 }
 
 .livetop .title {
@@ -2139,11 +2139,95 @@ th {
 	left: 10px;
 	top: -2px;
 }
-/* 首页 */
-.home{
-  width: 100vw; 
-  height: 100vh; 
-  background-color:aliceblue; 
-  background-image: url(../images/bg2.png);
-  background-size: cover;
+
+.home {
+	float: left;
+	width: 100%;
+	position: relative;
+	z-index: 999;
+}
+
+.home .homeTop .homeTopInfo {
+	height: 40px;
+	line-height: 40px;
+	color: #fff;
+	font-size: 18px;
+}
+
+.home .homeTop .homeTopInfo button {
+	color: #fff;
+	font-size: 18px;
+}
+
+.home .homeTop .homeTopLogo {
+	padding: 80px 0;
+}
+
+.home .homeTop .homeTopLogo img {
+	width: 80px;
+	height: 70px;
+}
+
+.home .homeTop .homeTopLogo span {
+	font-size: 45px;
+	color: #fff;
+	font-family: cursive;
+	position: relative;
+	top: 15px;
+	left: 15px;
+}
+
+.home .homeMain {
+	float: left;
+	width: 100%;
+	height: 500px;
+}
+
+.home .homeMain .live {
+	left: 50%;
+	top: -11%;
+}
+
+.home .homeMain .super {
+	top: 41%;
+	left: 22%;
+}
+
+.home .homeMain .service {
+	top: 96%;
+	left: 0%;
+}
+
+.home .homeMain .dynamic {
+	top: 60%;
+	left: 68%;
+}
+
+.home .homeMain .technocal {
+	top: 104%;
+	left: 97%;
+}
+
+.home .homeMain nav ul li i {
+	font-size: 50px;
+	color: #fff;
+	margin: 35px 0 15px 0;
+	float: left;
+	width: 100%;
+}
+
+.home .homeMain nav ul li p {
+	font-size: 20px;
+	color: #fff;
+	font-weight: bold;
+}
+.home .homeDown{
+  float: left;
+  width: 100%;
+  font-size: 16px;
+  color: #fff;
+  padding: 20px 0 0 0;
+}
+.home .homeDown p{
+  padding: 10px 0 0 120px;
 }

+ 233 - 0
public/static/css/style1.css

@@ -0,0 +1,233 @@
+:root {
+	font-size: calc(16px + (20 - 16) * (100vw - 320px)/(980 - 320));
+	--rotateTimes: 0;
+}
+
+nav,
+ul,
+li {
+	transform-style: preserve-3d;
+}
+
+nav,
+li {
+	position: absolute;
+	top: 30%;
+	left: 50%;
+}
+
+nav,
+li a {
+	border-radius: 50%;
+}
+
+nav {
+	width: 100em;
+	height: 70em;
+	transform: translate(-50%, -50%) rotateX(75deg);
+	position: relative;
+}
+
+ul,
+li a {
+	width: 100%;
+	height: 100%;
+}
+
+ul {
+	list-style: none;
+}
+
+li {
+	animation: idle 4s ease-in-out infinite;
+	text-align: center;
+	width: 15em;
+	height: 15em;
+	transform: translate(-50%, -50%);
+}
+
+li a {
+	box-shadow: 0 0 0 0.1em #0cf inset, 0 0 1em #0cf inset;
+	color: currentColor;
+	display: inline-block;
+	text-decoration: none;
+	transition: transform 0.4s linear, box-shadow 0.15s linear, margin 0.1s linear, width 0.1s linear, height 0.1s linear;
+}
+
+li a span {
+	transition: color 0.15s linear;
+}
+
+li a:before {
+	background-color: #fff;
+	border-radius: 50%;
+	content: "";
+	display: block;
+	opacity: 0.5;
+	position: absolute;
+	top: 2.75em;
+	left: 3.75em;
+	width: 1em;
+	height: 0.5em;
+	transform: rotate(-45deg);
+}
+
+li a:focus,
+li a.current {
+	box-shadow: 0 0 0 0.1em #ff0 inset, 0 0 1em #ff0 inset;
+	outline: 0;
+}
+
+li a:focus span,
+li a.current span {
+	color: #ff0;
+}
+
+li a:hover {
+	margin: -5% 0 0 -5%;
+	width: 110%;
+	height: 110%;
+	box-shadow: 0 0 0 0.1em #ff0 inset, 0 0 1em #ff0 inset;
+}
+
+li a:hover svg {
+	width: 3em;
+	height: 3em;
+}
+
+@media (prefers-reduced-motion) {
+	li {
+		animation: none;
+	}
+}
+
+svg {
+	display: block;
+	margin: 1.25em auto 1.5em auto;
+	transition: width 0.1s linear, height 0.1s linear;
+	width: 2.5em;
+	height: 2.5em;
+}
+
+/* Position bubbles */
+li:nth-of-type(1) {
+	animation-delay: 0s;
+}
+
+li:nth-of-type(1) a {
+	transform: rotate(calc(0deg + var(--rotateTimes) * 51.4285714286deg)) translateY(9em) rotate(calc(0deg - var(--rotateTimes) * 51.4285714286deg)) rotateX(-75deg);
+}
+
+li:nth-of-type(2) {
+	animation-delay: -0.5s;
+}
+
+li:nth-of-type(2) a {
+	transform: rotate(calc(-51.4285714286deg + var(--rotateTimes) * 51.4285714286deg)) translateY(9em) rotate(calc(51.4285714286deg - var(--rotateTimes) * 51.4285714286deg)) rotateX(-75deg);
+}
+
+li:nth-of-type(3) {
+	animation-delay: -1s;
+}
+
+li:nth-of-type(3) a {
+	transform: rotate(calc(-102.8571428571deg + var(--rotateTimes) * 51.4285714286deg)) translateY(9em) rotate(calc(102.8571428571deg - var(--rotateTimes) * 51.4285714286deg)) rotateX(-75deg);
+}
+
+li:nth-of-type(4) {
+	animation-delay: -1.5s;
+}
+
+li:nth-of-type(4) a {
+	transform: rotate(calc(-154.2857142857deg + var(--rotateTimes) * 51.4285714286deg)) translateY(9em) rotate(calc(154.2857142857deg - var(--rotateTimes) * 51.4285714286deg)) rotateX(-75deg);
+}
+
+li:nth-of-type(5) {
+	animation-delay: -2s;
+}
+
+li:nth-of-type(5) a {
+	transform: rotate(calc(-205.7142857143deg + var(--rotateTimes) * 51.4285714286deg)) translateY(9em) rotate(calc(205.7142857143deg - var(--rotateTimes) * 51.4285714286deg)) rotateX(-75deg);
+}
+
+/* Animations */
+.rise {
+	animation: rise 1s ease-out;
+}
+
+.rise a {
+	animation: fadeOut 1s ease-out;
+}
+
+.rise a.pop {
+	animation: pop 1s linear;
+}
+
+.rise a.pop svg,
+.rise a.pop span {
+	visibility: hidden;
+}
+
+@keyframes rise {
+	from {
+		transform: translateZ(0);
+	}
+
+	15% {
+		transform: translateZ(-1em);
+	}
+
+	to {
+		transform: translateZ(35em);
+	}
+}
+
+@keyframes fadeOut {
+
+	from,
+	15% {
+		opacity: 1;
+	}
+
+	50%,
+	to {
+		opacity: 0;
+	}
+}
+
+@keyframes pop {
+	from {
+		margin: -5% 0 0 -5%;
+		width: 110%;
+		height: 110%;
+		opacity: 1;
+	}
+
+	10%,
+	to {
+		margin: -20% 0 0 -20%;
+		width: 140%;
+		height: 140%;
+		opacity: 0;
+	}
+}
+
+@keyframes idle {
+
+	from,
+	to {
+		transform: translate(-50%, -48%);
+	}
+
+	25% {
+		transform: translate(-52%, -50%);
+	}
+
+	50% {
+		transform: translate(-50%, -52%);
+	}
+
+	75% {
+		transform: translate(-48%, -50%);
+	}
+}

+ 241 - 133
public/static/home.html

@@ -1,140 +1,248 @@
 <html>
+	<head>
+		<title>欢迎来到吉林省计算机中心科技服务平台</title>
+		<meta charset="utf-8" />
+		<meta name="renderer" content="webkit">
+		<meta http-equiv="X-UA-Compatible" content="IE=edge">
+		<meta content="width=device-width, initial-scale=1" name="viewport" />
+		<meta content="" name="description" />
+		<meta content="" name="author" />
+		<link rel="stylesheet" type="text/css" href="css/style.css" />
+		<link rel="stylesheet" type="text/css" href="css/style1.css" />
+		<link rel="stylesheet" type="text/css" href="css/iconfont.css"/>
+	</head>
+	<body style="margin: 0 !important;">
+		<div style="width: 100vw; height: 100vh; background-color:aliceblue; background-image: url(images/bg2.png); background-size: cover">
+			<div class="home">
+				<div class="w_0100">
+					<div class="w_1200">
+						<div class="homeTop">
+							<div class="homeTopInfo">
+								<span>欢迎来到吉林省计算机中心科技服务平台</span>
+								<button type="button">登录</button>
+								<button type="button">注册</button>
+							</div>
+							<div class="homeTopLogo">
+								<img src="images/logo.png">
+								<span>吉林省计算机中心科技服务平台</span>
+							</div>
+						</div>
+						<div class="homeMain">
+							<nav>
+								<ul>
+									<li class="live">
+										<a href="../live/hall/index" target="_blank" data-item="0">
+											<i class="iconfont icon-zhibo"></i>
+											<p>直播大厅</p>
+										</a>
+									</li>
+									<li class="super">
+										<a href="../live/market" target="_blank" data-item="1">
+											<i class="iconfont icon-gouwu-2"></i>
+											<p>科技超市</p>
+										</a>
+									</li>
+									<li class="service">
+										<a href="../live/service" target="_blank" data-item="2">
+											<i class="iconfont icon-fuwu"></i>
+											<p>创新服务</p>
+										</a>
+									</li>
+									<li class="dynamic">
+										<a href="../live/dynamic" target="_blank" data-item="3">
+											<i class="iconfont icon-icon_A"></i>
+											<p>动态监测</p>
+										</a>
+									</li>
+									<li class="technocal">
+										<a href="../live/technical" target="_blank" data-item="4">
+											<i class="iconfont icon-peixun"></i>
+											<p>技术培训</p>
+										</a>
+									</li>
+								</ul>
+							</nav>
+						</div>
+						<div class="homeDown">
+              <p>版权所有:吉林省技术算中心</p>
+              <p>
+                <span>技术支持:长春福瑞科技有限公司</span>
+                &nbsp;&nbsp;&nbsp;&nbsp;
+                <span>邮编:130000</span>
+                &nbsp;&nbsp;&nbsp;&nbsp;
+                <span>传真:239823982</span>
+              </p>
+              <p>
+                <span>地址:吉林省长春市朝阳区前进大街1244号</span>
+                &nbsp;&nbsp;&nbsp;&nbsp;
+                <span>电话:0134-1234567</span>
+                &nbsp;&nbsp;&nbsp;&nbsp;
+                <span>邮箱:123456@163.com</span>
+              </p>
+						</div>
+					</div>
+				</div>
+			</div>
+		</div>
+		<div id="particles-js" style="position: fixed; height: 100%; width: 100%;top:0px">
+			<canvas class="particles-js-canvas-el"></canvas>
+		</div>
+		<script src="./js/particles.min.js" type="text/javascript" charset="utf-8"></script>
+		<script>
+			/* ---- particles.js config ---- */
 
-<head>
-  <title>科技平台</title>
-  <meta charset="utf-8" />
-  <meta name="renderer" content="webkit">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge">
-  <meta content="width=device-width, initial-scale=1" name="viewport" />
-  <meta content="" name="description" />
-  <meta content="" name="author" />
-  <link rel="stylesheet" href="css/style.css">
-</head>
+			particlesJS("particles-js", {
+				"particles": {
+					"number": {
+						"value": 80,
+						"density": {
+							"enable": true,
+							"value_area": 1200
+						}
+					},
+					"color": {
+						"value": "#ffffff"
+					},
+					"shape": {
+						"type": "circle",
+						"stroke": {
+							"width": 0,
+							"color": "#000000"
+						},
+						"polygon": {
+							"nb_sides": 5
+						},
+						"image": {
+							"src": "img/github.svg",
+							"width": 100,
+							"height": 100
+						}
+					},
+					"opacity": {
+						"value": 0.5,
+						"random": false,
+						"anim": {
+							"enable": false,
+							"speed": 1,
+							"opacity_min": 0.1,
+							"sync": false
+						}
+					},
+					"size": {
+						"value": 3,
+						"random": true,
+						"anim": {
+							"enable": false,
+							"speed": 40,
+							"size_min": 0.1,
+							"sync": false
+						}
+					},
+					"line_linked": {
+						"enable": true,
+						"distance": 150,
+						"color": "#ffffff",
+						"opacity": 0.4,
+						"width": 1
+					},
+					"move": {
+						"enable": true,
+						"speed": 3,
+						"direction": "none",
+						"random": false,
+						"straight": false,
+						"out_mode": "out",
+						"bounce": false,
+						"attract": {
+							"enable": false,
+							"rotateX": 600,
+							"rotateY": 1200
+						}
+					}
+				},
+				"interactivity": {
+					"detect_on": "canvas",
+					"events": {
+						"onhover": {
+							"enable": false,
+							"mode": "grab"
+						},
+						"onclick": {
+							"enable": false,
+							"mode": "push"
+						},
+						"resize": true
+					},
+					"modes": {
+						"grab": {
+							"distance": 140,
+							"line_linked": {
+								"opacity": 1
+							}
+						},
+						"bubble": {
+							"distance": 400,
+							"size": 40,
+							"duration": 2,
+							"opacity": 8,
+							"speed": 3
+						},
+						"repulse": {
+							"distance": 200,
+							"duration": 0.4
+						},
+						"push": {
+							"particles_nb": 4
+						},
+						"remove": {
+							"particles_nb": 2
+						}
+					}
+				},
+				"retina_detect": true
+			});
+		</script>
+		<script>
+			document.addEventListener("DOMContentLoaded", function() {
+				let rise = function(trigEl) {
+					trigEl.blur();
 
-<body style="margin: 0 !important;">
-  <div class="home">
-      
-  </div>
-  <div id="particles-js" style="position: fixed; height: 100%; width: 100%;top:0px">
-    <canvas class="particles-js-canvas-el"></canvas>
-  </div>
-  <script src="./js/particles.min.js" type="text/javascript" charset="utf-8"></script>
-  <script>
+					let ul = document.querySelector("ul");
 
-    /* ---- particles.js config ---- */
+					ul.classList.add("rise");
+					trigEl.classList.add("pop");
 
-    particlesJS("particles-js", {
-      "particles": {
-        "number": {
-          "value": 80,
-          "density": {
-            "enable": true,
-            "value_area": 1200
-          }
-        },
-        "color": {
-          "value": "#ffffff"
-        },
-        "shape": {
-          "type": "circle",
-          "stroke": {
-            "width": 0,
-            "color": "#000000"
-          },
-          "polygon": {
-            "nb_sides": 5
-          },
-          "image": {
-            "src": "img/github.svg",
-            "width": 100,
-            "height": 100
-          }
-        },
-        "opacity": {
-          "value": 0.5,
-          "random": false,
-          "anim": {
-            "enable": false,
-            "speed": 1,
-            "opacity_min": 0.1,
-            "sync": false
-          }
-        },
-        "size": {
-          "value": 3,
-          "random": true,
-          "anim": {
-            "enable": false,
-            "speed": 40,
-            "size_min": 0.1,
-            "sync": false
-          }
-        },
-        "line_linked": {
-          "enable": true,
-          "distance": 150,
-          "color": "#ffffff",
-          "opacity": 0.4,
-          "width": 1
-        },
-        "move": {
-          "enable": true,
-          "speed": 3,
-          "direction": "none",
-          "random": false,
-          "straight": false,
-          "out_mode": "out",
-          "bounce": false,
-          "attract": {
-            "enable": false,
-            "rotateX": 600,
-            "rotateY": 1200
-          }
-        }
-      },
-      "interactivity": {
-        "detect_on": "canvas",
-        "events": {
-          "onhover": {
-            "enable": false,
-            "mode": "grab"
-          },
-          "onclick": {
-            "enable": false,
-            "mode": "push"
-          },
-          "resize": true
-        },
-        "modes": {
-          "grab": {
-            "distance": 140,
-            "line_linked": {
-              "opacity": 1
-            }
-          },
-          "bubble": {
-            "distance": 400,
-            "size": 40,
-            "duration": 2,
-            "opacity": 8,
-            "speed": 3
-          },
-          "repulse": {
-            "distance": 200,
-            "duration": 0.4
-          },
-          "push": {
-            "particles_nb": 4
-          },
-          "remove": {
-            "particles_nb": 2
-          }
-        }
-      },
-      "retina_detect": true
-    });
+					setTimeout(function() {
+						trigEl.focus();
 
-  </script>
-</body>
+						ul.classList.remove("rise");
+						trigEl.classList.remove("pop");
+					}, 1000);
+				};
 
-</html>
+				this.querySelectorAll("li a").forEach(function(el) {
+					let rt = document.querySelector(":root"),
+						di = +el.getAttribute("data-item");
+
+					el.addEventListener("blur", function() {
+						//var getRt = +window.getComputedStyle(el).getPropertyValue('--rotateTimes');
+						//console.log(getRt);
+						//this.classList.add("current");
+					});
+					el.addEventListener("focus", function() {
+						rt.style.setProperty("--rotateTimes", di);
+						//this.classList.remove("current");
+					});
+					el.addEventListener("dblclick", function() {
+						rise(this);
+					});
+					el.addEventListener("keyup", function(e) {
+						if (e.keyCode === 13) {
+							rise(this);
+						}
+					});
+				});
+			});
+		</script>
+	</body>
+</html>

+ 1 - 1
src/views/live/hall/liveApply.vue

@@ -64,7 +64,7 @@
                 <el-input v-model="form.name"></el-input>
               </el-form-item>
               <el-row style="text-align:center">
-                <el-button type="primary" @click="onSubmit">立即创建</el-button>
+                <el-button type="primary" @click="onSubmit">立即申请</el-button>
                 <el-button>取消</el-button>
               </el-row>
             </el-form>