From 0dac5c09f04328b1021e03bbc62acadc458fd118 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期日, 08 十月 2023 09:19:16 +0800
Subject: [PATCH] 修改首页
---
src/main/resources/static/css/login2.css | 10 ++--------
src/main/resources/templates/login.html | 44 ++++++--------------------------------------
src/main/resources/static/img/loginBg.jpg | 0
3 files changed, 8 insertions(+), 46 deletions(-)
diff --git a/src/main/resources/static/css/login2.css b/src/main/resources/static/css/login2.css
index f6bd604..9dd7c6a 100644
--- a/src/main/resources/static/css/login2.css
+++ b/src/main/resources/static/css/login2.css
@@ -5,14 +5,8 @@
left:0px;
height:100%;
width:100%;
-
- /*Fallback if gradeints don't work */
- background: #141e6e;
- /*Linear gradient... */
- background:
- radial-gradient(
- at center, #0075c3, #000b61
- );
+ background: url('../img/loginBg.jpg') no-repeat center;
+ background-size: cover;
}
.apImgTitle {
diff --git a/src/main/resources/static/img/loginBg.jpg b/src/main/resources/static/img/loginBg.jpg
new file mode 100644
index 0000000..397037e
--- /dev/null
+++ b/src/main/resources/static/img/loginBg.jpg
Binary files differ
diff --git a/src/main/resources/templates/login.html b/src/main/resources/templates/login.html
index a3888d9..deb2413 100644
--- a/src/main/resources/templates/login.html
+++ b/src/main/resources/templates/login.html
@@ -55,6 +55,7 @@
body.signin {
background:none;
}
+
h1{
text-align: center;
margin-top:8%;
@@ -64,17 +65,6 @@
canvas {
display: block;
vertical-align: bottom;
- }
- #particles-js {
- width: 100%;
- height: 100%;
- background-size: cover;
- background-position: 50% 50%;
- background-repeat: no-repeat;
- position: absolute;
- top: 0;
- left: 0;
- z-index: -1;
}
</style>
<script>
@@ -87,33 +77,14 @@
</head>
<!-- count particles -->
<!-- particles.js container -->
-<div id="particles-js"></div>
+<!--<div id="particles-js"></div>-->
<!-- particles.js container -->
<!--<div id="particles-js" style="display: flex;align-items: center;justify-content: center;z-index:-1;">-->
<!-- <canvas class="particles-js-canvas-el" style="width: 100%; height: 100%;" width="472" height="625"></canvas>-->
<!--</div>-->
<body class="signin">
-<!-- <h1 style="font-size:48px;color: #FFF;text-shadow:3px 3px 1px #01d0ff;font-weight: bolder;letter-spacing: 10px">智能安全双重预防系统</h1>-->
- <h1 style="font-size:48px;color: #FFF;text-shadow:3px 3px 1px #01d0ff;font-weight: bolder;letter-spacing: 10px">智能安全双重预防系统</h1>
-<div class="signinpanel">
- <!-- <div class="col-sm-7">-->
- <!-- <div class="signin-info">-->
- <!-- <div class="logopanel m-b">-->
- <!--<!– <h1><img alt="[ ]" src="../static/ruoyi.png" th:src="@{/ruoyi.png}"></h1>–>-->
- <!-- </div>-->
- <!-- <div class="m-b"></div>-->
- <!--<!– <h4>欢迎使用 <strong> 国泰新华后台管理系统</strong></h4>–>-->
- <!-- <ul class="m-b">-->
- <!--<!– <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> </li>–>-->
- <!--<!– <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> </li>–>-->
- <!--<!– <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> </li>–>-->
- <!--<!– <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> </li>–>-->
- <!--<!– <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> </li>–>-->
- <!-- </ul>-->
- <!--<!– <strong th:if="${@config.getKey('sys.account.registerUser')}">还没有账号? <a th:href="@{/register}">立即注册»</a></strong>–>-->
- <!-- </div>-->
- <!-- </div>-->
- <!-- <div class="col-sm-5" >-->
+ <h1 style="font-size:56px;color: #255472;text-shadow:3px 3px 1px #cce2f9;font-weight: bolder;letter-spacing: 10px">智能安全双重预防系统</h1>
+ <div class="signinpanel">
<form id="signupForm" autocomplete="off" style="background: rgb(255, 255, 255);">
<h4 class="no-margins">登录:</h4>
<!-- <p class="m-t-md">国科鸿宇</p>-->
@@ -134,15 +105,12 @@
</div>
<button class="btn btn-success btn-block" id="btnSubmit" data-loading="正在验证登录,请稍后...">登录</button>
</form>
- <!-- </div>-->
-
-</div>
+ </div>
<div class="copright">
技术支持:苏州国科鸿宇科技有限公司
</div>
<!-- scripts -->
-
<script th:inline="javascript"> var ctx = [[@{
/}]]; var captchaType = [[${captchaType}]]; </script>
<!-- 全局js -->
@@ -160,7 +128,7 @@
<script src="../static/js/login.js" th:src="@{/js/loginApp.js}"></script>
<script src="../static/js/stats.js" th:src="@{/js/stats.js}"></script>
<script src="../static/js/stats.js" th:src="@{/js/stats.js}"></script>
-<script src="../static/js/particles.min.js" th:src="@{/js/particles.min.js}"></script>
+<!--<script src="../static/js/particles.min.js" th:src="@{/js/particles.min.js}"></script>-->
<script src="../static/js/app.js" th:src="@{/js/app.js}"></script>
<!-- <script src="../static/js/loginApp.js" th:src="@{/js/login.js}"></script>-->
<script>
--
Gitblit v1.9.2