Skip to content

Commit

Permalink
refactor(herosidelayoiut): extract to name
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin authored and seaerchin committed Sep 13, 2023
1 parent a5a18cd commit bfe6485
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/templates/homepage/HeroSection/HeroSideLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { getClassNames } from "templates/utils/stylingUtils"

import { SectionBackgroundColor, SectionSize } from "types/hero"

const TRANSLUCENT_GRAY = "#00000080"

interface HeroInfoboxProps {
title: string
subtitle?: string
Expand Down Expand Up @@ -70,8 +72,8 @@ const HeroInfoboxDesktop = ({
className={getClassNames(editorStyles, ["p16", "is-hidden-mobile"])}
style={{
width: size,
backgroundColor: backgroundColor === "white" ? "white" : "black",
opacity: backgroundColor === "gray" ? "50%" : "100%",
background:
backgroundColor === "gray" ? TRANSLUCENT_GRAY : backgroundColor,
}}
>
<HeroInfobox {...rest} />
Expand Down

0 comments on commit bfe6485

Please sign in to comment.