mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-07-14 11:33:47 +08:00
🎨ui: 优化Identity样式
This commit is contained in:
@@ -1,25 +1,31 @@
|
||||
@model OpenAuth.IdentityServer.Quickstart.Home.ErrorViewModel
|
||||
@model OpenAuth.IdentityServer.Quickstart.Home.ErrorViewModel
|
||||
|
||||
<div class="error-page">
|
||||
<div class="page-header">
|
||||
<h1>Error</h1>
|
||||
<div class="auth-card">
|
||||
<div class="auth-card-header">
|
||||
<div class="status-icon status-icon--error">❌</div>
|
||||
<h1>出错了</h1>
|
||||
<p>处理您的请求时发生了错误</p>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="alert alert-danger">
|
||||
Sorry, there was an error
|
||||
|
||||
@if (!string.IsNullOrEmpty(Model?.ErrorId))
|
||||
{
|
||||
<div>Error Id: @Model.ErrorId</div>
|
||||
}
|
||||
|
||||
@if (!string.IsNullOrEmpty(Model?.ErrorMessage))
|
||||
{
|
||||
<div>@Model.ErrorMessage</div>
|
||||
}
|
||||
</div>
|
||||
<div class="alert alert-error">
|
||||
<span>⚠</span>
|
||||
<div>
|
||||
@if (!string.IsNullOrEmpty(Model?.ErrorId))
|
||||
{
|
||||
<div><strong>错误编号:</strong>@Model.ErrorId</div>
|
||||
}
|
||||
@if (!string.IsNullOrEmpty(Model?.ErrorMessage))
|
||||
{
|
||||
<div>@Model.ErrorMessage</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div>抱歉,服务器遇到了意外问题。</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="text-align: center;">
|
||||
<a class="status-link" href="/">返回首页 →</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,16 @@
|
||||
@model OpenAuth.IdentityServer.Quickstart.Account.RedirectViewModel
|
||||
@model OpenAuth.IdentityServer.Quickstart.Account.RedirectViewModel
|
||||
|
||||
<h1>You are now being returned to the application.</h1>
|
||||
<p>Once complete, you may close this tab</p>
|
||||
<div class="auth-card">
|
||||
<div class="auth-card-header">
|
||||
<div class="status-icon status-icon--info">↺</div>
|
||||
<h1>正在跳转</h1>
|
||||
<p class="loading-dots">正在返回应用程序</p>
|
||||
</div>
|
||||
|
||||
<div class="status-text">
|
||||
页面即将自动跳转,如未自动跳转请 <a href="@Model.RedirectUrl">点击此处</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<meta http-equiv="refresh" content="0;url=@Model.RedirectUrl" data-url="@Model.RedirectUrl">
|
||||
<script src="~/js/signin-redirect.js"></script>
|
||||
|
||||
@@ -6,66 +6,42 @@
|
||||
}
|
||||
}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>OpenAuth.Net认证中心- 最好用的.net权限工作流框架|.net core快速开发框架|.net core权限管理|.net core工作流</title>
|
||||
<meta name="Keywords" content="openauth.net,.net开源工作流,.NET开源权限管理">
|
||||
<meta name="Description" content="最好用的.net开源工作流框架,最好用的.NET开源权限管理框架">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<title>OpenAuth.Net 认证中心</title>
|
||||
<meta name="description" content="OpenAuth.Net 统一身份认证平台" />
|
||||
<link rel="icon" type="image/x-icon" href="~/favicon.ico" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="~/favicon.ico" />
|
||||
<link rel="stylesheet" href="~/lib/bootstrap/css/bootstrap.css" />
|
||||
<link rel="stylesheet" href="~/css/site.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a href="~/">
|
||||
<span class="navbar-brand">
|
||||
<img src="~/icon.png" class="icon-banner">
|
||||
OpenAuth.Net IdentityServer认证中心
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="auth-wrapper">
|
||||
<header class="auth-header">
|
||||
<a href="~/" class="brand">
|
||||
<img src="~/favicon.ico" alt="Logo" />
|
||||
<span>OpenAuth.Net</span>
|
||||
</a>
|
||||
@if (!string.IsNullOrWhiteSpace(name))
|
||||
{
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">@name <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a asp-action="Logout" asp-controller="Account">Logout</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="user-menu">
|
||||
<span>@name</span>
|
||||
<a asp-action="Logout" asp-controller="Account">退出登录</a>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="auth-main">
|
||||
@RenderBody()
|
||||
</main>
|
||||
|
||||
<footer class="auth-footer">
|
||||
© @DateTime.Now.Year OpenAuth.Net - 统一身份认证平台
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<div class="container body-content">
|
||||
@RenderBody()
|
||||
</div>
|
||||
|
||||
<script src="~/lib/jquery/jquery.js"></script>
|
||||
<script src="~/lib/bootstrap/js/bootstrap.js"></script>
|
||||
<script type="text/javascript">
|
||||
var _hmt = _hmt || [];
|
||||
(function () {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "//hm.baidu.com/hm.js?93a7b9a145222f9b7109d643a0c58f8d";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
</script>
|
||||
@RenderSection("scripts", required: false)
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,4 +1,14 @@
|
||||
@if (ViewContext.ModelState.IsValid == false)
|
||||
{
|
||||
<div class="alert alert-error">
|
||||
<span>⚠</span>
|
||||
<div>
|
||||
<strong>操作失败</strong>
|
||||
<div asp-validation-summary="All"></div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
@if (ViewContext.ModelState.IsValid == false)
|
||||
{
|
||||
<div class="alert alert-danger">
|
||||
<strong>Error</strong>
|
||||
|
||||
Reference in New Issue
Block a user