252 行
9.3 KiB
HTML
可执行文件
252 行
9.3 KiB
HTML
可执行文件
<!DOCTYPE html>
|
|
<html lang="zh-cn">
|
|
<head>
|
|
{include file="common/meta" /}
|
|
<title>同城分类信息 · 后台管理</title>
|
|
<style type="text/css">
|
|
:root {
|
|
--brand: #2b6cf6;
|
|
--brand-dark: #1d4ed8;
|
|
--accent: #10b6a6;
|
|
--ink: #1e293b;
|
|
--muted: #8492a6;
|
|
--line: #e5eaf3;
|
|
}
|
|
|
|
html, body { height: 100%; }
|
|
|
|
body {
|
|
margin: 0;
|
|
color: var(--ink);
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
|
|
background-color: #0b1f47;
|
|
background-image:
|
|
radial-gradient(900px 520px at 8% -8%, rgba(43, 108, 246, .40), transparent 60%),
|
|
radial-gradient(820px 560px at 108% 12%, rgba(16, 182, 166, .30), transparent 58%),
|
|
linear-gradient(158deg, #0a1d42 0%, #123063 48%, #0d2a5b 100%);
|
|
background-size: cover;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
a { color: var(--brand); text-decoration: none; }
|
|
|
|
.login-wrap {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 40px 18px;
|
|
}
|
|
|
|
.login-card {
|
|
width: 100%;
|
|
max-width: 420px;
|
|
background: #fff;
|
|
border-radius: 18px;
|
|
box-shadow: 0 30px 60px -18px rgba(6, 24, 60, .55), 0 8px 24px -12px rgba(6, 24, 60, .35);
|
|
padding: 40px 36px 26px;
|
|
animation: cardIn .5s cubic-bezier(.22, .61, .36, 1) both;
|
|
}
|
|
|
|
@keyframes cardIn {
|
|
from { opacity: 0; transform: translateY(16px) scale(.985); }
|
|
to { opacity: 1; transform: none; }
|
|
}
|
|
|
|
.brand { text-align: center; margin-bottom: 26px; }
|
|
|
|
.brand-logo {
|
|
width: 62px; height: 62px;
|
|
margin: 0 auto 14px;
|
|
border-radius: 16px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 115%);
|
|
box-shadow: 0 12px 22px -8px rgba(43, 108, 246, .65);
|
|
}
|
|
|
|
.brand-logo svg { width: 32px; height: 32px; display: block; }
|
|
|
|
.brand-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .5px; color: var(--ink); }
|
|
|
|
.brand-sub { margin: 7px 0 0; font-size: 13px; color: var(--muted); letter-spacing: 1.5px; }
|
|
|
|
#login-form { margin: 0; }
|
|
|
|
#errtips {
|
|
margin-bottom: 14px;
|
|
padding: 10px 14px;
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
border-radius: 10px;
|
|
background: #fdecec;
|
|
color: #d92d20;
|
|
border: 1px solid #f9d3d1;
|
|
}
|
|
#errtips:empty { display: none; }
|
|
|
|
.field { position: relative; }
|
|
|
|
.field .field-icon {
|
|
position: absolute;
|
|
left: 16px; top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--muted);
|
|
font-size: 15px;
|
|
z-index: 3;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#login-form .form-group { margin: 0 0 16px; }
|
|
|
|
#login-form .form-control {
|
|
height: 50px;
|
|
line-height: 50px;
|
|
padding: 0 16px 0 44px;
|
|
font-size: 14px;
|
|
color: var(--ink);
|
|
background: #f7f9fc;
|
|
border: 1px solid var(--line);
|
|
border-radius: 12px;
|
|
box-shadow: none;
|
|
transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
|
|
}
|
|
#login-form .form-control::placeholder { color: #a9b4c6; }
|
|
#login-form .form-control:focus {
|
|
background: #fff;
|
|
border-color: var(--brand);
|
|
box-shadow: 0 0 0 4px rgba(43, 108, 246, .12);
|
|
}
|
|
#login-form .has-error .form-control { border-color: #e05b52; }
|
|
|
|
.captcha-row { position: relative; display: flex !important; align-items: stretch; }
|
|
.captcha-row .form-control {
|
|
flex: 1 1 auto;
|
|
width: 1%;
|
|
border-top-right-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
}
|
|
.captcha-row .input-group-addon {
|
|
display: flex; align-items: center; justify-content: center;
|
|
padding: 0 14px;
|
|
border: 1px solid var(--line);
|
|
border-left: none;
|
|
border-radius: 0 12px 12px 0;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
}
|
|
.captcha-row .input-group-addon img { height: 40px; width: auto; display: block; }
|
|
|
|
.keep-row { margin: 2px 0 20px; }
|
|
.keep-row label { font-size: 13px; color: var(--muted); cursor: pointer; font-weight: normal; margin: 0; }
|
|
.keep-row input { margin-right: 6px; vertical-align: -1px; }
|
|
|
|
.login-btn {
|
|
width: 100%;
|
|
height: 50px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
letter-spacing: 6px;
|
|
text-indent: 6px;
|
|
color: #fff !important;
|
|
border: none;
|
|
border-radius: 12px;
|
|
background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
|
|
box-shadow: 0 14px 26px -12px rgba(43, 108, 246, .85);
|
|
transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
|
|
}
|
|
.login-btn:hover, .login-btn:focus {
|
|
filter: brightness(1.06);
|
|
box-shadow: 0 16px 30px -12px rgba(43, 108, 246, .95);
|
|
color: #fff !important;
|
|
outline: none;
|
|
}
|
|
.login-btn:active { transform: translateY(1px); }
|
|
|
|
.login-foot {
|
|
margin-top: 22px;
|
|
text-align: center;
|
|
font-size: 12px;
|
|
color: #b3bccb;
|
|
letter-spacing: .5px;
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.login-wrap { padding: 24px 14px; }
|
|
.login-card { padding: 32px 22px 22px; border-radius: 16px; }
|
|
.brand-title { font-size: 20px; }
|
|
}
|
|
</style>
|
|
<!--@formatter:off-->
|
|
{if $background}
|
|
<style type="text/css">
|
|
body {
|
|
background-image: url('{$background|htmlentities}');
|
|
background-size: cover;
|
|
}
|
|
</style>
|
|
{/if}
|
|
<!--@formatter:on-->
|
|
</head>
|
|
<body>
|
|
<div class="login-wrap">
|
|
<div class="login-card">
|
|
<div class="brand">
|
|
<div class="brand-logo">
|
|
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M12 21s7-5.5 7-11a7 7 0 1 0-14 0c0 5.5 7 11 7 11Z" stroke="#ffffff" stroke-width="1.8" stroke-linejoin="round"/>
|
|
<circle cx="12" cy="10" r="2.6" fill="#ffffff"/>
|
|
</svg>
|
|
</div>
|
|
<h1 class="brand-title">同城分类信息</h1>
|
|
<p class="brand-sub">本地生活 · 分类信息服务平台</p>
|
|
</div>
|
|
|
|
<form action="" method="post" id="login-form">
|
|
<!--@AdminLoginFormBegin-->
|
|
<div id="errtips"></div>
|
|
{:token()}
|
|
|
|
<div class="field form-group">
|
|
<span class="field-icon glyphicon glyphicon-user" aria-hidden="true"></span>
|
|
<input type="text" class="form-control" id="pd-form-username" placeholder="请输入用户名" name="username" autocomplete="off" value="" data-rule="{:__('Username')}:required;username"/>
|
|
</div>
|
|
|
|
<div class="field form-group">
|
|
<span class="field-icon glyphicon glyphicon-lock" aria-hidden="true"></span>
|
|
<input type="password" class="form-control" id="pd-form-password" placeholder="请输入密码" name="password" autocomplete="off" value="" data-rule="{:__('Password')}:required;password"/>
|
|
</div>
|
|
|
|
<!--@CaptchaBegin-->
|
|
{if $Think.config.fastadmin.login_captcha}
|
|
<div class="captcha-row form-group input-group">
|
|
<span class="field-icon glyphicon glyphicon-option-horizontal" aria-hidden="true"></span>
|
|
<input type="text" name="captcha" class="form-control" placeholder="请输入验证码" data-rule="{:__('Captcha')}:required;length({$Think.config.captcha.length|htmlentities})" autocomplete="off"/>
|
|
<span class="input-group-addon">
|
|
<img src="{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha" alt="点击刷新" title="点击刷新验证码" onclick="this.src = '{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha&r=' + Math.random();"/>
|
|
</span>
|
|
</div>
|
|
{/if}
|
|
<!--@CaptchaEnd-->
|
|
|
|
{if $keeyloginhours>0}
|
|
<div class="keep-row checkbox">
|
|
<label for="keeplogin" data-toggle="tooltip" title="{:__('The duration of the session is %s hours', $keeyloginhours)}">
|
|
<input type="checkbox" name="keeplogin" id="keeplogin" value="1"/>
|
|
记住登录状态
|
|
</label>
|
|
</div>
|
|
{/if}
|
|
|
|
<button type="submit" class="btn login-btn">{:__('Sign in')}</button>
|
|
<!--@AdminLoginFormEnd-->
|
|
</form>
|
|
|
|
<div class="login-foot">© {:date('Y')} 同城分类信息 · 后台管理系统</div>
|
|
</div>
|
|
</div>
|
|
{include file="common/script" /}
|
|
</body>
|
|
</html>
|
|
|