Skip to content

Commit 1d5f0bb

Browse files
committed
link to data summary page is added to the landing page
1 parent bdb32af commit 1d5f0bb

File tree

1 file changed

+38
-10
lines changed

1 file changed

+38
-10
lines changed

src/components/researchPortal/ResearchMultiBarGraphs.vue

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@
44
class="research-multi-bar-graphs"
55
:style="rootStyle"
66
>
7-
<div v-if="legendSources.length" class="multi-bar-legend">
8-
<span
9-
v-for="src in legendSources"
10-
:key="src"
11-
class="legend-item"
12-
>
13-
<span class="legend-swatch" :style="{ background: colorBySource(src) }"></span>
14-
<span class="legend-label">{{ src }}</span>
15-
</span>
7+
<div class="multi-bar-top-row">
8+
<div v-if="legendSources.length" class="multi-bar-legend">
9+
<span
10+
v-for="src in legendSources"
11+
:key="src"
12+
class="legend-item"
13+
>
14+
<span class="legend-swatch" :style="{ background: colorBySource(src) }"></span>
15+
<span class="legend-label">{{ src }}</span>
16+
</span>
17+
</div>
18+
<a href="/datasetsSummary.html" class="multi-bar-summary-btn">Browse full data summary.</a>
1619
</div>
1720
<div class="multi-bar-grid">
1821
<div
@@ -244,7 +247,6 @@ export default {
244247
display: flex;
245248
flex-wrap: wrap;
246249
gap: 1rem 1.5rem;
247-
margin-bottom: 1.25rem;
248250
padding: 0.5rem 0;
249251
}
250252
@@ -337,4 +339,30 @@ export default {
337339
text-align: right;
338340
font-variant-numeric: tabular-nums;
339341
}
342+
343+
.multi-bar-top-row {
344+
display: flex;
345+
align-items: center;
346+
justify-content: space-between;
347+
flex-wrap: wrap;
348+
gap: 0.75rem;
349+
margin-bottom: 1rem;
350+
}
351+
352+
.multi-bar-summary-btn {
353+
display: inline-block;
354+
padding: 0.2rem 0.4rem;
355+
font-size: 0.9rem;
356+
background-color: #eeeeee;
357+
border: 1px solid #cccccc;
358+
border-radius: 4px;
359+
text-decoration: none;
360+
cursor: pointer;
361+
white-space: nowrap;
362+
}
363+
364+
.multi-bar-summary-btn:hover {
365+
background-color: #cccccc;
366+
text-decoration: none;
367+
}
340368
</style>

0 commit comments

Comments
 (0)