-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: calculator fixups and polish (#200)
This PR incorporates various fixes and improvements for the calculator page based on feedback. - Calculator numbers update live as inputs change - Homepage calculator widget shows placeholder / blank numbers once inputs are changed from default values (so the user clicks "calculate" to see new numbers) - Calculator validates inputs from url parameters to ensure they are in range - Calculator page has its own more minimal demo CTA component, different from the homepage
- Loading branch information
Showing
9 changed files
with
122 additions
and
86 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
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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
"use client"; | ||
|
||
import { FiArrowRight } from "react-icons/fi"; | ||
import styled from "styled-components"; | ||
|
||
import Button from "@/components/Button"; | ||
import Heading from "@/components/Heading"; | ||
import Section from "@/components/Section"; | ||
import Text from "@/components/Text"; | ||
import { mobile } from "@/constants/breakpoints"; | ||
import { calendlyDemoUrl } from "@/constants/urls"; | ||
|
||
const CTADemo = () => { | ||
return ( | ||
<Section> | ||
<S.CTADemo> | ||
<S.Content> | ||
<S.TextWrapper> | ||
<Heading.H2>Fancy a demo?</Heading.H2> | ||
<Text.Base> | ||
Schedule some time for a personalized demo of Kardinal. | ||
</Text.Base> | ||
</S.TextWrapper> | ||
<Button.Primary | ||
analyticsId="button_demo_cta_schedule_demo" | ||
iconRight={<FiArrowRight />} | ||
href={calendlyDemoUrl} | ||
rel="noopener noreferrer" | ||
target="_blank" | ||
> | ||
Schedule a demo | ||
</Button.Primary> | ||
</S.Content> | ||
</S.CTADemo> | ||
</Section> | ||
); | ||
}; | ||
|
||
const S = { | ||
CTADemo: styled.div` | ||
display: flex; | ||
width: 100%; | ||
padding: 64px 0; | ||
align-items: center; | ||
justify-content: center; | ||
`, | ||
|
||
Content: styled.div` | ||
max-width: 1038px; | ||
border-radius: 12px; | ||
background-color: rgba(252, 160, 97, 0.08); | ||
width: 100%; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 48px; | ||
gap: 4px; | ||
@media ${mobile} { | ||
flex-direction: column; | ||
gap: 16px; | ||
align-items: flex-start; | ||
} | ||
`, | ||
|
||
TextWrapper: styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 4px; | ||
@media ${mobile} { | ||
gap: 8px; | ||
} | ||
`, | ||
}; | ||
|
||
export default CTADemo; |
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
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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export const calendlyDemoUrl = | ||
"https://calendly.com/d/cqhd-tgj-vmc/45-minute-meeting"; |
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