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

Fixed responsive of contributor section #164

Merged
merged 2 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions Official_Website/contributor-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ <h1>HelpOps-Hub</h1>

</nav>
<div class="container">
<main class="main-content">
<div class="intro">
<h1>Our Team</h1>
<p>
Expand All @@ -108,7 +107,6 @@ <h1>Our Team</h1>
</div>
<div id="team-grid">
<div class="team-member">
<div class="card1">
<div class="image-div">
<img src="Screenshot (251).png" alt="Azfar Alam" />
</div>
Expand All @@ -117,15 +115,13 @@ <h1>Our Team</h1>
<h2>Azfar Alam</h2>
<p>DevOps Engineer</p>
</div>
</div>
<div id="social-links">
<a href="https://github.com/sponsors/mdazfar2"><i class="fas fa-heart"></i> Sponsor</a>
<a href="https://github.com/mdazfar2"><i class="fab fa-github"></i> GitHub</a>
<a href="https://www.linkedin.com/in/md-azfar-alam/"><i class="fab fa-linkedin"></i>linkedin</a>
</div>
</div>
<div class="team-member">
<div class="card2">
<div class="image-div">
<img src="Screenshot (250).png" alt="Anurag Pandey" />
</div>
Expand All @@ -134,15 +130,13 @@ <h2>Azfar Alam</h2>
<h2>Anurag Pandey</h2>
<p>Software Engineer</p>
</div>
</div>
<div id="social-links">
<a href="https://github.com/sponsors/pandeyji711"><i class="fas fa-heart"></i> Sponsor</a>
<a href="https://github.com/pandeyji711"><i class="fab fa-github"></i> GitHub</a>
<a href="https://www.linkedin.com/in/anuragpandey0711/"><i class="fab fa-linkedin"></i>linkedin</a>
</div>
</div>
</div>
</main>
</div>
<button id="scrollToTopBtn" class="scrollToTopBtn">▲</button>
<div id="team-grid1">
Expand Down
37 changes: 30 additions & 7 deletions Official_Website/contributor-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,24 @@ width: 40px;
.container {
display: flex;
width: 100%;
height: auto;
flex-direction: column;
}

.main-content {
flex: 1;
padding: 20px;
height: auto;
}

.intro {
margin:24px;
width: 100%;
display: flex;
flex-direction: column;
gap: 20px;
margin: 30px;
align-items: center;
justify-content: center;
}

/* .intro h1 {
Expand All @@ -236,14 +245,27 @@ width: 40px;
} */

#team-grid {
margin-left: 2rem;
margin-right: 2rem;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
gap: 5rem;
height: 300px;

display: flex;
flex-direction: row;
justify-content: center;
min-height: 300px;
height: auto;
gap: 30px;
}

@media only screen and (max-width:944px) {
#team-grid{
flex-direction: column;

}
}
@media only screen and (max-width:520px) {
.team-member{
display: flex;
flex-direction: column !important;
}
}
.team-member {
display: flex;
justify-content: space-between;
Expand All @@ -254,6 +276,7 @@ width: 40px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
padding: 20px;
/* background-color: gray; */
gap: 10px;
margin-left: 20px;
background-position: center center;
background-size: cover;
Expand Down
14 changes: 14 additions & 0 deletions Official_Website/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@ p {
margin: 0;
padding: 0;
}
.team-grid{
display: flex;
flex-direction: row;
flex-wrap: wrap !important;
}
.img-div{
width: 40%;

}
.team-member{
display: flex;
flex-direction: row;
position: relative;
}
/* style search container */
#search-container {
display: flex;
Expand Down
Loading