mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-08-31 15:26:18 +00:00
Update login.html
This commit is contained in:
parent
24eeac691b
commit
b3c33494ce
1 changed files with 148 additions and 144 deletions
|
@ -1,113 +1,115 @@
|
||||||
|
saeed<!DOCTYPE html>
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
{{template "head" .}}
|
||||||
<meta charset="utf-8">
|
<style>
|
||||||
<meta name="renderer" content="webkit">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
<title>{{ .host }}-{{ i18n .title}}</title>
|
|
||||||
<link href="{{ .base_path }}saeed/vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
|
|
||||||
<link href="{{ .base_path }}saeed/css/sb-admin-2.min.css" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<a-layout id="app" v-cloak class="login">
|
#app {
|
||||||
|
padding-top: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
<body class="bg-gradient-primary">
|
h1 {
|
||||||
|
text-align: center;
|
||||||
|
color: #fff;
|
||||||
|
margin: 20px 0 50px 0;
|
||||||
|
}
|
||||||
|
|
||||||
<div class="container">
|
.ant-btn, .ant-input {
|
||||||
|
height: 50px;
|
||||||
|
border-radius: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
<!-- Outer Row -->
|
.ant-input-group-addon {
|
||||||
<div class="row justify-content-center">
|
border-radius: 0 30px 30px 0;
|
||||||
|
width: 50px;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
<div class="col-xl-10 col-lg-12 col-md-9">
|
.ant-input-affix-wrapper .ant-input-prefix {
|
||||||
|
left: 23px;
|
||||||
|
}
|
||||||
|
|
||||||
<div class="card o-hidden border-0 shadow-lg my-5">
|
.ant-input-affix-wrapper .ant-input:not(:first-child) {
|
||||||
<div class="card-body p-0">
|
padding-left: 50px;
|
||||||
<!-- Nested Row within Card Body -->
|
}
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-6 d-none d-lg-block bg-login-image"></div>
|
.centered {
|
||||||
<div class="col-lg-6">
|
display: flex;
|
||||||
<div class="p-5">
|
text-align: center;
|
||||||
<div class="text-center">
|
align-items: center;
|
||||||
<h1 class="h4 text-gray-900 mb-4">{{ i18n "pages.login.title" }}</h1>
|
justify-content: center;
|
||||||
</div>
|
}
|
||||||
<form class="user">
|
|
||||||
|
.title {
|
||||||
|
font-size: 32px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
<body>
|
||||||
|
<a-layout id="app" v-cloak class="login" :class="themeSwitcher.darkCardClass">
|
||||||
|
<transition name="list" appear>
|
||||||
|
<a-layout-content>
|
||||||
|
<a-row type="flex" justify="center">
|
||||||
|
<a-col :xs="22" :sm="20" :md="16" :lg="12" :xl="8">
|
||||||
|
<h1 class="title">Hello {{ i18n "pages.login.title" }}</h1>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row type="flex" justify="center">
|
||||||
|
<a-col :xs="22" :sm="20" :md="16" :lg="12" :xl="8">
|
||||||
|
<a-form>
|
||||||
|
<a-form-item>
|
||||||
|
<a-input v-model.trim="user.username" placeholder='{{ i18n "username" }}'
|
||||||
|
@keydown.enter.native="login" autofocus>
|
||||||
|
<a-icon slot="prefix" type="user" :style="'font-size: 16px;' + themeSwitcher.textStyle" />
|
||||||
|
</a-input>
|
||||||
|
</a-form-item>
|
||||||
|
<a-form-item>
|
||||||
|
<password-input icon="lock" v-model.trim="user.password"
|
||||||
|
placeholder='{{ i18n "password" }}' @keydown.enter.native="login">
|
||||||
|
</password-input>
|
||||||
|
</a-form-item>
|
||||||
<a-form-item v-if="secretEnable">
|
<a-form-item v-if="secretEnable">
|
||||||
<password-input icon="key" v-model.trim="user.loginSecret"
|
<password-input icon="key" v-model.trim="user.loginSecret"
|
||||||
placeholder='{{ i18n "secretToken" }}' @keydown.enter.native="login">
|
placeholder='{{ i18n "secretToken" }}' @keydown.enter.native="login">
|
||||||
</password-input>
|
</password-input>
|
||||||
</a-input>
|
</a-input>
|
||||||
<div class="form-group">
|
</a-form-item>
|
||||||
<a-input v-model.trim="user.username" placeholder='{{ i18n "username" }}'
|
<a-form-item>
|
||||||
@keydown.enter.native="login" autofocus>
|
<a-row justify="center" class="centered">
|
||||||
<a-icon slot="prefix" type="user" :style="'font-size: 16px;' + themeSwitcher.textStyle" />
|
<a-button type="primary" :loading="loading" @click="login" :icon="loading ? 'poweroff' : undefined"
|
||||||
</a-input>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<!-- <input type="password" class="form-control form-control-user"
|
|
||||||
id="exampleInputPassword" placeholder="Password"> -->
|
|
||||||
|
|
||||||
<password-input icon="lock" v-model.trim="user.password"
|
|
||||||
placeholder='{{ i18n "password" }}' @keydown.enter.native="login">
|
|
||||||
</password-input>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<!-- <div class="form-group">
|
|
||||||
<div class="custom-control custom-checkbox small">
|
|
||||||
<input type="checkbox" class="custom-control-input" id="customCheck">
|
|
||||||
<label class="custom-control-label" for="customCheck">Remember
|
|
||||||
Me</label>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
<a-button type="primary" :loading="loading"
|
|
||||||
class="btn btn-primary btn-user btn-block"
|
|
||||||
:class="btn btn-primary btn-user btn-block"
|
|
||||||
@click="login"
|
|
||||||
:icon="loading ? 'poweroff' : undefined"
|
|
||||||
:style="loading ? { width: '50px' } : { display: 'block', width: '100%' }">
|
:style="loading ? { width: '50px' } : { display: 'block', width: '100%' }">
|
||||||
[[ loading ? '' : '{{ i18n "login" }}' ]]
|
[[ loading ? '' : '{{ i18n "login" }}' ]]
|
||||||
</a-button>
|
</a-button>
|
||||||
|
</a-row>
|
||||||
<!-- <hr>
|
</a-form-item>
|
||||||
<a href="index.html" class="btn btn-google btn-user btn-block">
|
<a-form-item>
|
||||||
<i class="fab fa-google fa-fw"></i> Login with Google
|
<a-row justify="center" class="centered">
|
||||||
</a>
|
<a-col :span="12">
|
||||||
<a href="index.html" class="btn btn-facebook btn-user btn-block">
|
<a-select ref="selectLang" v-model="lang" @change="setLang(lang)" :dropdown-class-name="themeSwitcher.darkCardClass">
|
||||||
<i class="fab fa-facebook-f fa-fw"></i> Login with Facebook
|
<a-select-option :value="l.value" :label="l.value" v-for="l in supportLangs">
|
||||||
</a> -->
|
<span role="img" :aria-label="l.name" v-text="l.icon"></span>
|
||||||
</form>
|
<span v-text="l.name"></span>
|
||||||
</div>
|
</a-select-option>
|
||||||
</div>
|
</a-select>
|
||||||
</div>
|
</a-col>
|
||||||
</div>
|
</a-row>
|
||||||
</div>
|
</a-form-item>
|
||||||
|
<a-form-item>
|
||||||
</div>
|
<a-row justify="center" class="centered">
|
||||||
|
<theme-switch />
|
||||||
</div>
|
</a-row>
|
||||||
|
</a-form-item>
|
||||||
</div>
|
</a-form>
|
||||||
</body>
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-layout-content>
|
||||||
|
</transition>
|
||||||
</a-layout>
|
</a-layout>
|
||||||
{{template "js" .}}
|
{{template "js" .}}
|
||||||
{{template "component/themeSwitcher" .}}
|
{{template "component/themeSwitcher" .}}
|
||||||
{{template "component/password" .}}
|
{{template "component/password" .}}
|
||||||
|
<script>
|
||||||
|
|
||||||
<!-- Bootstrap core JavaScript-->
|
|
||||||
<script src="{{ .base_path }}saeed/vendor/jquery/jquery.min.js"></script>
|
|
||||||
<script src="{{ .base_path }}saeed/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
|
|
||||||
|
|
||||||
<!-- Core plugin JavaScript-->
|
|
||||||
<script src="{{ .base_path }}saeed/vendor/jquery-easing/jquery.easing.min.js"></script>
|
|
||||||
|
|
||||||
<!-- Custom scripts for all pages-->
|
|
||||||
<script src="{{ .base_path }}saeed/js/sb-admin-2.min.js"></script>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
const app = new Vue({
|
const app = new Vue({
|
||||||
delimiters: ['[[', ']]'],
|
delimiters: ['[[', ']]'],
|
||||||
el: '#app',
|
el: '#app',
|
||||||
|
@ -155,5 +157,7 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
</script>
|
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in a new issue