Skip to content

Commit

Permalink
feat:update link to book a demo (#447)
Browse files Browse the repository at this point in the history
* feat:update link to book a demo

* feat:update link to book a demo

* update meeting URL
  • Loading branch information
yuval-hazaz authored Jan 23, 2024
1 parent f6e657b commit c9a27e2
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 20 deletions.
3 changes: 2 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ NEXT_PRIVATE_HUBSPOT_PAT=''
NEXT_PRIVATE_BLOG_SERVER_URL='https://blog-api.amplication-staging.com'
#NEXT_PRIVATE_BLOG_SERVER_URL='http://localhost:3000'
NEXT_PRIVATE_PLUGIN_API_URL='https://plugin-api.amplication.com'
NEXT_PUBLIC_BILLING_API_KEY='client-d3f38201-ed3a-4aea-af1d-1db1ad976ec0:415fb9ff-a378-42d0-a849-dae7daf49646'
NEXT_PUBLIC_BILLING_API_KEY='client-d3f38201-ed3a-4aea-af1d-1db1ad976ec0:415fb9ff-a378-42d0-a849-dae7daf49646'
NEXT_PUBLIC_BOOK_MEETING_URL='https://meetings-eu1.hubspot.com/oalaluf/meet-with-oren'
2 changes: 1 addition & 1 deletion .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ NEXT_PRIVATE_HUBSPOT_PAT=''
NEXT_PRIVATE_BLOG_SERVER_URL='https://blog-api.amplication.com'
NEXT_PRIVATE_PLUGIN_API_URL='https://plugin-api.amplication.com'
NEXT_PUBLIC_BILLING_API_KEY='client-d3f38201-ed3a-4aea-af1d-1db1ad976ec0:415fb9ff-a378-42d0-a849-dae7daf49646'

NEXT_PUBLIC_BOOK_MEETING_URL='https://meetings-eu1.hubspot.com/oalaluf/meet-with-oren'



11 changes: 6 additions & 5 deletions components/Sections/About/StartNow/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const StartNow = () => {
});
}, []);

