Skip to content

Commit

Permalink
feat: hero cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
CesarBenavides777 committed Feb 11, 2021
1 parent 1d4c636 commit 40c83a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .jest-test-results.json

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions src/ContentComponents/Hero/Hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,12 @@ const Hero = ({
</Image>
)
)}
{presetLayout === "50/50, Osi" && (
<InlineSVG path={HeroSVG} className="hero-svg" title={imageAltText} />
{presetLayout === "50/50, Osi" && isDesktop && (
<InlineSVG
path={HeroSVG}
className={`hero-svg ${isDesktop && "hero-desktop-class"}`}
title={imageAltText}
/>
)}
</div>
{wave && (
Expand Down
1 change: 1 addition & 0 deletions src/ContentComponents/Hero/Hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
grid-template-rows: 1fr;
gap: 0px 0px;
position: relative;
overflow-x: hidden;

.hero-svg {
max-width: 100%;
Expand Down

0 comments on commit 40c83a8

Please sign in to comment.