-
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.
updated font files and removed Navigation componetn in Appjs since it…
… is empty, functional and renders on screen
- Loading branch information
1 parent
19099be
commit 2123e26
Showing
20 changed files
with
101 additions
and
29 deletions.
There are no files selected for viewing
Binary file not shown.
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
Binary file not shown.
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// Place all the styles related to the Managers controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: https://sass-lang.com/ | ||
|
Binary file not shown.
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,20 @@ | ||
import React from 'react'; | ||
import { Jumbotron, Button } from 'reactstrap'; | ||
import '../packs/application' | ||
const Header = (props) => { | ||
return ( | ||
<div> | ||
<Jumbotron> | ||
<h1 className="display-3">Hello, world!</h1> | ||
<p className="lead">This is a simple hero unit, a simple Jumbotron-style component for calling extra attention to featured content or information.</p> | ||
<hr className="my-2" /> | ||
<p>It uses utility classes for typography and spacing to space content out within the larger container.</p> | ||
<p className="lead"> | ||
<Button color="primary">Learn More</Button> | ||
</p> | ||
</Jumbotron> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Header; |
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 |
---|---|---|
@@ -1,22 +1,28 @@ | ||
import React from 'react' | ||
import { ListGroup } from 'reactstrap' | ||
import { ListGroup, Button, Card, CardImg, CardText, CardBody, CardTitle, CardSubtitle } from "reactstrap"; | ||
|
||
const ApartmentList = (props) => { | ||
const { apartments } = props | ||
return( | ||
apartments.map((apartment, index) => { | ||
return( | ||
<ListGroup key={ index }> | ||
<h4>{ apartment.image }</h4> | ||
<h4>{ apartment.address }</h4> | ||
<h4>{ apartment.city }, { apartment.state } { apartment.zip_code }, { apartment.country }</h4> | ||
<h4>Bedrooms: { apartment.bedrooms }</h4> | ||
<h4>Bathrooms: { apartment.bathrooms }</h4> | ||
<h4>Monthly Rent: { apartment.monthly_rent }</h4> | ||
<h4>Manager: { apartment.manager_id }</h4> | ||
</ListGroup> | ||
) | ||
}) | ||
) | ||
return ( | ||
<React.Fragment> | ||
{ apartments.map((apartment, index) => { | ||
return ( | ||
<div key={index}> | ||
<Card className="card" body inverse style={{ backgroundColor: '#fff', borderColor: '#333' }}> | ||
<ListGroup key={index}> | ||
<CardImg top width="100%" margin="0" padding="0" src={ apartment.image } alt="Card image cap" /> | ||
<CardBody> | ||
<CardTitle>{apartment.address}</CardTitle> | ||
<CardSubtitle>{apartment.city}, {apartment.state}</CardSubtitle> | ||
<CardText>{apartment.manager_id}</CardText> | ||
<Button href="/" color="info">More Info</Button> | ||
</CardBody> | ||
</ListGroup> | ||
</Card> | ||
</div> | ||
); | ||
})} | ||
</React.Fragment> | ||
); | ||
} | ||
export default ApartmentList |
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
Binary file not shown.
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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
const { environment } = require('@rails/webpacker') | ||
const webpack = require("webpack") | ||
|
||
environment.plugins.append("Provide", new webpack.ProvidePlugin({ | ||
$: 'jquery', | ||
jQuery: 'jquery', | ||
Popper: ['popper.js', 'default'] | ||
})) | ||
module.exports = environment |
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,10 @@ | ||
const { environment } = require('@rails/webpacker') | ||
const webpack = require("webpack") | ||
|
||
environment.plugins.append("Provide", new webpack.ProvidePlugin({ | ||
$: 'jquery', | ||
jQuery: 'jquery', | ||
Popper: ['popper.js', 'default'] | ||
})) | ||
module.exports = environment | ||
|
Binary file not shown.
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
Binary file not shown.
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