-
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.
video upload done & add tag react component with code && add css && i…
…mprove backend for receiving data from server
- Loading branch information
1 parent
95cc314
commit 900d5f9
Showing
26 changed files
with
1,014 additions
and
101 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
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
Empty file.
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,27 @@ | ||
/* ---- Comments ----- */ | ||
|
||
.comments-wrapper{ | ||
position: relative; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.comments-wrapper .comment{ | ||
background-color: #FDEFEF; | ||
border-radius: 10px; | ||
padding: 10px; | ||
} | ||
|
||
.comments-wrapper .comment h4{ | ||
font-size: 14px; | ||
color: rgba(0, 0, 0, 0.37); | ||
} | ||
.comments-wrapper .comment p{ | ||
font-size: 13px; | ||
color: rgba(0, 0, 0, 0.603); | ||
display: inline; | ||
} | ||
.comments-wrapper .comment h5{ | ||
color: #0000ff79; | ||
display: inline; | ||
margin-right: 3px; | ||
} |
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,21 @@ | ||
import React from 'react'; | ||
import './Comments.css'; | ||
|
||
class Comments extends React.Component { | ||
render() { | ||
return ( | ||
<div className="comments-wrapper"> | ||
{this.props.comments.map((comment, index) => { | ||
return ( | ||
<div key={index} className="comment"> | ||
<h4>@{comment.author_id}</h4> | ||
<h5>@{comment.to_id}</h5><p>{comment.question}</p> | ||
</div> | ||
) | ||
})} | ||
</div> | ||
) | ||
} | ||
}; | ||
|
||
export default Comments; |
Oops, something went wrong.