-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix wrong redirection for CTA buttons (#55)
- Loading branch information
1 parent
80f0881
commit 3ad9b32
Showing
2 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ const ContentWrapper = styled.div` | |
background-image: url(${ctaBackground}); | ||
background-size: cover; | ||
background-position: center center; | ||
${media.lessThan("sm")` | ||
${media.lessThan('sm')` | ||
gap: ${rem('40px')}; | ||
flex-direction: column; | ||
`} | ||
|
@@ -37,15 +37,16 @@ type CTASectionProps = { | |
heading: string; | ||
buttonText: string; | ||
sectionId?: string; | ||
link: string; | ||
}; | ||
|
||
export const CTASection = ({ heading, buttonText }: CTASectionProps) => { | ||
export const CTASection = ({ heading, buttonText, link }: CTASectionProps) => { | ||
return ( | ||
<HighlightPanel> | ||
<Container> | ||
<ContentWrapper> | ||
<h3>{heading}</h3> | ||
<Link to="mailto:[email protected]" newTab={false}> | ||
<Link to={link} newTab={false} internal> | ||
<Button variant="solid">{buttonText}</Button> | ||
</Link> | ||
</ContentWrapper> | ||
|