Skip to content

Commit b9a1d6a

Browse files
roshni73frozenhelium
authored andcommitted
Add keyfigues for operational learning
1 parent 66e3fbc commit b9a1d6a

File tree

3 files changed

+75
-1
lines changed

3 files changed

+75
-1
lines changed

app/src/views/OperationalLearning/i18n.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
"failedToCreateExport": "Failed to generate export.",
2121
"disclaimerMessage": "This is an updated implementation of the Operational Learning project started by the DREF and PER teams at IFRC. The previous dashboard can be found {link}.",
2222
"here": "here",
23-
"beta": "beta"
23+
"beta": "beta",
24+
"operationsIncluded": "Operations Included",
25+
"sourcesUsed": "Sources Used",
26+
"learningExtract": "Learning Extracts",
27+
"sectorsCovered": "Sectors Covered"
2428
}
2529
}

app/src/views/OperationalLearning/index.tsx

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
DismissableMultiListOutput,
1212
DismissableTextOutput,
1313
Header,
14+
KeyFigure,
1415
List,
1516
Tab,
1617
TabList,
@@ -476,6 +477,40 @@ export function Component() {
476477
</>
477478
)}
478479
/>
480+
<div
481+
className={styles.keyFigureCardList}
482+
>
483+
<div className={styles.keyFigureCard}>
484+
<KeyFigure
485+
className={styles.keyFigure}
486+
value={undefined}
487+
label={strings.operationsIncluded}
488+
labelClassName={styles.keyFigureDescription}
489+
/>
490+
<div className={styles.separator} />
491+
<KeyFigure
492+
className={styles.keyFigure}
493+
value={undefined}
494+
label={strings.sourcesUsed}
495+
labelClassName={styles.keyFigureDescription}
496+
/>
497+
<div className={styles.separator} />
498+
<KeyFigure
499+
className={styles.keyFigure}
500+
value={undefined}
501+
label={strings.learningExtract}
502+
labelClassName={styles.keyFigureDescription}
503+
/>
504+
<div className={styles.separator} />
505+
<KeyFigure
506+
className={styles.keyFigure}
507+
value={undefined}
508+
label={strings.sectorsCovered}
509+
labelClassName={styles.keyFigureDescription}
510+
/>
511+
</div>
512+
</div>
513+
479514
{showKeyInsights && (
480515
<KeyInsights
481516
opsLearningSummaryResponse={opsLearningSummaryResponse}

app/src/views/OperationalLearning/styles.module.css

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,40 @@
7070
font-style: italic;
7171
}
7272
}
73+
74+
.key-figure-card-list {
75+
display: grid;
76+
grid-gap: var(--go-ui-spacing-md);
77+
grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
78+
79+
@media screen and (max-width: 30rem) {
80+
grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
81+
}
82+
83+
.key-figure-card {
84+
display: flex;
85+
gap: var(--go-ui-spacing-md);
86+
border-radius: var(--go-ui-border-radius-lg);
87+
box-shadow: var(--go-ui-box-shadow-md);
88+
background-color: var(--go-ui-color-white);
89+
padding: var(--go-ui-spacing-md);
90+
91+
.separator {
92+
flex-shrink: 0;
93+
border-left: var(--go-ui-width-separator-sm) solid var(--go-ui-color-separator);
94+
}
95+
96+
.key-figure {
97+
flex-basis: 0;
98+
flex-grow: 1;
99+
padding: 0;
100+
101+
.key-figure-description {
102+
font-size: var(--go-ui-font-size-sm);
103+
}
104+
}
105+
}
106+
}
73107
}
74108

109+

0 commit comments

Comments
 (0)