登录&注册
This commit is contained in:
@@ -5,35 +5,47 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title>登录-Quinn</title>
|
||||
<link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.min.css}">
|
||||
<link rel="stylesheet" th:href="@{/css/login.css}">
|
||||
<link rel="stylesheet" th:href="@{/bootstrap/css/bootstrapValidator.css}">
|
||||
<link rel="stylesheet" th:href="@{/css/backgroud.css}">
|
||||
</head>
|
||||
<body class="text-center">
|
||||
<form class="form-signin needs-validation" th:action="@{/login}" method="post">
|
||||
|
||||
<img class="mb-4" th:src="@{/images/logo/logo.png}" alt="" width="72" height="72">
|
||||
|
||||
<input name="username" class="form-control" placeholder="用户名" required="">
|
||||
<input type="password" name="password" class="form-control" placeholder="密码" required="">
|
||||
|
||||
<div class="checkbox float-left mb-3">
|
||||
<label>
|
||||
<input type="checkbox" name="remember" value="remember-me"> 记住密码
|
||||
</label>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-4" >
|
||||
</div>
|
||||
<div class="col-md-4 mt-5" id='login_box'>
|
||||
<form class="form-horizontal" method="post" th:action="@{/login}">
|
||||
<div class="justify-content-center">
|
||||
<h1 class="d-block">登录<small style="font-size: small">Quinn</small></h1>
|
||||
<p class="d-block" th:text="${registerMsg}" style="color: red"></p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="username">用户名</label>
|
||||
<input id="username" name="username" class="form-control" placeholder="用户名" required="">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password">密码</label>
|
||||
<input id="password" type="password" name="password" class="form-control" placeholder="密码">
|
||||
</div>
|
||||
<div class="checkbox float-left mb-3">
|
||||
<label>
|
||||
<input type="checkbox" name="remember" value="remember-me"> 记住密码
|
||||
</label>
|
||||
</div>
|
||||
<button class="btn btn-dark btn-block" type="submit" onclick="this.disabled=true; this.form.submit();">登 录</button>
|
||||
<p class="mt-1 clearfix">
|
||||
<a style="color: white" th:href="@{/register}" class="float-right text-decoration-none">没有账号?去注册</a>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-md-4" >
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-lg btn-primary btn-block mt-3" type="submit" onclick="this.disabled=true; this.form.submit();">登 录</button>
|
||||
|
||||
<p class="clearfix">
|
||||
<a th:href="@{/register}" class="float-right">没有账号?去注册</a>
|
||||
</p>
|
||||
|
||||
<p class="badge badge-pill badge-light">©QUINN</p>
|
||||
</form>
|
||||
<a class="to-top badge badge-light">返回顶部</a>
|
||||
</div>
|
||||
<script th:src="@{/js/jquery-3.5.1.min.js}"></script>
|
||||
<script th:src="@{/bootstrap/js/bootstrap.bundle.min.js}"></script>
|
||||
<script th:src="@{/js/toTop.js}"></script>
|
||||
<script th:src="@{/js/jquery-ui.min.js}"></script>
|
||||
<script th:src="@{/live/js/addlive2d.js}"></script>
|
||||
<script th:src="@{/bootstrap/js/bootstrapValidator.js}"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user