Skip to content

Commit

Permalink
Adds media query
Browse files Browse the repository at this point in the history
Make portfolio mobile friendly
  • Loading branch information
arun-sagar-s-a committed Sep 15, 2024
1 parent 7c1cac8 commit db4f218
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 23 deletions.
123 changes: 101 additions & 22 deletions media.css
Original file line number Diff line number Diff line change
@@ -1,40 +1,119 @@
@media screen and (max-width: 992px) {
@media screen and (max-width:1400px) {
#profile {
/* height: 83vh; */
margin-bottom: 2rem;
}

.about-stats,
.skill-category,
.project-card,
.contact-info {
flex-wrap: wrap;
}
}

@media screen and (max-width:1200px) {
#desktop-nav {
display: none;
}

#hamburger-nav {
display: flex;
}
}

@media screen and (max-width: 768px) {
#hamburger-nav .hamburger-icon {
height: 1.05rem;
width: 1.15rem;
}
#hamburger-nav .menu-links {
flex-direction: column;
justify-content: center;
text-align: center;
#experience,
.experience-category,
.projects-container,
.contact-details-container {
margin-top: 2rem;
}
#hamburger-nav .menu-links li a {
font-size: 1rem;
display: flex;
justify-content: center;
align-items: center;

#profile {
display: block;
}

.logo {
font-size: 1.5rem;
.arrow {
display: none;
}
}
@media only screen and (max-width: 600px) {

.profile-container {
padding: 4rem 1.5rem;
flex-direction: column;
align-items: center;
margin-top: 1rem;
margin-bottom: 2rem;

}


section,
.profile-container,
.about-container,
.experience-container,
.projects-container,
.contact-info-container {
height: fit-content;
}

section {
margin: 0 3%;
}

.profile-pic-container {
height: 275px;
width: 275px;
}

#about {
padding: 1rem;
}

.about-container {
padding: 0;

}

.profile-container img {
height: 18rem;
.about-image {
height: 275px;
width: 275px;
}

.about-image img {
height: 100%;
/* width: 100%; */
display: block;
}

.profile-pic-container img {
height: 100%;
}
}

@media screen and (max-width: 600px) {
.experience-category {
margin: 0;
padding: 0;
gap: 2rem;
}

.experience-container {
margin-bottom: 2rem;
}

#contact {
margin-top: 2rem;
padding: 0.5rem 1rem;
background-color: #fff;
}

.project-card {
padding: 0.25rem;
}

.about-stats {
margin: .25rem;
margin-bottom: 1rem;
}


}
3 changes: 2 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ section {
border-radius: 50%;
}

.profile-container img {
.profile-pic-container img {
border-radius: 50%;
height: 100%;
}

/* Profile Text */
Expand Down

0 comments on commit db4f218

Please sign in to comment.