Skip to content

Commit

Permalink
refactor(hero): chnage to use breakpoints (#1524)
Browse files Browse the repository at this point in the history
Co-authored-by: seaerchin <[email protected]>
  • Loading branch information
seaerchin and seaerchin authored Sep 26, 2023
1 parent 5be3e28 commit 83cd575
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/templates/homepage/HeroSection/HeroSideLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ const HeroInfoboxDesktop = ({
}: HeroInfoboxDesktopProps) => {
return (
<div
className={getClassNames(editorStyles, ["p16", "is-hidden-mobile"])}
className={getClassNames(editorStyles, ["p-16", "is-hidden-mobile"])}
style={{
width: size,
background:
backgroundColor === "gray" ? TRANSLUCENT_GRAY : backgroundColor,
}}
>
<div className={getClassNames(editorStyles, ["py16"])}>
<div className={getClassNames(editorStyles, ["mb8"])}>
<h1 className={getClassNames(editorStyles, ["hero-title", "mb4"])}>
<div className={getClassNames(editorStyles, ["py-16"])}>
<div className={getClassNames(editorStyles, ["mb-8"])}>
<h1 className={getClassNames(editorStyles, ["hero-title", "mb-4"])}>
{title && (
<>
<b className={getClassNames(editorStyles, ["is-hidden-touch"])}>
Expand Down Expand Up @@ -172,7 +172,7 @@ export const HeroSideLayout = ({
>
<div
className={getClassNames(editorStyles, [
"p8",
"p-8",
"row",
"is-vcentered",
"is-centered",
Expand All @@ -184,8 +184,8 @@ export const HeroSideLayout = ({
backgroundColor === "gray" ? TRANSLUCENT_GRAY : backgroundColor,
}}
>
<div className={getClassNames(editorStyles, ["mb8"])}>
<h1 className={getClassNames(editorStyles, ["hero-title", "mb4"])}>
<div className={getClassNames(editorStyles, ["mb-8"])}>
<h1 className={getClassNames(editorStyles, ["hero-title", "mb-4"])}>
<b className={getClassNames(editorStyles, ["is-hidden-desktop"])}>
{title}
</b>
Expand Down

0 comments on commit 83cd575

Please sign in to comment.