-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
10 changed files
with
378 additions
and
3 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
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,49 @@ | ||
import React from 'react'; | ||
import Editor from './EditorComponent'; | ||
import './create-article.scss'; | ||
|
||
const CreateArticleComponent = () => { | ||
return ( | ||
<div className="create-wrapper"> | ||
<div className="create-container"> | ||
<div className="content-container"> | ||
<div className="create-author-details"> | ||
<div className="author-photo" /> | ||
<div className="create-author-name"> | ||
<div className="create-auth-name">Tom Henkins</div> | ||
</div> | ||
</div> | ||
<div className="create-form"> | ||
<form className="article-form"> | ||
<input type="text" placeholder="Title" /> | ||
<select | ||
name="category" | ||
defaultValue="" | ||
className="browser-default" | ||
required | ||
> | ||
<option value="" disabled> | ||
Select Category | ||
</option> | ||
<option value="mathematics">Mathematics</option> | ||
<option value="arts">Arts</option> | ||
<option value="science">Science</option> | ||
<option value="engineering">Engineering</option> | ||
<option value="technology">Technology</option> | ||
</select> | ||
<input type="text" placeholder="Description" /> | ||
<div className="create-article-text"> | ||
<Editor /> | ||
</div> | ||
<div className="create-article-button"> | ||
<button type="submit">POST</button> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default CreateArticleComponent; |
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 React from 'react'; | ||
import CreateArticleComponent from './CreateArticleComponent'; | ||
|
||
const CreateArticleContainer = () => { | ||
return <CreateArticleComponent />; | ||
}; | ||
|
||
export default CreateArticleContainer; |
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 @@ | ||
import React from 'react'; | ||
import TinyMCE from 'react-tinymce'; | ||
|
||
const Editor = () => { | ||
return ( | ||
<TinyMCE | ||
placeholder="<p>This is the initial content of the editor</p>" | ||
config={{ | ||
plugins: 'autolink link image lists print preview', | ||
toolbar: 'undo redo | bold italic | alignleft aligncenter alignright', | ||
width: '100%', | ||
height: '30%', | ||
}} | ||
/> | ||
); | ||
}; | ||
|
||
export default Editor; |
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
Oops, something went wrong.