Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ogechi #29

Merged
merged 1 commit into from May 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 23 additions & 0 deletions client/src/App.css
Expand Up @@ -2,6 +2,7 @@ body{
/* text-align: center; */
/* background-color: black; */
background-image: url("../src/images/background3.gif");
background-size: cover;
/* background-repeat: no-repeat; */

}
Expand Down Expand Up @@ -38,6 +39,28 @@ body{
padding-top: 40px;
}

.review-list__img{
float: left;
height: 250px;
width: 250px;
overflow: hidden;
object-fit: cover;
border-radius: 50%;
padding-top: 10px;
}

.review-list__text{
float: right;
}

.review__list__item{
clear: both;
margin-bottom: 40px;
margin-top: 40px;
border: 1px solid #282c34;
padding: 15px;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
Expand Down
33 changes: 18 additions & 15 deletions client/src/components/ReviewList/ReviewListItem.js
Expand Up @@ -6,23 +6,26 @@ function ReviewListItem(props) {
console.log(props.data.img);
return (
<Fragment>
<div className="col l2"></div>
<div className="col l8 s12">
<div className="col l4 s12">
<img src={props.data.img} alt={props.data.displayName}/>
</div>
<div className="col l8 s12">
<h2>{props.data.displayName}</h2>
<h5>Country: {props.data.country}</h5>
<h5>Program: {props.data.program}
</h5>
<h5>Organizer: {props.data.tripOrg}</h5>
<h5>Rating:
<Rating maxRating={5} disabled="true" rating={props.data.rating}/></h5>
<a className="btn" href={`/review/${props.data._id}`}>View Review</a>
<div className="row">
<div className="col l10 s12 review__list__item">
<img
className="review-list__img"
src={props.data.img}
alt={props.data.displayName}/>

<div className="review-list__text">
<h2>{props.data.displayName}</h2>
<h5>Country: {props.data.country}</h5>
<h5>Program: {props.data.program}
</h5>
<h5>Organizer: {props.data.tripOrg}</h5>
<h5>Rating:
<Rating maxRating={5} disabled="true" rating={props.data.rating}/></h5>
<a className="btn" href={`/review/${props.data._id}`}>View Review</a>
</div>
</div>
</div>
<div className="col l2"></div>

</Fragment>
)
}
Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/ReviewList.js
Expand Up @@ -24,13 +24,13 @@ class ReviewList extends Component {
console.log(this.state);
return (
<Fragment>
<div className="container">
<main className="container">
{this
.state
.reviews
.map(((listItem, i) => (<ReviewListItem data ={listItem} key={i}/>)))}

</div>
</main>
</Fragment>
)
}
Expand Down