diff --git a/mes/src/main/resources/static/css/404.css b/mes/src/main/resources/static/css/404.css new file mode 100644 index 0000000..df48335 --- /dev/null +++ b/mes/src/main/resources/static/css/404.css @@ -0,0 +1,197 @@ +/* + * 作者: QYZQ + * 时间:2018.2.4 + * 备注:404页面设计灵感源于FreePik网站图片(https://www.freepik.com/free-vector/funny-error-404-background-design_1161579.htm#term=404&page=1&position=2), + * FreePik网站提供免费下载渠道,网站也有提示侵权的通知,如有侵权请联系(Email: greatyuzequn@outlook.com),QYZQ将及时处理. + */ + +body, div, p, a{ + margin: 0px; + padding: 0px; +} + +p{ + text-decoration: none; + user-select: none; +} + +html, body{ + width: 100%; + height: 100%; +} + +body{ + background: linear-gradient(#c7c8cf,#e8e8e9,#c7c8cf); + overflow: hidden; +} + +.code{ + display: block; + width: 100%; + height: 120px; + line-height: 120px; +} + +.code p{ + height: inherit; + line-height: inherit; + text-align: center; + font-family: BalboaWide Bold; + font-size: 50px; + color: #697a8a; + opacity: 1; +} + +.road{ + width: 100%; + height: 600px; +} + +.road .shadow{ + position: relative; + margin: auto; + margin-top: 25%; + width: 330px; + height: 70px; + border:0px; + background: linear-gradient(#777373,#3c3c3c); + box-shadow: 0px 3px 10px 2px #464646, 0px -3px 10px 2px #3a3939 inset; + border-radius: 100%; +} + +.road p{ + display: block; + margin-top: 50px; + height: inherit; + line-height: inherit; + text-align: center; + font-family: BalboaWide Bold; + font-size: 30px; + color: #697a8a; + opacity: 1; +} +.road .shadow .bubble{ + display: block; + position: absolute; + top: -180px; + left: 350px; + width: 246px; + height: 179px; + background-image: url(../image/bubble.png); + background-repeat: no-repeat; + text-align: center; +} + +.road .shadow .bubble a{ + line-height: 140px; + font-family: "microsoft yahei"; + font-size: 1.5em; + color: #F8F8F5; + letter-spacing: 1px; + text-decoration: none; + transition: 1s; + user-select:none; +} + +.road .shadow .bubble a:hover{ + color: #FF8C00; +} + +.road .shadow .shelt{ + position: absolute; + margin: auto; + margin-top: -80px; + width: 330px; + height: 150px; + border:0px; + border-radius: 100%; + overflow: hidden; + background: transparent; +} +.road .shadow .head{ + position: absolute; + left: 50%; + margin-left: -60px; + top: 150px; + width: 120px; + height: 300px; + border: 0px; + border-radius: 100% 100% 0 0; + background-color: #292d38; +} + +.road .shadow .head .eyes{ + width: 100%; + height: 50px; + margin-top: 70px; + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: space-around; +} + +.road .shadow .head .eyes .lefteye,.road .shadow .head .eyes .righteye{ + position: relative; + width: 38px; + height: 38px; + border-radius: 100%; + background-color: #f1f2f4; +} + +.road .shadow .head .eyes .lefteye .eyebrow{ + position: absolute; + width: 38px; + left: 0px; + top: 0px; + height: 19px; + border-radius: 19px 19px 0 0; + background-color:#4c5465; + clip: rect(0px 38px 0px 0px); +} + +.road .shadow .head .eyes .righteye .eyebrow{ + position: absolute; + width: 38px; + left: 0px; + top: 0px; + height: 19px; + border-radius: 19px 19px 0 0; + background-color:#4c5465; + clip: rect(0px 38px 0px 0px); +} + + +.road .shadow .head .eyes .lefteye .eyeball{ + position: absolute; + width: 10px; + left: 50%; + top: 50%; + margin-top: -5px; + margin-left: -5px; + height: 10px; + border-radius: 100%; + background-color:#292d38 ; +} + +.road .shadow .head .eyes .righteye .eyeball{ + position: absolute; + width: 10px; + left: 50%; + top: 50%; + margin-top: -5px; + margin-left: -5px; + height: 10px; + border-radius: 100%; + background-color:#292d38 ; +} + +.road .shadow .hat{ + position: absolute; + top: -297px; + left: -8px; + width: 330px; + height: 330px; + background: url(../image/sign.png) no-repeat; + transform-origin: left bottom; + transform: rotate(17deg); +} diff --git a/mes/src/main/resources/static/image/bubble.png b/mes/src/main/resources/static/image/bubble.png new file mode 100644 index 0000000..1bba1ea Binary files /dev/null and b/mes/src/main/resources/static/image/bubble.png differ diff --git a/mes/src/main/resources/static/image/sign.png b/mes/src/main/resources/static/image/sign.png new file mode 100644 index 0000000..1cb8f6e Binary files /dev/null and b/mes/src/main/resources/static/image/sign.png differ diff --git a/mes/src/main/resources/static/js/layuimodule/404.js b/mes/src/main/resources/static/js/layuimodule/404.js new file mode 100644 index 0000000..6c1ba07 --- /dev/null +++ b/mes/src/main/resources/static/js/layuimodule/404.js @@ -0,0 +1,62 @@ +var parallel = 17; +var headHeight = 150; +var opacity = 0; +var eyeBrowHeight = 0; +var step = 1; +var timer_show; +var timer_eyebrow; + +document.onmousemove = mouseMove; + +function mouseMove(e){ + /*眼球转动*/ +} + +function startAnimation(){ + timer_show = setInterval('rotateCounterclockwise()', 55); + window.setTimeout(function(){ + window.clearInterval(timer_eyebrow); + timer_show = setInterval('rotateClockwise()', 55); + },1000*6); +} + +function rotateCounterclockwise() { + parallel = parallel - 0.3; + headHeight = headHeight - 2.5; + opacity = (17 - parallel)/17; + if(parallel > 0) { + $('.head').css('top',headHeight+'px'); + $('.hat').css('transform', 'rotate(' + parallel + 'deg)'); +// $('.code p').css('opacity',opacity); + $('.bubble').css('opacity',opacity); + }else{ + window.clearInterval(timer_show); + timer_eyebrow = setInterval('flash()',10); + + } +} + +function rotateClockwise() { + parallel = parallel + 0.3; + headHeight = headHeight + 2.5; + opacity = (17 - parallel)/17; + if(parallel <= 17) { + $('.head').css('top',headHeight+'px'); + $('.hat').css('transform', 'rotate(' + parallel + 'deg)'); +// $('.code p').css('opacity',opacity); + $('.bubble').css('opacity',opacity); + }else{ + window.clearInterval(timer_show); + startAnimation(); + } +} + +function flash(){ + eyeBrowHeight += step; + $('.lefteye .eyebrow').css('clip','rect(0px 38px ' + eyeBrowHeight + 'px 0px)'); + $('.righteye .eyebrow').css('clip','rect(0px 38px ' + eyeBrowHeight + 'px 0px)'); + if(eyeBrowHeight % 19 === 0) + step = -step; +} + +startAnimation(); \ No newline at end of file diff --git a/mes/src/main/resources/templates/error/404.ftl b/mes/src/main/resources/templates/error/404.ftl index a159ae1..ba8d052 100644 --- a/mes/src/main/resources/templates/error/404.ftl +++ b/mes/src/main/resources/templates/error/404.ftl @@ -1,109 +1,39 @@ - - 404 - - - - - - - <#include "${request.contextPath}/common/common.ftl"> - + + 你的资源掉了! + + + -
-
-
-
-
-
- +
+

ERROR 404

+
+
+
+
+
+
+
+
+
-
-
-
- +
+
+
-
-
- -
-
-
OH! - -
-

很抱歉,你访问的页面找不到了

+
+
+
+

修身正心,齐家治国

- - \ No newline at end of file + + diff --git a/mes/src/main/resources/templates/error/404old.ftl b/mes/src/main/resources/templates/error/404old.ftl new file mode 100644 index 0000000..aba6b5f --- /dev/null +++ b/mes/src/main/resources/templates/error/404old.ftl @@ -0,0 +1,109 @@ + + + + + 404 + + + + + + + <#include "${request.contextPath}/common/common.ftl"> + + + +
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
OH! + +
+
+

功能正在开发中!!请耐心等待

+
+
+
+ + + \ No newline at end of file