|
49 | 49 | padding: 0 0 0.25em 0; |
50 | 50 | } |
51 | 51 |
|
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 |
82 | 54 | { |
83 | 55 | display: block; |
84 | 56 | border-radius: 3.5em; |
85 | 57 | min-height: 7em; |
86 | 58 | margin: 2em 0 2em 0; |
87 | 59 | padding-right: 2em; |
88 | | - background-color: #902082; |
| 60 | + background-color: #00445e; /* BIU dark blue */ |
89 | 61 | color: #fff; |
90 | 62 | } |
91 | 63 |
|
92 | | - #census2021:hover, #census2021:hover h2 |
| 64 | + #spotlightBanner:hover |
93 | 65 | { |
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 */ |
96 | 77 | } |
97 | 78 |
|
98 | | - #census2021Content |
| 79 | + #spotlightBannerText |
99 | 80 | { |
100 | 81 | display: inline-block; |
101 | 82 | margin-left: 0.5em; |
102 | 83 | } |
103 | 84 |
|
104 | | - #census2021Content h2 |
| 85 | + #spotlightBannerText h2 |
105 | 86 | { |
106 | 87 | margin-bottom: 0; |
107 | 88 | color: #fff; |
| 89 | + font-size: 1.75em; |
108 | 90 | } |
109 | 91 |
|
110 | | - #census2021Content p |
| 92 | + #spotlightBannerText p |
111 | 93 | { |
112 | 94 | margin-top: 0.25em; |
113 | 95 | margin-left: 2px; |
114 | 96 | } |
| 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 | + } |
115 | 121 |
|
| 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 | + } |
116 | 128 |
|
117 | 129 | /* For browsers which don't support grid layouts */ |
118 | 130 | @media (max-width:750px) |
@@ -165,11 +177,15 @@ <h1>Trafford Data Lab</h1> |
165 | 177 |
|
166 | 178 | <p class="intro">Supporting decision-making in Trafford by revealing patterns in data through visualisation.</p> |
167 | 179 |
|
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> |
173 | 189 | </span> |
174 | 190 | </a> |
175 | 191 |
|
|
0 commit comments