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.
- Loading branch information
1 parent
4551adb
commit e609705
Showing
6 changed files
with
205 additions
and
46 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -156,4 +156,6 @@ GraphProps): JSX.Element { | |
); | ||
} | ||
|
||
|
||
|
||
export default GraphExercise; |
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 { useState } from 'react'; | ||
import '../../../styles/Exercises/GraphInput.scss'; | ||
|
||
interface GraphInput { | ||
questionLabels: string[][]; | ||
answers: number[][]; | ||
nextExercise: () => void; | ||
} | ||
function GraphInput(): JSX.Element { | ||
return ( | ||
<div id="unitcircle-container"> | ||
<div id="unitcircle-prompt-question "> | ||
Type the correct numbers into the blanks below! | ||
<p></p> | ||
</div> | ||
|
||
<div className="unitcircle-question-container"> | ||
<div className="unitcircle-check-question"> | ||
{' '} | ||
<i>A</i> = left | ||
<input | ||
type="text" | ||
className="unitcircle-check-box" | ||
//onChange={handleChange} | ||
//value={inputText[id]} | ||
/> | ||
</div> | ||
<div className="unitcircle-check-question"> | ||
{' '} | ||
<i>B</i> = left | ||
<input | ||
type="text" | ||
className="unitcircle-check-box" | ||
//onChange={handleChange} | ||
//value={inputText[id]} | ||
/> | ||
</div> | ||
<div className="unitcircle-check-question"> | ||
{' '} | ||
<i>C</i> = left | ||
<input | ||
type="text" | ||
className="unitcircle-check-box" | ||
//onChange={handleChange} | ||
//value={inputText[id]} | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
export default GraphInput; | ||
|
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,105 @@ | ||
@use '../_colors.scss' as colors; | ||
@use '../_vars.scss' as vars; | ||
|
||
@mixin font-styles { | ||
font-family: Quattrocento Sans, sans-serif; | ||
font-size: calc(16px + 1vw); | ||
font-style: normal; | ||
font-weight: bold; | ||
} | ||
|
||
#unitcircle-container { | ||
display: flex; | ||
flex-direction: column; | ||
font-family: 'Quattrocento Sans', sans-serif; | ||
font-size: calc(16px + 1vw); | ||
font-style: normal; | ||
font-weight: bold; | ||
//padding-bottom: 20%; | ||
} | ||
|
||
#unitcircle-question-container { | ||
align-items: baseline; | ||
//display: flex; | ||
//flex-direction: column; | ||
//font-family: 'Quattrocento Sans', sans-serif; | ||
text-align: left; | ||
} | ||
|
||
#unitcircle-prompt-question { | ||
align-self: start; | ||
//display: flx; | ||
//flex-direction: column; | ||
//font-family: 'Quattrocento Sans', sans-serif; | ||
text-align: left; | ||
//padding-bottom: 50px; | ||
} | ||
|
||
.unitcircle-question-box { | ||
//display: flex; | ||
//flex-direction: column; | ||
} | ||
|
||
/*#unitcircle-question-container { | ||
align-items: baseline; | ||
display: flex; | ||
flex-direction: column; | ||
margin-bottom: -15px; | ||
margin-top: -15px; | ||
padding-left: 20%; | ||
}*/ | ||
|
||
.unitcircle-check-question { | ||
@include font-styles(); | ||
font-style: normal; | ||
margin-bottom: 2vh; | ||
padding-left: 20%; | ||
text-align: left; | ||
} | ||
|
||
.unitcircle-check-box { | ||
background: linear-gradient(#000, #000) center bottom 0 / calc(100% - 10px) | ||
2px no-repeat; | ||
background-color: colors.$bg-white; | ||
border: 0; | ||
font-family: Cascadia Code, sans-serif; | ||
font-size: calc(16px + 1vw); | ||
height: 18pt; | ||
margin-left: 2vh; | ||
size: 64pt; | ||
text-align: center; | ||
width: calc(1.5 * (16px + 1vw)); | ||
} | ||
|
||
.unitcircle-check-box:focus { | ||
background-color: colors.$input-grey; | ||
} | ||
|
||
/*#unitcircle-check-button { | ||
@include font-styles(); | ||
background-color: colors.$primary-green; | ||
border: hidden; | ||
border-radius: 10px; | ||
color: colors.$text-white; | ||
padding: 1.25vw 2.5vw; | ||
} | ||
#unitcircle-check-wrong { | ||
@include font-styles(); | ||
color: red; | ||
} | ||
.unitcircle-wrong-box { | ||
align-self: center; | ||
} | ||
.unitcircle-check-button-container { | ||
align-self: center; | ||
}*/ | ||
|
||
.instruction { | ||
@include font-styles(); | ||
margin: 0; | ||
padding-left: 10%; | ||
text-align: left; | ||
} |
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