Skip to content

Commit b3908d7

Browse files
authored
Merge pull request #1836 from IFRCGo/fix/montandon-landing-page
Fix comments in montandon landing page
2 parents b71d832 + c086629 commit b3908d7

File tree

4 files changed

+47
-24
lines changed

4 files changed

+47
-24
lines changed

.changeset/slow-bears-fall.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"go-web-app": patch
3+
---
4+
5+
Update Learn > Resources > Montandon page
6+
- Update styling of 'API Access' buttons
7+
- Reword 'Access API' link to 'Access Montandon API'
8+
- Reword 'Explore Radiant Earth API' to 'Explore data in STAC browser'

app/src/views/MontandonLandingPage/i18n.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"contactName": "Justin Ginnetti",
3737
"contactInfo": "Senior Officer, Information Management and Risk Analysis, IFRC",
3838

39-
"accessAPILabel": "Access API",
40-
"exploreRadiantEarthLabel": "Explore Radiant Earth API"
39+
"accessAPILabel": "Access the Montandon API",
40+
"exploreRadiantEarthLabel": "Explore data in STAC browser"
4141
}
4242
}

app/src/views/MontandonLandingPage/index.tsx

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,26 @@ export function Component() {
131131
contentViewType="grid"
132132
numPreferredGridContentColumns={3}
133133
spacing="comfortable"
134+
footerActions={(
135+
<>
136+
<Link
137+
href="https://montandon-eoapi-stage.ifrc.org/stac/api.html"
138+
variant="secondary"
139+
external
140+
withLinkIcon
141+
>
142+
{strings.accessAPILabel}
143+
</Link>
144+
<Link
145+
href="https://radiantearth.github.io/stac-browser/#/external/montandon-eoapi-stage.ifrc.org/stac/"
146+
variant="secondary"
147+
external
148+
withLinkIcon
149+
>
150+
{strings.exploreRadiantEarthLabel}
151+
</Link>
152+
</>
153+
)}
134154
>
135155
<Container
136156
className={styles.guideCard}
@@ -225,28 +245,6 @@ export function Component() {
225245
</Container>
226246

227247
</Container>
228-
<Container
229-
contentViewType="vertical"
230-
heading="Other links"
231-
withHeaderBorder
232-
>
233-
<Link
234-
href="https://montandon-eoapi-stage.ifrc.org/stac/api.html"
235-
withUnderline
236-
withLinkIcon
237-
external
238-
>
239-
{strings.accessAPILabel}
240-
</Link>
241-
<Link
242-
href="https://radiantearth.github.io/stac-browser/#/external/montandon-eoapi-stage.ifrc.org/stac/"
243-
withUnderline
244-
withLinkIcon
245-
external
246-
>
247-
{strings.exploreRadiantEarthLabel}
248-
</Link>
249-
</Container>
250248
</Page>
251249
);
252250
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parent": "000031-1747730639485.json",
3+
"actions": [
4+
{
5+
"action": "update",
6+
"key": "accessAPILabel",
7+
"namespace": "montandonLandingPage",
8+
"newValue": "Access the Montandon API"
9+
},
10+
{
11+
"action": "update",
12+
"key": "exploreRadiantEarthLabel",
13+
"namespace": "montandonLandingPage",
14+
"newValue": "Explore data in STAC browser"
15+
}
16+
]
17+
}

0 commit comments

Comments
 (0)