Skip to content

Commit

Permalink
make home responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
HectorVilas committed Apr 30, 2023
1 parent 99cabf1 commit 35ca87f
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion styles/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,45 @@
.category-card img {
width: 100%;
align-self: self-end;
}
}

/* responsiveness */

@media only screen and (max-width: 800px) {
/* hero section */
.home-hero {
grid-template-areas: "hero-div hero-div";
justify-items: center;
background-position: 40%;
}
.home-hero-div {
justify-content: center;
display: flex;
flex-direction: column;
align-items: center;
}
.home-hero-div svg {
transform: none;
}
.home-hero-div p {
transform: none;
}

/* about section */
.home-about {
isolation: isolate;
position: relative;
grid-template-areas: none;
}
.home-about-div {
z-index: 1;
}
.home-about-image-div {
border: none;
opacity: .25;
}
.home-about-image-div img {
border: none;
transform: translateX(-10px);
}
}

0 comments on commit 35ca87f

Please sign in to comment.