Skip to content

Commit

Permalink
modified
Browse files Browse the repository at this point in the history
  • Loading branch information
yung-coder committed Aug 15, 2022
1 parent 37f05d6 commit 6ab8a61
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
9 changes: 6 additions & 3 deletions src/plays/code-editor/CodeEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,21 @@ function CodeEditor(props) {
{/* Your Code Starts Here */}
<div className="code-editor-tab-button-container">
<Button
backgroundColor={activeButton === "html" ? "blue" : ""}
backgroundColor={activeButton === "html" ? "#98AFC7" : ""}
title="HTML"
onClick={() => {
onTabClick("html");
}}
/>
<Button
backgroundColor={activeButton === "css" ? "blue" : ""}
backgroundColor={activeButton === "css" ? "#98AFC7" : ""}
title="CSS"
onClick={() => {
onTabClick("css");
}}
/>
<Button
backgroundColor={activeButton === "js" ? "blue" : ""}
backgroundColor={activeButton === "js" ? "#98AFC7" : ""}
title="JavaScript"
onClick={() => {
onTabClick("js");
Expand Down Expand Up @@ -87,6 +87,9 @@ function CodeEditor(props) {
/>
)}
</div>
<div className="code-editor-heading-output">
<h1>Output</h1>
</div>
<div className="code-editor-bottom-pane">
<iframe
id="my_iframe"
Expand Down
2 changes: 0 additions & 2 deletions src/plays/code-editor/Editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ const Editor = ({ language, value, setEditorState }) => {
mode: language,
lineNumbers: true,
theme: theme,
autoCloseTags: true,
autoCloseBrackets: true,
}}
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/plays/code-editor/Readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Code editor

It is a code editor for html css and javascript it is like a clone of codepen !
It is a code editor for html ,css and js inspired from codepen made using codemirror and react-codemirror2 for writing and executing the code at same time !

## Play Demographic

Expand Down
16 changes: 16 additions & 0 deletions src/plays/code-editor/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
font-family: sans-serif;
font-size: larger;
font-weight: 200px;
color: black;
}
.code-editor-dropdown label{
font-size: larger;
Expand Down Expand Up @@ -48,6 +49,21 @@
.code-editor-bottom-pane{
height: 50vh;
display: flex;
margin-top: 20px;
border: 5px solid rgb(36, 129, 99);
border: 5px solid rgb(0, 255, 0);
}
.code-editor-bottom-pane:hover{
border: 5px solid rgb(36, 129, 99);
}
.code-editor-heading-output{
background-color: rgb(0, 0, 0);
display: flex;
justify-content: center;
align-items: center;
font-size:x-large;
color: white;
margin-top: 10px;
}
@media (max-width: 764px){
.code-editor-tab-button-container{
Expand Down

0 comments on commit 6ab8a61

Please sign in to comment.