Skip to content

Commit

Permalink
fix wrong redirection for CTA buttons (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulinabjacykowska authored Jul 26, 2023
1 parent 80f0881 commit 3ad9b32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ const IndexPage = () => {
<CTASection
heading="How does Forminer help overcome your challenges?"
buttonText="Explore docs"
link="/docs"
/>
<PowerfulFeatures />
<CTASection
heading="Ready to see Forminer in action?"
buttonText="Explore demo"
link="/demo"
/>
<UseCases />
<WhatDoYouGet />
Expand Down
7 changes: 4 additions & 3 deletions src/sections/CTASection/CTASection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
`}
Expand All @@ -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>
Expand Down

0 comments on commit 3ad9b32

Please sign in to comment.