-
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.
Refactor WritePage into its own component
- Loading branch information
Showing
4 changed files
with
75 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React, { Component } from 'react'; | ||
import './css/EntryCard.css'; | ||
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 EntryCard extends Component { | ||
render() { | ||
return ( | ||
<Card style={{ width: '18rem' }}> | ||
<Card.Body> | ||
<Card.Title>Card Title</Card.Title> | ||
<Card.Subtitle className="mb-2 text-muted">Card Subtitle</Card.Subtitle> | ||
<Card.Text> | ||
Some quick example text to build on the card title and make up the bulk of | ||
the card's content. | ||
</Card.Text> | ||
</Card.Body> | ||
</Card> | ||
); | ||
} | ||
} | ||
|
||
export default EntryCard; |
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,31 @@ | ||
import React, { Component } from 'react'; | ||
import './css/MainContainer.css'; | ||
import { Button } from 'react-bootstrap'; | ||
import { Form } from 'react-bootstrap'; | ||
import { Col } from 'react-bootstrap'; | ||
import { Row } from 'react-bootstrap'; | ||
|
||
class WritePage extends Component { | ||
|
||
render() { | ||
return ( | ||
<Form className='WritePage'> | ||
<Form.Group controlId="exampleForm.ControlInput1"> | ||
<Row> | ||
<Col sm={10}> | ||
<Form.Control placeholder="Title" className="light-transparency" /> | ||
</Col> | ||
<Col sm={2}> | ||
<Button variant="primary">Save Entry</Button> | ||
</Col> | ||
</Row> | ||
</Form.Group> | ||
<Form.Group controlId="exampleForm.ControlTextarea1"> | ||
<Form.Control as="textarea" rows="13" placeholder="Write Here!" className="light-transparency" /> | ||
</Form.Group> | ||
</Form> | ||
); | ||
} | ||
} | ||
|
||
export default WritePage; |