added comments

This commit is contained in:
Yusuf İpek
2021-01-25 15:06:38 +03:00
parent c5d5f1ae46
commit d5b70dad81
6 changed files with 13 additions and 10 deletions
+1 -6
View File
@@ -3,12 +3,7 @@ import "bootstrap/dist/css/bootstrap.min.css";
export const QuoteButton = (props) => {
return (
<Button
variant={props.variant}
href={props.href}
target={props.target}
onClick={props.click}
>
<Button variant={props.variant} target={props.target} onClick={props.click}>
{props.text}
</Button>
);
@@ -10,7 +10,6 @@
color: white;
width: 800px;
height: 400px;
// background-color: #0077b6;
border: 1px solid grey;
border-radius: 5px;
padding: 10px;
@@ -23,13 +22,13 @@
}
#new-quote {
margin-top: 80px;
margin-top: 100px;
float: right;
}
#tweet {
float: right;
margin-top: 80px;
margin-top: 100px;
margin-right: 15px;
}
+3
View File
@@ -9,7 +9,9 @@ class QuoteBox extends React.Component {
quotes: null,
displayQuote: null,
displayAuthor: null,
// color for the box
color: ["#264653", "#2a9d8f", "#e76f51", "#e63946", "#bc6c25"],
// color for the app.js body
backGroundApp: [
"#ffadad",
"#ffd6a5",
@@ -43,6 +45,7 @@ class QuoteBox extends React.Component {
});
}
//changing the quotes and author also sending a bg to app.js
handleChange = () => {
const randomNum = this.random();
this.setState({