Skip to content

Commit

Permalink
fIX team responsive #12²⁴ & Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
AsteroidusTv committed Oct 14, 2024
1 parent 6aae027 commit a2bb321
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 52 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ <h2 class="about-title">À propos</h2>

<section id="team" class="main-section team">
<div class="team-cards">
<div class="member-card first">
<div class="member-card">
<div class="member-top">
<img src="./images/members/aster.png" alt="Photo de Achille Roussel" class="member-photo">
<h3 class="member-name">Achille Roussel</h3>
Expand Down
40 changes: 28 additions & 12 deletions styles/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,24 @@
}
}

@media screen and (max-height: 875px) {
.buy-images-container {
margin-top: -4vh;
}
}

@media screen and (max-height: 825px) {
.buy-images-container {
margin-top: -2vh;
}
}

@media screen and (max-height: 630px) {
.slogan {
font-size: 22px;
}
}

@media screen and (max-width: 425px) {
.main-section {
padding-left: 0;
Expand All @@ -200,23 +218,21 @@
background-color: transparent;
}

@media screen and (max-height: 875px) {
.buy-images-container {
margin-top: -4vh;
}
}

@media screen and (max-height: 825px) {
.buy-images-container {
margin-top: -2vh;
}
}

@media screen and (max-width: 370px) {
.slogan {
font-size: 25px;
}

.buy-button {
font-size: 25px;
}
}

@media screen and (max-height: 630px) {
@media screen and (max-width: 345px) {
.slogan {
font-size: 22px;
font-size: 23px;
}
}

Expand Down
91 changes: 52 additions & 39 deletions styles/team.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
.team {
padding: 0px;
padding: 80px 50px 0px 50px;
}

.team-cards {

display: flex;
padding: 2% 25px 2% 25px;
gap: 300px;
gap: 20px;
display: flex;
justify-content: center;

align-items: center;
}

.member-card {
Expand All @@ -18,7 +17,8 @@
flex-direction: column;
align-items: center;
height: 600px;
flex: 0 0 375px;
min-width: 400px;
max-width: 400px;
color: var(--primary-color);
background-color: var(--secondary-color);
}
Expand Down Expand Up @@ -62,11 +62,11 @@
}

.member-button {
width: calc(100% - 60px);
height: 60px;
border-radius: 40px;
position: absolute;
bottom: 30px;
width: calc(100% - 60px);
height: 60px;
font-size: 30px;
text-align: center;
color: var(--secondary-color);
Expand All @@ -80,71 +80,84 @@
transform: scale(0.95);
}

@media screen and (max-width: 2500px) {
@media screen and (min-width: 2000px) {
.team-cards {
gap: 110px;
gap: 30px;
}
}

@media screen and (max-width: 1870px) {
@media screen and (max-width: 1760px) {
.team-cards {
padding: 0px;
justify-content: left;
overflow: auto;
overflow-x: auto;
}
}

@media screen and (max-height: 850px) {

@media screen and (max-height: 950px) {
.member-card {
height: 62.5vh;
height: 63vh;
}

.member-description {
margin-top: 5.5vh;
margin-top: 4.8vh;
font-size: 23px;
}
}

@media screen and (max-height: 750px) {

.member-card {
transform: scale(0.9);
@media screen and (max-height: 850px) {
.member-description {
margin-top: 5.4vh;
font-size: 20px;
}
}

@media screen and (max-height: 700px) {
.team-cards {
gap: 50px;

.member-button {
font-size: 25px;
}
}

@media screen and (max-width: 500px) {

.member-card {
flex-basis: calc(100vw - 75px);
margin-left: -10vw;
@media screen and (max-height: 780px) {
.member-description {
margin-top: 4.8vh;
}

.member-card.first {
margin-left: 0px;
.member-button {
height: 50px;
}
}

@media screen and (max-width: 450px) {
@media screen and (max-height: 650px) {
.member-top {
height: 50%;
}

.member-description {
font-size: 22px;
margin-top: 6vh;
font-size: 18px;
}
}

@media screen and (max-width: 375px) {
@media screen and (max-width: 500px) {
.team {
padding: 80px 30px 0px 30px;
}

.team-cards {
gap: 3vw;
}

.member-card {
flex-basis: calc(100vw - 60px);
min-width: 78vw;
}
}

.member-name {
font-size: 16px;
@media screen and (max-width: 362px) {
.member-top {
height: 50%;
}

.member-description {
margin-top: 4.6vh;
font-size: 20px;
}
}
Expand Down

0 comments on commit a2bb321

Please sign in to comment.