const handleContactUsClick = useCallback(() => {
const handleBookDemoClick = useCallback(() => {
analytics.event({
action: 'contactUsClicked',
action: 'bookDemoClicked',
params: {
buttonLocation: 'footer',
},
Expand All @@ -44,11 +44,12 @@ const StartNow = () => {
</Link>

<Button
text={'Contact us'}
text={'Book a demo'}
className="outline-button !text-sm !h-10 mr-2 w-full max-w-[104px] !px-0 !h-[34px] !font-normal !bg-light-blue hover:!bg-dark-black-70"
isLink={true}
href="/contact-us"
onClick={handleContactUsClick}
href={process.env.NEXT_PUBLIC_BOOK_MEETING_URL}
onClick={handleBookDemoClick}
target={'_blank'}
/>
</div>
</section>
Expand Down
6 changes: 5 additions & 1 deletion components/Sections/Enterprise/Hero/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,14 @@ const Hero = () => {
</div>
</div>
<div className="d-flex tablet:align-items-center justify-content-start mt-2">
<Link href={'/contact-us'} passHref={true}>
<Link
href={process.env.NEXT_PUBLIC_BOOK_MEETING_URL}
passHref={true}
>
<a
onClick={handleBookDemoClick}
className="btn btn-primary btn-sm !h-[34px] mb-2 laptop:mr-2 w-full !font-normal !text-sm !max-w-[140px]"
target="_blank"
>
Book a Demo
</a>
Expand Down
6 changes: 5 additions & 1 deletion components/Sections/Enterprise/HeroBlock/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,14 @@ const HeroBlock = () => {
</a>
</Link>
<div className="spacer"></div>
<Link href={'/contact-us'} passHref={true}>
<Link
href={process.env.NEXT_PUBLIC_BOOK_MEETING_URL}
passHref={true}
>
<a
onClick={handleBookDemoClick}
className="btn btn-outline-light btn-sm !h-[34px] mb-2 laptop:mr-2 w-full !font-normal !text-sm !max-w-[140px] text-black80"
target="_blank"
>
Book a Demo
</a>
Expand Down
6 changes: 5 additions & 1 deletion components/Sections/Modernization/Hero/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ const Hero = () => {
</h1>
</div>
<div className="d-flex tablet:align-items-center justify-content-start mt-2">
<Link href={'/contact-us'} passHref={true}>
<Link
href={process.env.NEXT_PUBLIC_BOOK_MEETING_URL}
passHref={true}
>
<a
onClick={handleBookDemoClick}
className="btn btn-primary btn-sm !h-[34px] mb-2 laptop:mr-2 w-full !font-normal !text-sm !max-w-[140px]"
target="_blank"
>
Book a Demo
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ const ModernizationValues2 = () => {
fast-track your digital transformation.
</div>
</div>
<Link href={'/contact-us'} passHref={true}>
<Link
href={process.env.NEXT_PUBLIC_BOOK_MEETING_URL}
passHref={true}
>
<a
target="_blank"
onClick={handleBookDemoClick}
className="btn btn-primary btn-sm !h-[34px] mb-2 laptop:mr-2 w-full !font-normal !text-sm !max-w-[140px]"
>
Expand Down
4 changes: 2 additions & 2 deletions components/Sections/Pricing/PricingPlans/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const PricingPlans = () => {
buttonLocation: 'website-pricing',
},
});
window.location.href = '/contact-us';
window.location.href = process.env.NEXT_PUBLIC_BOOK_MEETING_URL;
}
}, []);

Expand All @@ -45,7 +45,7 @@ export const PricingPlans = () => {
startNew: 'Start Now',
upgrade: 'Upgrade Now',
custom: 'Contact Us',
startTrial: (plan) => `Try Free`,
startTrial: (plan) => `Book a Demo`,
},
price: {
free: {
Expand Down
2 changes: 1 addition & 1 deletion pages/application-modernization.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const ApplicationModernization = () => {
title="Supercharge Your Business Today"
description="Discover how Amplication Enterprise can help you build powerful, scalable, and secure applications tailored to your business needs."
linkPrimary={{
href: '/contact-us',
href: process.env.NEXT_PUBLIC_BOOK_MEETING_URL,
title: 'Book a Demo',
}}
/>
Expand Down
19 changes: 13 additions & 6 deletions pages/enterprise.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ const features = [
customClasses: '!pt-8',
secondaryBtn: {
title: 'Book a Demo',
href: '/contact-us',
href: process.env.NEXT_PUBLIC_BOOK_MEETING_URL,
target: "_blank"
},
content:
'<p>Amplication Enterprise allows you to build, manage and scale applications at the speed of light. With our platform you can create applications faster and with fewer resources. Generate all the necessary foundations for your service in a few clicks and tailor applications to your unique needs.</p>',
Expand All @@ -45,7 +46,8 @@ const features = [
customClasses: '!pb-6',
primaryBtn: {
title: 'Contact Sales',
href: '/contact-us',
href: process.env.NEXT_PUBLIC_BOOK_MEETING_URL,
target: "_blank"
},
secondaryBtn: {
title: 'Start Now',
Expand All @@ -60,7 +62,8 @@ const features = [
customClasses: '!pb-8',
primaryBtn: {
title: 'Contact Sales',
href: '/contact-us',
href: process.env.NEXT_PUBLIC_BOOK_MEETING_URL,
target: "_blank"
},
secondaryBtn: {
title: 'Start Now',
Expand Down Expand Up @@ -118,7 +121,9 @@ const Features = () => {
<div className="buttons-wrapper d-flex tablet:align-items-center justify-content-start mt-4">
{feature.primaryBtn && (
<Link href={feature.primaryBtn.href} passHref={true}>
<a className="btn btn-primary btn-sm !h-[34px] mb-2 mr-6 w-full !font-normal !text-sm !max-w-[140px]">
<a className="btn btn-primary btn-sm !h-[34px] mb-2 mr-6 w-full !font-normal !text-sm !max-w-[140px]"
target={feature.primaryBtn.target ?? "_self"}
>
{feature.primaryBtn.title}
</a>
</Link>
Expand All @@ -128,7 +133,9 @@ const Features = () => {
href={feature.secondaryBtn.href ?? ''}
passHref={true}
>
<a className="btn btn-outline-light btn-sm !h-[34px] mb-2 laptop:mr-2 w-full !font-normal !text-sm !max-w-[140px]">
<a className="btn btn-outline-light btn-sm !h-[34px] mb-2 laptop:mr-2 w-full !font-normal !text-sm !max-w-[140px]"
target={feature.secondaryBtn.target ?? "_self"}
>
{feature.secondaryBtn.title}
</a>
</Link>
Expand Down Expand Up @@ -157,7 +164,7 @@ const Features = () => {
title="Supercharge Your Business Today"
description="Discover how Amplication Enterprise can help you build powerful, scalable, and secure applications tailored to your business needs."
linkPrimary={{
href: '/contact-us',
href: process.env.NEXT_PUBLIC_BOOK_MEETING_URL,
title: 'Book a Demo',
}}
/>
Expand Down

0 comments on commit c9a27e2

Please sign in to comment.