418 行
17 KiB
HTML
可执行文件
418 行
17 KiB
HTML
可执行文件
<!DOCTYPE html>
|
|
<html lang="zh-cn">
|
|
<head>
|
|
{include file="common/meta" /}
|
|
<title>田间小仓 · 同城分类信息平台 — 后台登录</title>
|
|
<style type="text/css">
|
|
:root {
|
|
--brand: #0e7c66;
|
|
--brand-dark: #0a5d4d;
|
|
--brand-deep: #04302a;
|
|
--accent: #ffb020;
|
|
--ink: #16241f;
|
|
--muted: #7b8a86;
|
|
--line: #e5ece9;
|
|
--card: #ffffff;
|
|
}
|
|
|
|
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: #f3f6f5;
|
|
-webkit-font-smoothing: antialiased;
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
|
|
a { color: var(--brand); text-decoration: none; }
|
|
|
|
.login-page {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: stretch;
|
|
}
|
|
|
|
/* ============ 左侧品牌栏 ============ */
|
|
.brand-panel {
|
|
position: relative;
|
|
flex: 1 1 52%;
|
|
max-width: 56%;
|
|
color: #fff;
|
|
overflow: hidden;
|
|
background:
|
|
radial-gradient(900px 600px at 12% 8%, rgba(255, 176, 32, .18), transparent 55%),
|
|
radial-gradient(820px 700px at 92% 92%, rgba(18, 161, 132, .45), transparent 60%),
|
|
linear-gradient(152deg, #04302a 0%, #0a5f4d 50%, #0f8f72 115%);
|
|
}
|
|
|
|
.brand-panel::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
background-image:
|
|
radial-gradient(rgba(255, 255, 255, .14) 1.2px, transparent 1.2px);
|
|
background-size: 26px 26px;
|
|
opacity: .5;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.brand-inner {
|
|
position: relative;
|
|
z-index: 2;
|
|
height: 100%;
|
|
padding: 56px 60px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.brand-top { display: flex; align-items: center; gap: 14px; }
|
|
|
|
.brand-mark {
|
|
width: 52px; height: 52px;
|
|
border-radius: 15px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
background: linear-gradient(140deg, #ffffff 0%, #e9fff8 100%);
|
|
box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .5);
|
|
}
|
|
.brand-mark svg { width: 30px; height: 30px; display: block; }
|
|
|
|
.brand-word { line-height: 1.15; }
|
|
.brand-word b { display: block; font-size: 22px; font-weight: 700; letter-spacing: 3px; }
|
|
.brand-word span { display: block; font-size: 12px; letter-spacing: 4px; color: rgba(255, 255, 255, .62); margin-top: 4px; }
|
|
|
|
.brand-hero { margin-top: auto; margin-bottom: auto; padding: 40px 0; }
|
|
|
|
.brand-hero h1 {
|
|
margin: 0;
|
|
font-size: 40px;
|
|
line-height: 1.28;
|
|
font-weight: 800;
|
|
letter-spacing: 2px;
|
|
text-shadow: 0 8px 30px rgba(0, 0, 0, .25);
|
|
}
|
|
.brand-hero h1 em { font-style: normal; color: var(--accent); }
|
|
|
|
.brand-hero p {
|
|
margin: 20px 0 0;
|
|
max-width: 420px;
|
|
font-size: 15px;
|
|
line-height: 1.9;
|
|
color: rgba(255, 255, 255, .78);
|
|
}
|
|
|
|
.brand-points { list-style: none; margin: 38px 0 0; padding: 0; display: grid; gap: 18px; }
|
|
.brand-points li { display: flex; align-items: center; gap: 14px; font-size: 14.5px; color: rgba(255, 255, 255, .9); }
|
|
.brand-points .ic {
|
|
flex: 0 0 auto;
|
|
width: 38px; height: 38px;
|
|
border-radius: 11px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
background: rgba(255, 255, 255, .12);
|
|
border: 1px solid rgba(255, 255, 255, .18);
|
|
}
|
|
.brand-points .ic svg { width: 19px; height: 19px; }
|
|
|
|
.brand-foot { font-size: 12.5px; letter-spacing: 1px; color: rgba(255, 255, 255, .5); }
|
|
|
|
/* ============ 右侧表单区 ============ */
|
|
.form-panel {
|
|
flex: 1 1 48%;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 40px 24px;
|
|
background:
|
|
radial-gradient(720px 480px at 82% -6%, rgba(14, 124, 102, .08), transparent 60%),
|
|
linear-gradient(180deg, #f7faf9 0%, #eef3f1 100%);
|
|
}
|
|
|
|
.login-card {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
background: var(--card);
|
|
border: 1px solid rgba(14, 124, 102, .07);
|
|
border-radius: 20px;
|
|
padding: 40px 38px 26px;
|
|
box-shadow: 0 1px 2px rgba(16, 42, 36, .04), 0 26px 52px -26px rgba(6, 54, 44, .30), 0 10px 22px -18px rgba(6, 54, 44, .18);
|
|
animation: cardIn .55s cubic-bezier(.22, .61, .36, 1) both;
|
|
}
|
|
|
|
@keyframes cardIn {
|
|
from { opacity: 0; transform: translateY(18px); }
|
|
to { opacity: 1; transform: none; }
|
|
}
|
|
|
|
.mobile-brand { display: none; }
|
|
|
|
.form-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: 1px; color: var(--ink); }
|
|
.form-sub { margin: 8px 0 26px; font-size: 13.5px; color: var(--muted); letter-spacing: .5px; }
|
|
|
|
#login-form { margin: 0; }
|
|
|
|
#errtips {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 16px;
|
|
padding: 11px 14px;
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
border-radius: 11px;
|
|
background: #fdf0ef;
|
|
color: #d6402f;
|
|
border: 1px solid #f7d5d0;
|
|
}
|
|
#errtips:empty { display: none; }
|
|
#errtips::before {
|
|
content: "!";
|
|
flex: 0 0 auto;
|
|
width: 17px; height: 17px;
|
|
border-radius: 50%;
|
|
background: #d6402f;
|
|
color: #fff;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
line-height: 17px;
|
|
text-align: center;
|
|
}
|
|
|
|
.field { position: relative; }
|
|
#login-form .form-group { margin: 0 0 16px; }
|
|
|
|
.field .field-icon {
|
|
position: absolute;
|
|
left: 16px; top: 50%;
|
|
transform: translateY(-50%);
|
|
color: #9fb0ab;
|
|
font-size: 15px;
|
|
z-index: 3;
|
|
pointer-events: none;
|
|
transition: color .18s ease;
|
|
}
|
|
.field:focus-within .field-icon { color: var(--brand); }
|
|
|
|
#login-form .form-control {
|
|
height: 52px;
|
|
line-height: 52px;
|
|
padding: 0 16px 0 46px;
|
|
font-size: 14.5px;
|
|
color: var(--ink);
|
|
background: #f7faf9;
|
|
border: 1px solid var(--line);
|
|
border-radius: 13px;
|
|
box-shadow: none;
|
|
transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
|
|
}
|
|
#login-form .form-control::placeholder { color: #a7b6b1; }
|
|
#login-form .form-control:focus {
|
|
background: #fff;
|
|
border-color: var(--brand);
|
|
box-shadow: 0 0 0 4px rgba(14, 124, 102, .13);
|
|
}
|
|
#login-form .has-error .form-control {
|
|
border-color: #e05b52;
|
|
box-shadow: 0 0 0 4px rgba(224, 91, 82, .10);
|
|
}
|
|
|
|
.captcha-row { position: relative; }
|
|
.captcha-row .form-control { padding-right: 152px; }
|
|
.captcha-row .input-group-addon {
|
|
position: absolute;
|
|
right: 5px; top: 5px; bottom: 5px;
|
|
width: 140px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
padding: 0;
|
|
background: #eef3f1;
|
|
border: none;
|
|
border-radius: 9px;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
}
|
|
.captcha-row .input-group-addon img { height: 100%; width: auto; display: block; }
|
|
|
|
.keep-row { margin: 4px 0 22px; }
|
|
.keep-row label { font-size: 13px; color: var(--muted); cursor: pointer; font-weight: normal; margin: 0; -webkit-user-select: none; user-select: none; }
|
|
.keep-row input { margin-right: 7px; vertical-align: -1px; }
|
|
|
|
.login-btn {
|
|
width: 100%;
|
|
height: 52px;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
letter-spacing: 8px;
|
|
text-indent: 8px;
|
|
color: #fff !important;
|
|
border: none;
|
|
border-radius: 13px;
|
|
background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
|
|
box-shadow: 0 16px 30px -14px rgba(14, 124, 102, .9);
|
|
transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
|
|
}
|
|
.login-btn:hover, .login-btn:focus {
|
|
filter: brightness(1.07);
|
|
box-shadow: 0 18px 34px -14px rgba(14, 124, 102, 1);
|
|
color: #fff !important;
|
|
outline: none;
|
|
}
|
|
.login-btn:active { transform: translateY(1px); }
|
|
|
|
.form-foot {
|
|
margin-top: 24px;
|
|
text-align: center;
|
|
font-size: 12px;
|
|
color: #aebbb7;
|
|
letter-spacing: .4px;
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.brand-panel { display: none; }
|
|
.form-panel { flex: 1 1 100%; }
|
|
.login-card { max-width: 420px; }
|
|
.mobile-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 24px;
|
|
}
|
|
.mobile-brand .mk {
|
|
width: 46px; height: 46px;
|
|
border-radius: 13px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
|
|
box-shadow: 0 10px 20px -10px rgba(14, 124, 102, .9);
|
|
}
|
|
.mobile-brand .mk svg { width: 26px; height: 26px; }
|
|
.mobile-brand b { font-size: 19px; letter-spacing: 2px; color: var(--ink); }
|
|
.mobile-brand span { display: block; font-size: 11px; letter-spacing: 2px; color: var(--muted); margin-top: 3px; }
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.form-panel { padding: 24px 14px; }
|
|
.login-card { padding: 30px 22px 22px; border-radius: 18px; }
|
|
.form-title { font-size: 21px; }
|
|
}
|
|
</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-page">
|
|
<!-- ===== 左侧品牌形象区 ===== -->
|
|
<aside class="brand-panel">
|
|
<div class="brand-inner">
|
|
<div class="brand-top">
|
|
<div class="brand-mark">
|
|
<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M5.5 13.6 16 5.8l10.5 7.8" stroke="#0e7c66" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
<path d="M8.2 13v12.4h15.6V13" stroke="#0e7c66" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
<path d="M13.4 25.4v-6.6h5.2v6.6" stroke="#0e7c66" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
</svg>
|
|
</div>
|
|
<div class="brand-word">
|
|
<b>田间小仓</b>
|
|
<span>TIANJIAN XIAOCANG</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="brand-hero">
|
|
<h1>同城分类<em>信息平台</em></h1>
|
|
<p>一城一站,让同城的每一份需求与供给更快相遇。分类信息发布、同城商家服务、社区生活互助,尽在田间小仓。</p>
|
|
<ul class="brand-points">
|
|
<li>
|
|
<span class="ic"><svg viewBox="0 0 24 24" fill="none"><path d="M8 6h11M8 12h11M8 18h11M4 6h.01M4 12h.01M4 18h.01" stroke="#ffffff" stroke-width="1.9" stroke-linecap="round"/></svg></span>
|
|
分类信息 · 一站式发布与检索
|
|
</li>
|
|
<li>
|
|
<span class="ic"><svg viewBox="0 0 24 24" fill="none"><path d="M4 9.5 5.5 5h13L20 9.5M4 9.5h16M4 9.5V19h16V9.5M9.5 19v-5h5v5" stroke="#ffffff" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"/></svg></span>
|
|
同城商家 · 服务与口碑聚合
|
|
</li>
|
|
<li>
|
|
<span class="ic"><svg viewBox="0 0 24 24" fill="none"><path d="M12 20s-6.5-3.8-6.5-8.4A3.9 3.9 0 0 1 12 8.6a3.9 3.9 0 0 1 6.5 3c0 4.6-6.5 8.4-6.5 8.4Z" stroke="#ffffff" stroke-width="1.9" stroke-linejoin="round"/></svg></span>
|
|
社区互助 · 让生活更有温度
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="brand-foot">© {:date('Y')} 田间小仓同城分类信息平台 · 保留所有权利</div>
|
|
</div>
|
|
</aside>
|
|
|
|
<!-- ===== 右侧登录表单区 ===== -->
|
|
<main class="form-panel">
|
|
<div class="login-card">
|
|
<div class="mobile-brand">
|
|
<span class="mk">
|
|
<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M5.5 13.6 16 5.8l10.5 7.8" stroke="#ffffff" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
<path d="M8.2 13v12.4h15.6V13" stroke="#ffffff" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
<path d="M13.4 25.4v-6.6h5.2v6.6" stroke="#ffffff" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
</svg>
|
|
</span>
|
|
<span>
|
|
<b>田间小仓</b>
|
|
<span>同城分类信息平台</span>
|
|
</span>
|
|
</div>
|
|
|
|
<h2 class="form-title">欢迎回来</h2>
|
|
<p class="form-sub">登录「田间小仓同城分类信息平台」后台管理系统</p>
|
|
|
|
<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 field form-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="form-foot">© {:date('Y')} 田间小仓同城分类信息平台</div>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
{include file="common/script" /}
|
|
</body>
|
|
</html>
|
|
|
|
|
|
|