generated from uclaacm/teach-la-ts-react-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* finished lesson 7 * finished lesson 7 and slides * finished lesson 7 scss * changed global types so previous page and next page would be correct * added lesson 7 header
- Loading branch information
Showing
11 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { FC } from 'react'; | ||
import lesson7array from '../../public/lesson7array.png'; | ||
import Slide1lesson7 from '../../public/Slide1lesson7.png'; | ||
import Slide2lesson7 from '../../public/Slide2lesson7.png'; | ||
import Slide3lesson7 from '../../public/Slide3lesson7.png'; | ||
import Slide4lesson7 from '../../public/Slide4lesson7.png'; | ||
import Slide5lesson7 from '../../public/Slide5lesson7.png'; | ||
import Slide6lesson7 from '../../public/Slide6lesson7.png'; | ||
import AppWrapper from '../components/AppWrapper'; | ||
import NavButtons from '../components/NavButtons'; | ||
import SlideShow from '../components/SlideShow'; | ||
import { HeaderSections } from '../types/globalTypes'; | ||
import '../styles/PageWrapper.scss'; | ||
import '../styles/Lesson7.scss'; | ||
|
||
const Lesson7: FC = () => { | ||
const imageArray = []; | ||
|
||
imageArray.push(<img src={Slide1lesson7} className="lesson7slides" />); | ||
imageArray.push(<img src={Slide2lesson7} className="lesson7slides" />); | ||
imageArray.push(<img src={Slide3lesson7} className="lesson7slides" />); | ||
imageArray.push(<img src={Slide4lesson7} className="lesson7slides" />); | ||
imageArray.push(<img src={Slide5lesson7} className="lesson7slides" />); | ||
imageArray.push(<img src={Slide6lesson7} className="lesson7slides" />); | ||
|
||
return ( | ||
<div> | ||
<AppWrapper section={HeaderSections.LESSON_7}> | ||
<div className="page-wrapper"> | ||
<h1>Arrays and Pointer Arithmetic</h1> | ||
<p> | ||
<b>Array:</b> a line of boxes that are the same size | ||
</p> | ||
<div className="diagram"> | ||
<img src={lesson7array} className="pipi"></img> | ||
</div> | ||
<p> | ||
Let's talk about arrays, since they are helpful for | ||
understanding pointer arithmetic! Arrays are typically used to | ||
represent multiple values of the same type in one data structure. In | ||
memory, arrays are represented by just having values set | ||
contiguously in memory. This means that we can simply add to our | ||
pointer to move the pointer to. | ||
</p> | ||
<SlideShow images={imageArray} /> | ||
<NavButtons page={10} /> | ||
</div> | ||
</AppWrapper> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Lesson7; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@import './global'; | ||
|
||
// lesson7slides | ||
// ======================================= | ||
|
||
.lesson7slides { | ||
width: 55%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters