mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
Feat(Curriculum): Implement Chapter Based Layout to A1 Spanish (#62190)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
@@ -4849,10 +4849,38 @@
|
||||
"title": "A1 Professional Spanish Certification (Beta)",
|
||||
"note": "This certification is currently in active development. While there isn't a claimable certification available for this section at the moment, one will be available soon. In the meantime, you're welcome to explore the courses we have created below.",
|
||||
"intro": ["Placeholder intro"],
|
||||
"chapters": {
|
||||
"es-a1-chapter-greetings-and-introductions": "Greetings and Introductions"
|
||||
},
|
||||
"modules": {
|
||||
"es-a1-module-greetings-and-farewells": "Greetings and Farewells"
|
||||
},
|
||||
"module-intros": {
|
||||
"es-a1-module-greetings-and-farewells": {
|
||||
"note": "Coming Winter 2025",
|
||||
"intro": ["PLACEHOLDER: Write the module intro here."]
|
||||
}
|
||||
},
|
||||
"blocks": {
|
||||
"a1-professional-spanish-placeholder-block": {
|
||||
"title": "A1 Professional Spanish Placeholder Block",
|
||||
"intro": ["Placeholder intro text."]
|
||||
"es-a1-warm-up-greetings-and-farewells-basics": {
|
||||
"title": "Greetings and Farewells Basics",
|
||||
"intro": ["Learn the basics of greetings and farewells in Spanish."]
|
||||
},
|
||||
"es-a1-learn-greetings-during-the-day": {
|
||||
"title": "Greetings During the Day",
|
||||
"intro": ["", ""]
|
||||
},
|
||||
"es-a1-practice-greetings-and-farewells": {
|
||||
"title": "Greetings and Farewells Practice",
|
||||
"intro": ["", ""]
|
||||
},
|
||||
"es-a1-review-greetings-and-farewells": {
|
||||
"title": "Greetings and Farewells Review",
|
||||
"intro": ["", ""]
|
||||
},
|
||||
"es-a1-quiz-greetings-and-farewells": {
|
||||
"title": "Greetings and Farewells Quiz",
|
||||
"intro": ["", ""]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
---
|
||||
title: Introduction to the A1 Professional Spanish Placeholder Block
|
||||
block: a1-professional-spanish-placeholder-block
|
||||
superBlock: a1-professional-spanish
|
||||
---
|
||||
|
||||
## Introduction to the A1 Professional Spanish Placeholder Block
|
||||
|
||||
Introduction to the A1 Professional Spanish Placeholder Block
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
title: Introduction to the Greetings During the Day
|
||||
block: es-a1-learn-greetings-during-the-day
|
||||
superBlock: a1-professional-spanish
|
||||
---
|
||||
|
||||
## Introduction to the Greetings During the Day
|
||||
|
||||
This page is for the Greetings During the Day
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
title: Introduction to the Greetings and Farewells Practice
|
||||
block: es-a1-practice-greetings-and-farewells
|
||||
superBlock: a1-professional-spanish
|
||||
---
|
||||
|
||||
## Introduction to the Greetings and Farewells Practice
|
||||
|
||||
This page is for the Greetings and Farewells Practice
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
title: Introduction to the Greetings and Farewells Quiz
|
||||
block: es-a1-quiz-greetings-and-farewells
|
||||
superBlock: a1-professional-spanish
|
||||
---
|
||||
|
||||
## Introduction to the Greetings and Farewells Quiz
|
||||
|
||||
This page is for the Greetings and Farewells Quiz
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
title: Introduction to the Greetings and Farewells Review
|
||||
block: es-a1-review-greetings-and-farewells
|
||||
superBlock: a1-professional-spanish
|
||||
---
|
||||
|
||||
## Introduction to the Greetings and Farewells Review
|
||||
|
||||
This page is for the Greetings and Farewells Review
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
title: Introduction to Greetings and Farewells Basics
|
||||
block: es-a1-warm-up-greetings-and-farewells-basics
|
||||
superBlock: a1-professional-spanish
|
||||
---
|
||||
|
||||
## Introduction to Greetings and Farewells Basics
|
||||
|
||||
Introduction to Greetings and Farewells Basics
|
||||
@@ -9,8 +9,10 @@ import DropDown from '../../../assets/icons/dropdown';
|
||||
// from the curriculum
|
||||
import fullStackCert from '../../../../../curriculum/structure/superblocks/full-stack-developer.json';
|
||||
import fullStackOpen from '../../../../../curriculum/structure/superblocks/full-stack-open.json';
|
||||
import a1Spanish from '../../../../../curriculum/structure/superblocks/a1-professional-spanish.json';
|
||||
|
||||
import { ChapterIcon } from '../../../assets/chapter-icon';
|
||||
import { type Chapter } from '../../../../../shared/config/chapters';
|
||||
import { BlockLayouts, BlockTypes } from '../../../../../shared/config/blocks';
|
||||
import { FsdChapters } from '../../../../../shared/config/chapters';
|
||||
import { type Module } from '../../../../../shared/config/modules';
|
||||
@@ -174,12 +176,16 @@ export const SuperBlockAccordion = ({
|
||||
chosenBlock,
|
||||
completedChallengeIds
|
||||
}: SuperBlockAccordionProps) => {
|
||||
function getSuperblockStructure(superBlock: SuperBlocks) {
|
||||
function getSuperblockStructure(superBlock: SuperBlocks): {
|
||||
chapters: Chapter[];
|
||||
} {
|
||||
switch (superBlock) {
|
||||
case SuperBlocks.FullStackOpen:
|
||||
return fullStackOpen;
|
||||
case SuperBlocks.FullStackDeveloper:
|
||||
return fullStackCert;
|
||||
case SuperBlocks.A1Spanish:
|
||||
return a1Spanish;
|
||||
default:
|
||||
throw new Error("The SuperBlock structure hasn't been imported.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user