熊大给出的配色建议

Co-authored-by: xiongbao <4247191+xiongbao@users.noreply.github.com>
This commit is contained in:
naiba 2021-08-06 10:43:21 +08:00
parent 08c688464a
commit 5f140f1d04
11 changed files with 21 additions and 12 deletions

View File

@ -4,7 +4,7 @@
<br> <br>
<small><i>LOGO designed by <a href="https://xio.ng" target="_blank">熊大</a> .</i></small> <small><i>LOGO designed by <a href="https://xio.ng" target="_blank">熊大</a> .</i></small>
<br><br> <br><br>
<img src="https://img.shields.io/github/workflow/status/naiba/nezha/Dashboard%20image?label=Dash%20v0.9.12&logo=github&style=for-the-badge">&nbsp;<img src="https://img.shields.io/github/v/release/naiba/nezha?color=brightgreen&label=Agent&style=for-the-badge&logo=github">&nbsp;<img src="https://img.shields.io/github/workflow/status/naiba/nezha/Agent%20release?label=Agent%20CI&logo=github&style=for-the-badge">&nbsp;<img src="https://img.shields.io/badge/Installer-v0.6.5-brightgreen?style=for-the-badge&logo=linux"> <img src="https://img.shields.io/github/workflow/status/naiba/nezha/Dashboard%20image?label=Dash%20v0.9.13&logo=github&style=for-the-badge">&nbsp;<img src="https://img.shields.io/github/v/release/naiba/nezha?color=brightgreen&label=Agent&style=for-the-badge&logo=github">&nbsp;<img src="https://img.shields.io/github/workflow/status/naiba/nezha/Agent%20release?label=Agent%20CI&logo=github&style=for-the-badge">&nbsp;<img src="https://img.shields.io/badge/Installer-v0.6.5-brightgreen?style=for-the-badge&logo=linux">
<br> <br>
<br> <br>
<p>:trollface: <b>哪吒监控</b> 一站式轻监控轻运维系统。支持系统状态、HTTP(SSL 证书变更、即将到期、到期)、TCP、Ping 监控报警,命令批量执行和计划任务。</p> <p>:trollface: <b>哪吒监控</b> 一站式轻监控轻运维系统。支持系统状态、HTTP(SSL 证书变更、即将到期、到期)、TCP、Ping 监控报警,命令批量执行和计划任务。</p>

View File

@ -98,9 +98,18 @@
} }
.service-status .good { .service-status .good {
background-color: rgb(0, 235, 139) !important; background-color: rgb(10, 148, 242) !important;
} }
.service-status .warning { .service-status .warning {
background-color: orange !important; background-color: orange !important;
} }
.nezha-primary-btn {
background-color: #0338d6 !important;
color: white !important;
}
.nezha-primary-font {
color: #0338d6 !important;
}

View File

@ -9,7 +9,7 @@
<title>{{.Title}}</title> <title>{{.Title}}</title>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.1/dist/semantic.min.css"> <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.1/dist/semantic.min.css">
<link rel="stylesheet" type="text/css" href="/static/semantic-ui-alerts.min.css"> <link rel="stylesheet" type="text/css" href="/static/semantic-ui-alerts.min.css">
<link rel="stylesheet" type="text/css" href="/static/main.css?v202107161357"> <link rel="stylesheet" type="text/css" href="/static/main.css?v20210806">
<link rel="shortcut icon" type="image/png" href="/static/logo.svg?v20210804" /> <link rel="shortcut icon" type="image/png" href="/static/logo.svg?v20210804" />
</head> </head>

View File

@ -40,7 +40,7 @@
</div> </div>
</div> </div>
{{else}} {{else}}
<a href="/login" class="ui large teal button"><i class="sign-in icon"></i>登录</a> <a href="/login" class="ui large nezha-primary-btn button"><i class="sign-in icon"></i>登录</a>
{{end}} {{end}}
</div> </div>
</div> </div>

View File

