Skip to content

Commit 34ed10a

Browse files
committed
Changed the banner at the top of the page from Census 2021 to Trafford Themes. Reworked and renamed much of the CSS for this to make it more obvious what it is for and to improve the layering of styles to reduce duplication etc. The icon for this banner uses 3 Font Awesome icons stacked.
1 parent 246414f commit 34ed10a

1 file changed

Lines changed: 58 additions & 42 deletions

File tree

index.html

Lines changed: 58 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -49,70 +49,82 @@
4949
padding: 0 0 0.25em 0;
5050
}
5151

52-
/* Styles for the the "Collections" Font Awesome icons and Census 2021 lozenge */
53-
.fa-check-circle, .fa-head-side-mask
54-
{
55-
float: left;
56-
}
57-
58-
.card .fa-check-circle
59-
{
60-
font-size: 6em;
61-
color: #902082;
62-
margin-right: 0.12em;
63-
}
64-
65-
.fa-head-side-mask
66-
{
67-
font-size: 5.75em;
68-
color: #999;
69-
margin-right: 0.13em;
70-
}
71-
72-
#census2021 .fa-check-circle
73-
{
74-
margin-left: 0.08em;
75-
margin-right: 0.1em;
76-
padding-top: 0.081em;
77-
font-size: 6em;
78-
color: #fff;
79-
}
80-
81-
#census2021
52+
/* Styles for the the spotlight banner at the top of the page and the "Collections" Font Awesome icons */
53+
#spotlightBanner
8254
{
8355
display: block;
8456
border-radius: 3.5em;
8557
min-height: 7em;
8658
margin: 2em 0 2em 0;
8759
padding-right: 2em;
88-
background-color: #902082;
60+
background-color: #00445e; /* BIU dark blue */
8961
color: #fff;
9062
}
9163

92-
#census2021:hover, #census2021:hover h2
64+
#spotlightBanner:hover
9365
{
94-
color: #fff;
95-
background-color: #41378d;
66+
background-color: #0bc2d2; /* BIU light blue */
67+
}
68+
69+
#spotlightBanner:hover, #spotlightBanner:hover h2, #spotlightBanner:hover .fa-chart-line, #spotlightBanner:hover .fa-circle
70+
{
71+
color: #002738; /* Tweaked to be darker than the BIU dark blue (#00445e) to achieve 7.17:1 contrast for WCAG AAA accessibility rating */
72+
}
73+
74+
#spotlightBanner:hover .fa-chart-simple
75+
{
76+
color: #ffcb00; /* BIU yellow */
9677
}
9778

98-
#census2021Content
79+
#spotlightBannerText
9980
{
10081
display: inline-block;
10182
margin-left: 0.5em;
10283
}
10384

104-
#census2021Content h2
85+
#spotlightBannerText h2
10586
{
10687
margin-bottom: 0;
10788
color: #fff;
89+
font-size: 1.75em;
10890
}
10991

110-
#census2021Content p
92+
#spotlightBannerText p
11193
{
11294
margin-top: 0.25em;
11395
margin-left: 2px;
11496
}
97+
98+
#spotlightBannerIcon
99+
{
100+
margin-left: -0.08em;
101+
padding-top: 0.16em;
102+
font-size: 3em;
103+
}
104+
105+
#spotlightBannerIcon, .fa-check-circle, .fa-head-side-mask
106+
{
107+
float: left;
108+
}
109+
110+
.fa-chart-simple /* Lowest level stacked icon in the spotlight banner for Trafford Themes */
111+
{
112+
color: #0bc2d2; /* BIU light blue */
113+
}
114+
115+
.card .fa-check-circle /* Census 2021 collection */
116+
{
117+
font-size: 6em;
118+
color: #902082;
119+
margin-right: 0.12em;
120+
}
115121

122+
.card .fa-head-side-mask /* COVID-19 resources collection */
123+
{
124+
font-size: 5.75em;
125+
color: #999;
126+
margin-right: 0.13em;
127+
}
116128

117129
/* For browsers which don't support grid layouts */
118130
@media (max-width:750px)
@@ -165,11 +177,15 @@ <h1>Trafford Data Lab</h1>
165177

166178
<p class="intro">Supporting decision-making in Trafford by revealing patterns in data through visualisation.</p>
167179

168-
<a href="census2021.html" id="census2021" class="smallText">
169-
<span class="far fa-check-circle"></span>
170-
<span id="census2021Content">
171-
<h2><img src="images/Census 2021 Web Logo White Landscape RGB.png" height="20" alt="Census 2021" id="census2021Logo"/></h2>
172-
<p>Visit our dedicated page for all outputs relating to the census conducted in 2021.</p>
180+
<a href="https://trafforddatalab.shinyapps.io/trafford_themes/" id="spotlightBanner" class="smallText">
181+
<span id="spotlightBannerIcon" class="fa-stack fa-2x">
182+
<span class="fa-solid fa-chart-simple fa-stack-1x"></span>
183+
<span class="fa-solid fa-chart-line fa-stack-1x"></span>
184+
<span class="fa-regular fa-circle fa-stack-2x"></span>
185+
</span>
186+
<span id="spotlightBannerText">
187+
<h2>Trafford Themes</h2>
188+
<p>Interactive dashboard with a range of themed indicators relating to work undertaken by Trafford Council.</p>
173189
</span>
174190
</a>
175191

0 commit comments

Comments
 (0)