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

fix: Responsive Issue #912

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Changes from all commits
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
46 changes: 35 additions & 11 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1655,11 +1655,13 @@ textarea::-webkit-scrollbar {
}


@media (max-width: 700px) {
@media (max-width: 1000px) {
.items {
display: flex;
flex-direction: column;
height: 100%;
margin: auto;
padding: 2rem;
}

.contact {
Expand Down Expand Up @@ -2383,24 +2385,47 @@ body {
}

.header__container {
grid-template-columns: repeat(1, 1fr);
padding: 0 1rem; /* Adjust padding for smaller devices */
}

display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
gap: 2rem;
margin-top: 5rem;
} /* Adjust padding for smaller devices */
.header__image img:nth-child(1) {
position: relative;
top: 0;
left: 0;
transform: translate(0%,0%);
}
.header__image{
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.header__image img:nth-child(2) {
position: absolute;
transform: translate(26%, 9%);
}
.newNav{
flex-wrap: wrap;
}.aboutcon{padding: 1rem;}
.header__image {
/* Remove minimum height for smaller devices */
padding-top: 20px; /* Add padding to center content vertically */
}

.VIpgJd-ZVi9od-l4eHX-hSRGPd img{
object-fit: contain;
}
.header__image img:nth-child(1) {
max-width: 60vw; /* Adjust image size for smaller devices */
transform: translate(-90%, -40%); /* Center image horizontally and vertically */
max-width: 60vw; /* Adjust image size for smaller devices */ /* Center image horizontally and vertically */
}

.header__image img:nth-child(2) {
max-width: 30vw; /* Adjust image size for smaller devices */
transform: translate(-30%, -75%); /* Center image vertically */
}
}

.header__content {/* Adjust padding for smaller devices */
padding-top: 0;
Expand Down Expand Up @@ -2429,7 +2454,6 @@ body {
font-size: 0.7rem; /* Adjust font size for smaller devices */
padding: 0 10px; /* Add vertical padding */
text-align: center; /* Center align text */
max-width: 30%; /* Limit width to prevent overflow */
margin: 0 auto; /* Center the subtitle */
}
}
Loading