@ -3,7 +3,7 @@
<div class="login nb-container"> <div class="login nb-container">
<div class="ui center aligned grid"> <div class="ui center aligned grid">
<div class="column"> <div class="column">
<h2 class="ui teal image header"> <h2 class="ui nezha-primary-font image header">
<img src="/static/logo.svg?v20210804" class="image"> <img src="/static/logo.svg?v20210804" class="image">
<div class="content"> <div class="content">
访问受限 访问受限

View File

@ -3,13 +3,13 @@
<div class="login nb-container"> <div class="login nb-container">
<div class="ui center aligned grid"> <div class="ui center aligned grid">
<div class="column"> <div class="column">
<h2 class="ui teal image header"> <h2 class="ui nezha-primary-font image header">
<img src="static/logo.svg?v20210804" class="image"> <img src="static/logo.svg?v20210804" class="image">
<div class="content"> <div class="content">
使用 {{.LoginType}} 账号登录 使用 {{.LoginType}} 账号登录
</div> </div>
</h2> </h2>
<a href="/oauth2/login" class="ui fluid large teal submit button">登录</a> <a href="/oauth2/login" class="ui fluid large nezha-primary-btn submit button">登录</a>
<div class="ui message"> <div class="ui message">
没有账号? <a href="{{.RegistrationLink}}" target="_blank">注册</a> 没有账号? <a href="{{.RegistrationLink}}" target="_blank">注册</a>
</div> </div>

View File

@ -188,7 +188,7 @@
this.cache[percent].style['background-color'] = 'slategray' this.cache[percent].style['background-color'] = 'slategray'
this.cache[percent].class.offline = true this.cache[percent].class.offline = true
} else if (percent < 51) { } else if (percent < 51) {
this.cache[percent].style['background-color'] = 'rgb(0, 235, 139)' this.cache[percent].style['background-color'] = '#0a94f2'
this.cache[percent].class.fine = true this.cache[percent].class.fine = true
} else if (percent < 81) { } else if (percent < 81) {
this.cache[percent].style['background-color'] = 'orange' this.cache[percent].style['background-color'] = 'orange'

View File

@ -6,7 +6,7 @@
<div class="login nb-container"> <div class="login nb-container">
<div class="ui center aligned grid"> <div class="ui center aligned grid">
<div class="column"> <div class="column">
<h2 class="ui teal image header"> <h2 class="ui nezha-primary-font image header">
<img src="static/logo.svg?v20210804" class="image"> <img src="static/logo.svg?v20210804" class="image">
<div class="content"> <div class="content">
验证查看密码 验证查看密码

View File

@ -191,7 +191,7 @@
this.cache[percent].style['background-color'] = 'slategray' this.cache[percent].style['background-color'] = 'slategray'
this.cache[percent].class.offline = true this.cache[percent].class.offline = true
} else if (percent < 51) { } else if (percent < 51) {
this.cache[percent].style['background-color'] = 'rgb(0, 235, 139)' this.cache[percent].style['background-color'] = '#0a94f2'
this.cache[percent].class.fine = true this.cache[percent].class.fine = true
} else if (percent < 81) { } else if (percent < 81) {
this.cache[percent].style['background-color'] = 'orange' this.cache[percent].style['background-color'] = 'orange'

View File

@ -6,7 +6,7 @@
<div class="login nb-container"> <div class="login nb-container">
<div class="ui center aligned grid"> <div class="ui center aligned grid">
<div class="column"> <div class="column">
<h2 class="ui teal image header"> <h2 class="ui nezha-primary-font image header">
<img src="static/logo.svg?v20210804" class="image"> <img src="static/logo.svg?v20210804" class="image">
<div class="content"> <div class="content">
验证查看密码 验证查看密码

View File

@ -13,7 +13,7 @@ import (
pb "github.com/naiba/nezha/proto" pb "github.com/naiba/nezha/proto"
) )
var Version = "v0.9.12" // !!记得修改 README 中的 badge 版本!! var Version = "v0.9.13" // !!记得修改 README 中的 badge 版本!!
var ( var (
Conf *model.Config Conf *model.Config