Make some visual changes to the status page.
This commit is contained in:
23
app/assets/sass/_palette.scss
Normal file
23
app/assets/sass/_palette.scss
Normal file
@@ -0,0 +1,23 @@
|
||||
$green: #2ECC71;
|
||||
$dark-green: darken($green, 10%);
|
||||
|
||||
$blue: #3498db;
|
||||
$dark-blue: darken($blue, 10%);
|
||||
|
||||
$red: #ff6f6f;
|
||||
$dark-red: darken($red, 10%);
|
||||
|
||||
$teal: #0dccc0;
|
||||
$dark-teal: darken($teal, 10%);
|
||||
|
||||
$yellow: #F7CA18;
|
||||
$dark-yellow: darken($yellow, 10%);
|
||||
|
||||
$pink: #b23f73;
|
||||
$dark-pink: darken($pink, 10%);
|
||||
|
||||
$grey: #ecf0f1;
|
||||
$dark-grey: darken($grey, 10%);
|
||||
|
||||
$orange: #E87E04;
|
||||
$dark-orange: darken($orange, 10%);
|
||||
@@ -1,162 +1,167 @@
|
||||
body {
|
||||
@import 'palette';
|
||||
|
||||
body.status-page {
|
||||
font-family: 'Lato';
|
||||
color: #333333;
|
||||
font-size: 1.4em;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.text-success, .text-component-1 {
|
||||
color: #4cae4c;
|
||||
}
|
||||
|
||||
.text-info, .text-component-2 {
|
||||
color: #46b8da;
|
||||
}
|
||||
|
||||
.text-alert, .text-component-3 {
|
||||
color: #F9BF3B;
|
||||
}
|
||||
|
||||
.text-danger, .text-component-4 {
|
||||
color: #D91E18;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 960px;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.alert {
|
||||
margin-top: 20px;
|
||||
border-radius: 0;
|
||||
font-size: 1.2em;
|
||||
&.alert-success {
|
||||
background-color: #8DCD8D;
|
||||
border-color: #4cae4c;
|
||||
color: white;
|
||||
hr {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
&.alert-info {
|
||||
background: #8CD3E8;
|
||||
border-color: #46b8da;
|
||||
color: #FFF;
|
||||
h1, h2, h3, h4, h5 {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
&.alert-danger {
|
||||
background: #D91E18;
|
||||
border-color: #CF000F;
|
||||
color: #FFF;
|
||||
.text-success, .text-component-1 {
|
||||
color: $green;
|
||||
}
|
||||
}
|
||||
|
||||
.badge {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
padding-left: 12px;
|
||||
padding-right: 12px;
|
||||
&.badge-incident-1 {
|
||||
background-color: #F27935;
|
||||
.text-info, .text-component-2 {
|
||||
color: $blue;
|
||||
}
|
||||
&.badge-incident-2 {
|
||||
background-color: #F9BF3B;
|
||||
}
|
||||
&.badge-incident-3 {
|
||||
background-color: #46b8da;
|
||||
}
|
||||
&.badge-incident-4 {
|
||||
background-color: #4cae4c;
|
||||
}
|
||||
}
|
||||
|
||||
.list-group {
|
||||
margin-bottom: 20px;
|
||||
padding-left: 0;
|
||||
border-radius: 0;
|
||||
.text-alert, .text-component-3 {
|
||||
color: $yellow;
|
||||
}
|
||||
|
||||
.list-group-item {
|
||||
.text-danger, .text-component-4 {
|
||||
color: $red;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 960px;
|
||||
margin-bottom: 40px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.alert {
|
||||
border-radius: 0;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #BDC3C7;
|
||||
font-size: 1.1em;
|
||||
font-size: 1.2em;
|
||||
&.alert-success {
|
||||
background-color: $green;
|
||||
border-color: $dark-green;
|
||||
color: white;
|
||||
}
|
||||
|
||||
span.badge {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
&.alert-info {
|
||||
background: $blue;
|
||||
border-color: $dark-blue;
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
&.alert-danger {
|
||||
background: $red;
|
||||
border-color: $dark-red;
|
||||
color: #FFF;
|
||||
}
|
||||
}
|
||||
|
||||
.badge {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
padding-left: 12px;
|
||||
padding-right: 12px;
|
||||
&.badge-incident-1 {
|
||||
background-color: $orange;
|
||||
}
|
||||
&.badge-incident-2 {
|
||||
background-color: $yellow;
|
||||
}
|
||||
&.badge-incident-3 {
|
||||
background-color: $blue;
|
||||
}
|
||||
&.badge-incident-4 {
|
||||
background-color: $green;
|
||||
}
|
||||
}
|
||||
|
||||
.list-group {
|
||||
margin-bottom: 20px;
|
||||
padding-left: 0;
|
||||
border-radius: 0;
|
||||
|
||||
.list-group-item {
|
||||
border-radius: 0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
i.glyphicon {
|
||||
font-size: 1.4em;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4 {
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-weight: 400;
|
||||
max-width: 90%;
|
||||
}
|
||||
|
||||
p, time {
|
||||
margin-bottom: 0;
|
||||
line-height: 1.3em;
|
||||
}
|
||||
|
||||
time {
|
||||
color: #6C7A89;
|
||||
// letter-spacing: 0.02em;
|
||||
font-weight: 300;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid $grey;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
&.active {
|
||||
background-color: #F2F1EF;
|
||||
h3 {
|
||||
color: #22313F;
|
||||
padding-top: 6px;
|
||||
padding-bottom: 6px;
|
||||
span.badge {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
border-radius: 0;
|
||||
display: block;
|
||||
}
|
||||
|
||||
i.glyphicon {
|
||||
font-size: 1.4em;
|
||||
color: rgba(white, 0.9);
|
||||
}
|
||||
|
||||
h1, h2, h3, h4 {
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-weight: 400;
|
||||
max-width: 90%;
|
||||
}
|
||||
|
||||
p, time {
|
||||
margin-bottom: 0;
|
||||
line-height: 1.3em;
|
||||
}
|
||||
|
||||
time {
|
||||
color: #6C7A89;
|
||||
// letter-spacing: 0.02em;
|
||||
font-weight: 300;
|
||||
font-size: 1.6em;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: inherit;
|
||||
border-color: #BDC3C7;
|
||||
&.active {
|
||||
background-color: #F2F1EF;
|
||||
h3 {
|
||||
color: #22313F;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
font-weight: 600;
|
||||
font-size: 1.4em;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: inherit;
|
||||
border-color: $grey;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.components {
|
||||
margin-bottom: 30px;
|
||||
p {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.badge {
|
||||
color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.components {
|
||||
margin-bottom: 30px;
|
||||
p {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.badge {
|
||||
color: transparent;
|
||||
}
|
||||
footer.footer {
|
||||
padding-top: 40px;
|
||||
padding-bottom: 40px;
|
||||
color: #777;
|
||||
text-align: center;
|
||||
border-top: 1px solid $grey;
|
||||
background-color: lighten($grey, 5%);
|
||||
}
|
||||
}
|
||||
|
||||
footer.footer {
|
||||
padding-top: 40px;
|
||||
padding-bottom: 40px;
|
||||
color: #777;
|
||||
text-align: center;
|
||||
border-top: 1px solid #e5e5e5;
|
||||
background-color: lighten(#e5e5e5, 5%);
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ return [
|
||||
'logout' => 'Logout',
|
||||
'logged_in' => 'You\'re logged in.',
|
||||
'setup' => 'Setup Cachet',
|
||||
'no_incidents' => 'No incidents reported.',
|
||||
'dashboard' => [
|
||||
'dashboard' => 'Dashboard',
|
||||
'components' => 'Components',
|
||||
|
||||
@@ -1,17 +1,20 @@
|
||||
@extends('layout.master')
|
||||
|
||||
@section('content')
|
||||
<div class='alert alert-{{ $systemStatus }}'>{{ $systemMessage }}</div>
|
||||
|
||||
@if(Auth::check())
|
||||
<div class='page-header text-right'>
|
||||
<div class='btn-group'>
|
||||
<ul class='nav nav-pills'>
|
||||
<li>
|
||||
<a class="btn btn-default" href="{{ URL::route('dashboard') }}">{{ Lang::get('cachet.dashboard.dashboard') }}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-danger" href="{{ URL::route('logout') }}">{{ Lang::get('cachet.logout') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<hr />
|
||||
@endif
|
||||
|
||||
<div class='alert alert-{{ $systemStatus }}'>{{ $systemMessage }}</div>
|
||||
|
||||
@include('partials.components')
|
||||
|
||||
@if(Setting::get('display_graphs'))
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
@if($components->count() > 0)
|
||||
<div class='page-header'>
|
||||
<ul class='list-group components'>
|
||||
@foreach($components as $component)
|
||||
<li class='list-group-item component '>
|
||||
<h4>{{ $component->name }} <small class='text-component-{{ $component->status }}'>{{ $component->humanStatus }}</small></h4>
|
||||
<p>{{ $component->description }}</p>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
<ul class='list-group components'>
|
||||
@foreach($components as $component)
|
||||
<li class='list-group-item component '>
|
||||
<h4>{{ $component->name }} <small class='text-component-{{ $component->status }}'>{{ $component->humanStatus }}</small></h4>
|
||||
<p>{{ $component->description }}</p>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</li>
|
||||
|
||||
@unless($incidents->count() > 0)
|
||||
<li class='list-group-item'>No incidents reported.</li>
|
||||
<li class='list-group-item'>{{ Lang::get('cachet.no_incidents') }}</li>
|
||||
@endunless
|
||||
|
||||
@foreach($incidents as $incidentID => $incident)
|
||||
|
||||
Reference in New Issue
Block a user