-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
layout refactor, pop up, error handling
- Loading branch information
1 parent
796297f
commit 04b3c84
Showing
7 changed files
with
170 additions
and
83 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,12 @@ | ||
import clsx from 'clsx'; | ||
import styles from '../pages/playground.module.css'; | ||
|
||
const CodeInputArea = ({ onChange }) => ( | ||
<textarea | ||
className={clsx(styles.codeArea)} | ||
name="inputArea" | ||
placeholder="Enter your code to try it out" | ||
onChange={onChange} | ||
/> | ||
); | ||
export default CodeInputArea; |
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,18 @@ | ||
const ImageDisplay = ({ imageUrl }) => ( | ||
<div> | ||
{imageUrl ? ( | ||
<img | ||
src={imageUrl} | ||
style={{ | ||
objectFit: 'contain', | ||
height: '100%', | ||
width: '100%', | ||
}} | ||
/> | ||
) : ( | ||
<div></div> | ||
)} | ||
</div> | ||
); | ||
|
||
export default ImageDisplay; |
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,32 @@ | ||
const Options = ({ onSubmit }) => ( | ||
<div className="bottom-right-component"> | ||
<div className="row"> | ||
<div className="col">Resolution:</div> | ||
<div className="col"> | ||
<select> | ||
<option value="someOption">Some option</option> | ||
<option value="otherOption">Other option</option> | ||
</select> | ||
</div> | ||
<div className="col"> | ||
<select> | ||
<option value="someOption">Some option</option> | ||
<option value="otherOption">Other option</option> | ||
</select> | ||
</div> | ||
<div className="col"> | ||
<select> | ||
<option value="someOption">Some option</option> | ||
<option value="otherOption">Other option</option> | ||
</select> | ||
</div> | ||
<div className="col"> | ||
<button className="button button--outline button--primary" onClick={onSubmit}> | ||
Submit | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
|
||
export default Options; |
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