Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Commit

Permalink
Merge branch 'feat/add-mentors-list-grid' into feat/add-mentors-list
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurFerrao committed Oct 13, 2019
2 parents ff973e5 + 5ac89c1 commit 68b109f
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/components/commons/header/Header.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2);
display: flex;
justify-content: center;
z-index: 1;
}

/* Class used to keep the header at the top of the page even when it is rolled */
Expand Down
47 changes: 41 additions & 6 deletions src/components/mentors/Mentor.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,46 @@
.mentor-grid {
display: grid;
width: 100%;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
.mentor-grid {
grid-template-columns: 1fr;
}
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
.mentor-grid {
grid-template-columns: repeat(2, 1fr);
}
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
.mentor-grid {
grid-template-columns: repeat(2, 1fr);
}
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
.mentor-grid {
grid-template-columns: repeat(4, 1fr);
}
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
.mentor-grid {
grid-template-columns: repeat(4, 1fr);
}
}

.img-mentor {
border-radius: 100%;
width: 200px;
width: 100%;
filter: grayscale(100%);
transition: all 0.7s ease;
}
Expand Down Expand Up @@ -54,8 +94,3 @@
visibility: visible;
opacity: 1;
}

.mentors {
display: flex;
flex-wrap: wrap;
}
2 changes: 1 addition & 1 deletion src/components/mentors/MentorGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const renderMentors = (mentorsList: Mentor[]) => {
};

const MentorGrid = () => (
<ul className="mentors">{renderMentors(getMentors())}</ul>
<div className="mentor-grid">{renderMentors(getMentors())}</div>
);

export default MentorGrid;

0 comments on commit 68b109f

Please sign in to comment.