Update the color palate; move harvey ball indicators above variance graph

pull/1/head
Alex Basson 4 years ago
parent fc0c5cb8d3
commit b1c7ba3f0f

@ -1,3 +1,9 @@
@import 'colors';
.border-radius-8 { .border-radius-8 {
border-radius: 8px; border-radius: 8px;
} }
.border-gray-2 {
border: 1px solid $gray-2;
}

@ -1,23 +1,29 @@
$black: #3E3A38; $black: #3E3A38;
$gray-1: #595959; $gray-1: #595959;
$gray-2: #CECECE; $gray-2: #CECECE;
$gray-3: #F9F9F9; $gray-3: #F3F3F3;
$gray-4: #F3F3F3; $light-blue: #FAFCFD;
$white: #FFFFFF; $white: #FFFFFF;
$blue: #01788E; $blue: #01788E;
$red: #C93047;
$light-blue: #FAFCFD;
$dark-blue: #004D61; $dark-blue: #004D61;
$red: #C93047;
$dark-red: #920020;
$gold: #FFC857;
$light-gold: #FFFAEE;
$purple: #49416D;
$light-purple: #EDECF0;
$teal: #00B0B3; $teal: #00B0B3;
$mint: #B2D236; $lime: #B2D236;
$warning: #FF73C0; $warning: $gold;
$watch: #F096AD; $watch: $gold;
$growth: #E0BA9A; $growth: $gold;
$approval: #D0DD86; $approval: $purple;
$ideal: #C0FF73; $ideal: $purple;
.color-red { .color-red {
color: $red; color: $red;
@ -56,7 +62,7 @@ $ideal: #C0FF73;
} }
.bg-gray { .bg-gray {
background-color: $gray-4; background-color: $gray-3;
} }
.bg-warning { .bg-warning {
@ -66,15 +72,32 @@ $ideal: #C0FF73;
.bg-watch { .bg-watch {
background-color: $watch; background-color: $watch;
} }
.bg-growth { .bg-growth {
background-color: $growth; background-color: $growth;
} }
.bg-approval { .bg-approval {
background-color: $approval; background-color: $approval;
} }
.bg-ideal { .bg-ideal {
background-color: $ideal; background-color: $ideal;
} }
.bg-fill-warning,
.bg-fill-watch,
.bg-fill-growth
{
fill: $light-gold;
}
.bg-fill-approval,
.bg-fill-ideal
{
fill: $light-purple;
}
.fill-warning { .fill-warning {
fill: $warning; fill: $warning;
} }

@ -39,7 +39,7 @@
.subcategory-card { .subcategory-card {
border: 1px solid #CECECE; border: 1px solid #CECECE;
background-color: $gray-4; background-color: $gray-3;
min-width: 95%; min-width: 95%;
margin: auto; margin: auto;
padding: 8px; padding: 8px;

@ -16,6 +16,7 @@
.card { .card {
@extend .bg-color-white; @extend .bg-color-white;
@extend .mb-5;
@extend .p-5; @extend .p-5;
border-radius: 8px; border-radius: 8px;
box-shadow: 0 0 6px rgba($black, 0.25); box-shadow: 0 0 6px rgba($black, 0.25);
@ -80,5 +81,5 @@
border-top-color: transparent; border-top-color: transparent;
border-right-color: transparent; border-right-color: transparent;
border-left-color: transparent; border-left-color: transparent;
border-bottom-color: $gray-4; border-bottom-color: $gray-3;
} }

@ -1,4 +1,4 @@
<svg> <svg class="d-none">
<symbol viewBox="0 0 24 24" id="empty-circle"> <symbol viewBox="0 0 24 24" id="empty-circle">
<circle cx="12" cy="12" r="11.5" fill="none" stroke="#3E3A38"/> <circle cx="12" cy="12" r="11.5" fill="none" stroke="#3E3A38"/>
</symbol> </symbol>
@ -41,9 +41,7 @@
</symbol> </symbol>
</svg> </svg>
<div class="school-quality-frameworks">
<div class="school-quality-frameworks card mt-5 p-4 border-radius-8">
<h2 class="sub-header-2">School Quality Framework Indicators</h2>
<div class="row mt-5"> <div class="row mt-5">
<% category_presenters.each do |category_presenter| %> <% category_presenters.each do |category_presenter| %>

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

@ -5,8 +5,8 @@
<feFuncA type="table" tableValues="1 0"/> <feFuncA type="table" tableValues="1 0"/>
</feComponentTransfer> </feComponentTransfer>
<feGaussianBlur stdDeviation="4"/> <feGaussianBlur stdDeviation="4"/>
<feOffset dx="0" dy="5" result="offsetblur"/> <feOffset dx="0" dy="0" result="offsetblur"/>
<feFlood flood-color="rgb(0, 0, 0)" result="color"/> <feFlood flood-color="rgb(62, 58, 56, 0.25)" result="color"/>
<feComposite in2="offsetblur" operator="in"/> <feComposite in2="offsetblur" operator="in"/>
<feComposite in2="SourceAlpha" operator="in"/> <feComposite in2="SourceAlpha" operator="in"/>
<feMerge> <feMerge>
@ -21,6 +21,7 @@
y="0" y="0"
width="<%= graph_width_percentage %>%" width="<%= graph_width_percentage %>%"
height=<%= graph_background_height(number_of_rows: presenters.size) %> height=<%= graph_background_height(number_of_rows: presenters.size) %>
filter="url(#inset-shadow)"
> >
<g id="zone-headings"> <g id="zone-headings">
<%= zones.each_with_index do |zone, index| %> <%= zones.each_with_index do |zone, index| %>
@ -40,13 +41,13 @@
<%= zones.each_with_index do |zone, index| %> <%= zones.each_with_index do |zone, index| %>
<rect <rect
id="<%= zone %>-zone" id="<%= zone %>-zone"
class="zone-background fill-<%= zone %>" class="zone-background bg-fill-<%= zone %>"
x="<%= index * zone_width_percentage %>%" x="<%= index * zone_width_percentage %>%"
y="0" y="0"
width="<%= zone_width_percentage %>%" width="<%= zone_width_percentage %>%"
height="100%" height="100%"
opacity="0.2" stroke="#CECECE"
filter="url(#inset-shadow)" stroke-width="1"
/> />
<% end %> <% end %>
</g> </g>

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

@ -3,11 +3,13 @@
<% end %> <% end %>
<div class="card"> <div class="card">
<div class="mb-5"> <h2 class="sub-header-2">School Quality Framework Indicators</h2>
<h2 class="sub-header-2 color-black">Distance from benchmark</h2>
</div>
<%= render partial: "variance_graph", locals: { presenters: @measure_graph_row_presenters} %> <%= render partial: "quality_framework_indicators", locals: { category_presenters: @category_presenters } %>
</div> </div>
<%= render partial: "quality_framework_indicators", locals: { category_presenters: @category_presenters } %> <div class="card">
<h2 class="sub-header-2">Distance from benchmark</h2>
<%= render partial: "variance_graph", locals: { presenters: @measure_graph_row_presenters} %>
</div>

Loading…
Cancel
Save