Skip to content

Commit

Permalink
Create simple level text changes for each level
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjnaT41756 committed Jan 26, 2024
1 parent cf65fc9 commit c0d4cd1
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/components/shared/LessonSide/LessonSide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,26 @@ import Footer from './Footer';
import LessonText from './LessonText';
import LevelSelector from './LevelSelector';
import Turtle from './Turtle';
import * as LessonSideContent from './LessonSideContent.JSON'

const exArray: { id: string; text: string }[] = [
{ id: 'lesson-side-header', text: 'Positioning of Computers' },
{
id: 'lesson-side-body',
text: 'In order to tell computers where to move the cursor, we have to use the coordinate system. The coordinate system is a grid with lots of small chunks, called units. To figure out where to move, the cursor uses its starting point at the center of the grid and counts out some number of units. For example, the point (2, 1) would be two units RIGHT and one unit UP from the center.',
},
{
id: 'lesson-side-body',
text: 'When looking at these numbers, remember that the number to move sideways comes first. A positive number means you move right, and a negative number means you move left. And when moving up and down with the second number, a positive number means you move up and a negative means down.',
},
];
// const exArray: { id: string; text: string }[] = [
// { id: 'lesson-side-header', text: 'Positioning of Computers' },
// {
// id: 'lesson-side-body',
// text: 'In order to tell computers where to move the cursor, we have to use the coordinate system. The coordinate system is a grid with lots of small chunks, called units. To figure out where to move, the cursor uses its starting point at the center of the grid and counts out some number of units. For example, the point (2, 1) would be two units RIGHT and one unit UP from the center.',
// },
// {
// id: 'lesson-side-body',
// text: 'When looking at these numbers, remember that the number to move sideways comes first. A positive number means you move right, and a negative number means you move left. And when moving up and down with the second number, a positive number means you move up and a negative means down.',
// },
// ];

interface lessonSideProps {
levelNum: number;
}

function LessonSide({ levelNum }: lessonSideProps): JSX.Element {
const lesson_info = LessonSideContent[levelNum] || [];
return (
<section id="lesson-side-container">
<div>
Expand All @@ -33,7 +35,7 @@ function LessonSide({ levelNum }: lessonSideProps): JSX.Element {
/>
<div id="turtle-logo-text">Pen Pals</div>
</div>
<LessonText text_array={exArray} />
<LessonText text_array={lesson_info} />
</div>
<div>
<Turtle turtleID="your-genius" />
Expand Down

0 comments on commit c0d4cd1

Please sign in to comment.