Created
February 13, 2017 15:13
-
-
Save aa2kb/2e70406120f788ae38ca52af120cde3f to your computer and use it in GitHub Desktop.
react-Commenting-System
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
.App { | |
text-align: center; | |
} | |
.App-logo { | |
animation: App-logo-spin infinite 20s linear; | |
height: 80px; | |
} | |
.App-header { | |
background-color: #222; | |
height: 150px; | |
padding: 20px; | |
color: white; | |
} | |
.App-intro { | |
font-size: large; | |
} | |
@keyframes App-logo-spin { | |
from { transform: rotate(0deg); } | |
to { transform: rotate(360deg); } | |
} | |
form { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
-webkit-border-radius: 10px; | |
-moz-border-radius: 10px; | |
border-radius: 10px; | |
-webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); | |
-moz-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); | |
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); | |
display: block; | |
width: 75%; | |
margin: 60px auto 0 auto; | |
padding: 1em; | |
background: #ecf2f0; | |
} | |
form #comment { | |
display: block; | |
height: 100px; | |
width: 75%; | |
margin-left: auto; | |
margin-right: auto; | |
margin-top: 2em; | |
margin-bottom: 2em; | |
} | |
form label { | |
margin: 0 0 20px 0; | |
} | |
form #limit { | |
margin: 0 0 10px 0; | |
} | |
form #submit { | |
display: block; | |
width: 50%; | |
margin: auto; | |
} | |
.btn-success { | |
color: #fff; | |
background-color: #5cb85c; | |
border-color: #4cae4c; | |
} | |
buttons.less:13 | |
.btn { | |
display: inline-block; | |
padding: 6px 12px; | |
margin-bottom: 0; | |
font-size: 14px; | |
font-weight: 400; | |
line-height: 1.42857143; | |
text-align: center; | |
white-space: nowrap; | |
vertical-align: middle; | |
-ms-touch-action: manipulation; | |
touch-action: manipulation; | |
cursor: pointer; | |
-webkit-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
background-image: none; | |
border: 1px solid transparent; | |
border-radius: 4px; | |
} |
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
import React, { Component } from 'react'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
class App extends Component { | |
render() { | |
return ( | |
<CommentingSystem/> | |
); | |
} | |
} | |
class CommentingSystem extends Component { | |
render() { | |
return ( | |
<div className="App"> | |
<div className="App-header"> | |
<img src={logo} className="App-logo" alt="logo" /> | |
<h2>Welcome to React</h2> | |
</div> | |
<form role="form"> | |
<div className="form-group"> | |
<label>Add your comment here</label> | |
<textarea className="form-control" id="comment" name="comment"></textarea> | |
<input className='btn btn-lg btn-success' name="submit" type="submit" id="submit" value="Submit" /> | |
</div> | |
</form> | |
</div> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
efwefwef