Skip to content

Commit

Permalink
Make hero section responsible for mobile screen width
Browse files Browse the repository at this point in the history
  • Loading branch information
Breno committed Oct 24, 2024
1 parent 289c016 commit 6306144
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 12 deletions.
16 changes: 7 additions & 9 deletions src/components/DeploymentOptionsPage/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,13 @@ const Hero = () => {
</LinkOutlined>
</div>
</div>
<div>
<StaticImage
src="../../../images/deployment-options-page/deployment-options-meta-image.png"
alt="Enterprise-ready Estuary Flow deployment options: BYOC, Public, and Private"
quality={100}
placeholder="blurred"
loading="eager"
/>
</div>
<StaticImage
src="../../../images/deployment-options-page/deployment-options-meta-image.png"
alt="Enterprise-ready Estuary Flow deployment options: BYOC, Public, and Private"
quality={100}
placeholder="blurred"
loading="eager"
/>
</div>
</section>
);
Expand Down
31 changes: 28 additions & 3 deletions src/components/DeploymentOptionsPage/Hero/styles.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,33 @@
margin: 0;
}

img {
min-width: 536px;
div {
max-width: 50%;
width: 100%;
}

@media (max-width: 1024px) {
div {
max-width: 100%;
}
}

@media (max-width: 768px) {
h1 {
font-size: 2.5rem;
line-height: 48px;
}

p {
font-size: 1rem;
}
}

@media (max-width: 425px) {
h1 {
font-size: 2.25rem;
line-height: 43.2px;
}
}
}

Expand Down Expand Up @@ -60,4 +85,4 @@
flex-direction: column;
}
}
}
}

0 comments on commit 6306144

Please sign in to comment.