Skip to content

Commit

Permalink
Add background gradient and make MainContainer transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-tran committed Jan 20, 2019
1 parent c7b7094 commit 0da9e81
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
14 changes: 11 additions & 3 deletions feelsbook/feelsbook/src/components/MainContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { Card } from 'react-bootstrap';
import { Nav } from 'react-bootstrap';
import { Button } from 'react-bootstrap';
import { Form } from 'react-bootstrap';
import { Col } from 'react-bootstrap';
import { Row } from 'react-bootstrap';

class MainContainer extends Component {
render() {
Expand All @@ -25,13 +27,19 @@ class MainContainer extends Component {
<Card.Body>
<Form>
<Form.Group controlId="exampleForm.ControlInput1">
<Form.Control placeholder="Title" />
<Row>
<Col sm={10}>
<Form.Control placeholder="Title" />
</Col>
<Col sm={2}>
<Button variant="primary">Save Entry</Button>
</Col>
</Row>
</Form.Group>
<Form.Group controlId="exampleForm.ControlTextarea1">
<Form.Control as="textarea" rows="20" placeholder="Write Here!"/>
<Form.Control as="textarea" rows="10" placeholder="Write Here!"/>
</Form.Group>
</Form>
<Button variant="primary">Save Entry</Button>
</Card.Body>
</Card>
);
Expand Down
8 changes: 5 additions & 3 deletions feelsbook/feelsbook/src/components/css/MainContainer.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.MainContainer {
background-color: #ffe49b;
/* background-color: #ffe49b; */
background-color: transparent;
margin: 1rem;
height: 700px;
width: 80%;
height: 500px;
width: 70%;
margin: auto;
}
4 changes: 3 additions & 1 deletion feelsbook/feelsbook/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ body {
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: #5d626d;
background: #f2709c; /* fallback for old browsers */
background: -webkit-linear-gradient(to left, #ff9472, #f2709c); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to left, #ff9472, #f2709c); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

code {
Expand Down

0 comments on commit 0da9e81

Please sign in to comment.