登录页面改造

This commit is contained in:
robin
2026-02-15 15:16:20 +08:00
parent 2a811183c4
commit 92ffa1ab77
10 changed files with 101 additions and 0 deletions

View File

@@ -115,4 +115,14 @@ body.swal2-shown {
padding: 0 !important; padding: 0 !important;
margin: 0 !important; margin: 0 !important;
} }
.main-menu {
top: 2.6em !important;
}
.main-menu > .ui.menu > .item:first-child:empty {
display: none !important;
height: 0 !important;
min-height: 0 !important;
padding: 0 !important;
margin: 0 !important;
}
/*# sourceMappingURL=@layout_override.css.map */ /*# sourceMappingURL=@layout_override.css.map */

View File

@@ -150,3 +150,16 @@ body.swal2-shown {
padding: 0 !important; padding: 0 !important;
margin: 0 !important; margin: 0 !important;
} }
// Align left menu with top nav and remove leading spacer item
.main-menu {
top: 2.6em !important;
}
.main-menu > .ui.menu > .item:first-child:empty {
display: none !important;
height: 0 !important;
min-height: 0 !important;
padding: 0 !important;
margin: 0 !important;
}

View File

@@ -67,6 +67,7 @@ func (this *IndexAction) RunGet(params struct {
this.Data["version"] = teaconst.Version this.Data["version"] = teaconst.Version
} }
this.Data["faviconFileId"] = config.FaviconFileId this.Data["faviconFileId"] = config.FaviconFileId
this.Data["logoFileId"] = config.LogoFileId
this.Data["themeBackgroundColor"] = config.Theme.BackgroundColor this.Data["themeBackgroundColor"] = config.Theme.BackgroundColor
// 是否可以注册 // 是否可以注册

View File

@@ -63,6 +63,7 @@ func (this *IndexAction) RunGet(params struct {
this.Data["version"] = teaconst.Version this.Data["version"] = teaconst.Version
} }
this.Data["faviconFileId"] = config.FaviconFileId this.Data["faviconFileId"] = config.FaviconFileId
this.Data["logoFileId"] = config.LogoFileId
this.Data["themeBackgroundColor"] = config.Theme.BackgroundColor this.Data["themeBackgroundColor"] = config.Theme.BackgroundColor
// 是否可以注册 // 是否可以注册

View File

@@ -106,6 +106,23 @@ body.login-page > div {
justify-content: center; justify-content: center;
} }
.logo-image-wrap {
width: 36px;
height: 36px;
border-radius: 6px;
display: inline-flex;
align-items: center;
justify-content: center;
overflow: hidden;
background: #ffffff;
}
.logo-image {
width: 100%;
height: 100%;
object-fit: contain;
}
.logo-icon i.icon { .logo-icon i.icon {
margin: 0 !important; margin: 0 !important;
font-size: 16px; font-size: 16px;

View File

@@ -38,7 +38,11 @@
<div class="login-card"> <div class="login-card">
<div class="card-header"> <div class="card-header">
<div class="brand-logo"> <div class="brand-logo">
{$if gt .logoFileId 0}
<span class="logo-image-wrap"><img class="logo-image" src="/ui/image/{$.logoFileId}" alt="logo"/></span>
{$else}
<span class="logo-icon"><i class="shield alternate icon"></i></span> <span class="logo-icon"><i class="shield alternate icon"></i></span>
{$end}
<span class="logo-text">{$ htmlEncode .systemName}</span> <span class="logo-text">{$ htmlEncode .systemName}</span>
</div> </div>
<p class="header-title">&#26032;&#19968;&#20195; Web&#19982;APP &#24212;&#29992;&#38450;&#25252;&#24179;&#21488;</p> <p class="header-title">&#26032;&#19968;&#20195; Web&#19982;APP &#24212;&#29992;&#38450;&#25252;&#24179;&#21488;</p>

View File

@@ -106,6 +106,23 @@ body.login-page > div {
justify-content: center; justify-content: center;
} }
.logo-image-wrap {
width: 36px;
height: 36px;
border-radius: 6px;
display: inline-flex;
align-items: center;
justify-content: center;
overflow: hidden;
background: #ffffff;
}
.logo-image {
width: 100%;
height: 100%;
object-fit: contain;
}
.logo-icon i.icon { .logo-icon i.icon {
margin: 0 !important; margin: 0 !important;
font-size: 16px; font-size: 16px;

View File

@@ -106,6 +106,23 @@ body.login-page > div {
justify-content: center; justify-content: center;
} }
.logo-image-wrap {
width: 36px;
height: 36px;
border-radius: 6px;
display: inline-flex;
align-items: center;
justify-content: center;
overflow: hidden;
background: #ffffff;
}
.logo-image {
width: 100%;
height: 100%;
object-fit: contain;
}
.logo-icon i.icon { .logo-icon i.icon {
margin: 0 !important; margin: 0 !important;
font-size: 16px; font-size: 16px;

View File

@@ -38,7 +38,11 @@
<div class="login-card"> <div class="login-card">
<div class="card-header"> <div class="card-header">
<div class="brand-logo"> <div class="brand-logo">
{$if gt .logoFileId 0}
<span class="logo-image-wrap"><img class="logo-image" src="/ui/image/{$.logoFileId}" alt="logo"/></span>
{$else}
<span class="logo-icon"><i class="shield alternate icon"></i></span> <span class="logo-icon"><i class="shield alternate icon"></i></span>
{$end}
<span class="logo-text">{$ htmlEncode .systemName}</span> <span class="logo-text">{$ htmlEncode .systemName}</span>
</div> </div>
<p class="header-title">&#26032;&#19968;&#20195; Web&#19982;APP &#24212;&#29992;&#38450;&#25252;&#24179;&#21488;</p> <p class="header-title">&#26032;&#19968;&#20195; Web&#19982;APP &#24212;&#29992;&#38450;&#25252;&#24179;&#21488;</p>

View File

@@ -106,6 +106,23 @@ body.login-page > div {
justify-content: center; justify-content: center;
} }
.logo-image-wrap {
width: 36px;
height: 36px;
border-radius: 6px;
display: inline-flex;
align-items: center;
justify-content: center;
overflow: hidden;
background: #ffffff;
}
.logo-image {
width: 100%;
height: 100%;
object-fit: contain;
}
.logo-icon i.icon { .logo-icon i.icon {
margin: 0 !important; margin: 0 !important;
font-size: 16px; font-size: 16px;