Skip to content

Commit

Permalink
some styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ramory-l committed Jan 6, 2021
1 parent ea13272 commit cf81caf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/searchForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ class SearchForm extends Form {
isSearchForm={true}
onTagsForSearchForm={this.handleTagsForSearchForm}
/>
{this.renderButton("Search")}
{this.renderButton("Search", "btn btn-primary mt-2")}
<button
onClick={() =>
this.handleSort({
path: "distance",
order: this.context.sortBy.order,
})
}
className="btn btn-dark mx-2"
className="btn btn-dark mx-2 mt-2"
>
Sort by distance{" "}
{this.context.sortBy.order === "asc" ? (
Expand All @@ -134,7 +134,7 @@ class SearchForm extends Form {
order: this.context.sortBy.order,
})
}
className="btn btn-secondary mr-2"
className="btn btn-secondary mr-2 mt-2"
>
Sort by rate{" "}
{this.context.sortBy.order === "asc" ? (
Expand All @@ -150,7 +150,7 @@ class SearchForm extends Form {
order: this.context.sortBy.order,
})
}
className="btn btn-success"
className="btn btn-success mt-2"
>
Sort by age{" "}
{this.context.sortBy.order === "asc" ? (
Expand Down
23 changes: 15 additions & 8 deletions frontend/src/components/styles/usersCarousel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
}
}
.carousel-caption {
padding: 0;
line-height: 5px;
right: 0;
bottom: 0;
left: 0;
padding: 0;
background-color: rgba(0, 0, 0, 0.582);
font-family: "Cinzel Decorative", cursive;
h5,
p {
color: white;
Expand All @@ -33,9 +35,11 @@

@media (max-width: 500px) {
.carousel.modified {
width: 100%;
.carousel-inner {
.carousel-caption {
height: 35px;
height: 90px;
bottom: -20px;
h5,
p {
font-size: 7pt;
Expand All @@ -49,17 +53,20 @@
right: 15px;
}
i {
display: flex;
justify-content: center;
align-items: center;
width: 50px;
height: 50px;
background-color: black;
border-radius: 50px;
font-size: 2em;
}
}
}

@media (max-width: 350px) {
@media (max-width: 800px) {
.carousel.modified {
.carousel-inner {
.carousel-caption {
height: 30px;
}
}
width: 100%;
}
}
1 change: 0 additions & 1 deletion frontend/src/components/usersCarousel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const UsersCarousel = ({ users, myData }) => {
[searchContext.sortBy.path],
[searchContext.sortBy.order]
);
console.log(searchContext.sortBy);
setFetchedUsers(sorted);
}, [users, searchContext.sortBy, myData]);

Expand Down

0 comments on commit cf81caf

Please sign in to comment.