Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Learning Landscapes to the tools page #1937

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 17 additions & 3 deletions src/localization/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@
"Collect data offline and online",
"Analyze and manage data"
],
"requirements": "Modern web browser (Chrome, Edge, Firefox, Safari)",
"external": "true"
},
"landscale": {
Expand All @@ -177,7 +176,22 @@
"Validate results through LandScale validation and local review",
"Publish results on the LandScale platform"
],
"requirements": "Modern web browser (Chrome, Edge, Firefox, Safari)",
"external": "true"
},
"learning_landscapes": {
"title": "Learning Landscapes",
"url": "https://learn.landscapes.global/",
"learn_more_url": "https://landscapes.global/",
"img": {
"height": "140",
"width": "250",
"src": "tools/learning-landscapes-screenshot.png",
"alt": "A list of chapters in a course, with one chapter selected."
},
"description": [
"Learn how to practice Integrated Landscape Management",
"Develop your skills to achieve ILM outputs"
],
"external": "true"
},
"storyMap": {
Expand All @@ -191,7 +205,7 @@
"caption": "Rocky Hill’s Story Map"
},
"description": ["Create beautiful map-based stories"],
"requirements": "Modern web browser (Chrome, Edge, Firefox, Safari)",
"": "Modern web browser (Chrome, Edge, Firefox, Safari)",
"external": "false"
}
},
Expand Down
19 changes: 16 additions & 3 deletions src/localization/locales/es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@
"Recopilar datos fuera de línea y en línea",
"Analizar y gestionar datos"
],
"requirements": "Navegador web moderno (Chrome, Edge, Firefox, Safari)",
"external": "true"
},
"landscale": {
Expand All @@ -177,7 +176,22 @@
"Validar resultados mediante validación LandScale y revisión local",
"Publicar resultados en la plataforma LandScale"
],
"requirements": "Navegador web moderno (Chrome, Edge, Firefox, Safari)",
"external": "true"
},
"learning_landscapes": {
"title": "Learning Landscapes",
"url": "https://learn.landscapes.global/",
"learn_more_url": "https://landscapes.global/",
"img": {
"height": "140",
"width": "250",
"src": "tools/learning-landscapes-screenshot.png",
"alt": "A list of chapters in a course, with one chapter selected."
},
"description": [
"Learn how to practice Integrated Landscape Management",
"Develop your skills to achieve ILM outputs"
],
"external": "true"
},
"storyMap": {
Expand All @@ -191,7 +205,6 @@
"caption": "Story Map de Rocky Hill"
},
"description": ["Crea hermosas historias basadas en mapas"],
"requirements": "Navegador web moderno (Chrome, Edge, Firefox, Safari)",
"external": "false"
}
},
Expand Down
9 changes: 7 additions & 2 deletions src/tool/components/ToolCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ const ToolCard = ({ tool }) => {

const external = t(`tools.${tool}.external`) === 'true';
const LinkComponent = external ? ExternalLink : Link;
const requirements = t(`tools.${tool}.requirements`, '');

return (
<React.Fragment>
Expand Down Expand Up @@ -131,8 +132,12 @@ const ToolCard = ({ tool }) => {
<Typography>{toolDescription}</Typography>
)}

<Typography variant="h3">{t('tool.requirements')}</Typography>
<Typography>{t(`tools.${tool}.requirements`)}</Typography>
{requirements && (
<>
<Typography variant="h3">{t('tool.requirements')}</Typography>
<Typography>{t(`tools.${tool}.requirements`)}</Typography>
</>
)}

{learnMoreUrl && (
<Typography sx={{ mt: '1em' }}>
Expand Down
2 changes: 1 addition & 1 deletion src/tool/components/ToolList.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import ToolCard from 'tool/components/ToolCard';
const ToolList = () => {
const { t } = useTranslation();

const toolList = ['storyMap', 'kobo', 'landscale'];
const toolList = ['storyMap', 'kobo', 'landscale', 'learning_landscapes'];

useDocumentTitle(t('tool.list_document_title'));
useDocumentDescription(t('tool.list_document_description'));
Expand Down
Loading