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.
42 feature create a unit circle input module (#57)
* unit circle input mostly done #42 * unit circle inpu t mostly done #42 * unit circle inpu t mostly done #42 * fixed some formatting * Fixed exercise order #42 --------- Co-authored-by: Skylar Tanartkit <[email protected]> Co-authored-by: sltanartkit <[email protected]>
- Loading branch information
1 parent
5805da4
commit 9500ea6
Showing
5 changed files
with
391 additions
and
245 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
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,44 @@ | ||
//import { useState } from 'react'; | ||
import '../../../styles/Exercises/UnitCircleInput.scss'; | ||
|
||
function UnitCircleInput(): JSX.Element { | ||
return ( | ||
<div id="unitcircle-question-container"> | ||
<div id="unitcircle-check-question"> | ||
Type the correct numbers into the blanks below! | ||
</div> | ||
|
||
<div id="unitcircle-check-question"> | ||
{' '} | ||
<i>A</i> = left | ||
<input | ||
type="text" | ||
className="unitcircle-check-box" | ||
//onChange={handleChange} | ||
//value={inputText[id]} | ||
/> | ||
<p> | ||
{' '} | ||
<i>B</i> = right | ||
<input | ||
type="text" | ||
className="unitcircle-check-box" | ||
//onChange={handleChange} | ||
//value={inputText[id]} | ||
/> | ||
</p> | ||
<p> | ||
{' '} | ||
<i>C</i> = right | ||
<input | ||
type="text" | ||
className="unitcircle-check-box" | ||
//onChange={handleChange} | ||
//value={inputText[id]} | ||
/> | ||
</p> | ||
</div> | ||
</div> | ||
); | ||
} | ||
export default UnitCircleInput; |
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,84 @@ | ||
@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-question-container { | ||
align-items: center; | ||
display: flex; | ||
flex-direction: column; | ||
font-family: 'PT Sans', sans-serif; | ||
text-align: left; | ||
} | ||
|
||
.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; | ||
} | ||
|
||
.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; | ||
} |
Oops, something went wrong.