-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📒 SSW Articles - add contact us form (#2964)
* feat: added contact us section for articles * bump tina lock file --------- Co-authored-by: igorgoldobin <[email protected]>
- Loading branch information
1 parent
c49f244
commit dd3e3cc
Showing
96 changed files
with
1,110 additions
and
392 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,77 @@ | ||
import { BookingButton } from "../blocks"; | ||
import { bookingButtonSchema } from "../bookingButton/bookingButton"; | ||
import { Container } from "../util/container"; | ||
import { Section } from "../util/section"; | ||
|
||
export const callToActionSchema = { | ||
name: "callToAction", | ||
label: "Call to Action", | ||
description: "The call to action button for contacting SSW", | ||
type: "object", | ||
fields: [ | ||
{ | ||
type: "string", | ||
label: "Sub Title", | ||
name: "subTitle", | ||
}, | ||
{ | ||
type: "boolean", | ||
label: "Show Call to Action", | ||
name: "showCallToAction", | ||
}, | ||
...bookingButtonSchema.fields, | ||
], | ||
}; | ||
|
||
type CallToActionProps = { | ||
tinaFields: { | ||
subTitle: string; | ||
buttonSubtitle: string; | ||
}; | ||
animated: boolean; | ||
subTitle: string; | ||
buttonText: string; | ||
buttonSubtitle: string; | ||
children: React.ReactNode; | ||
}; | ||
export const CallToAction: React.FC<CallToActionProps> = ({ | ||
tinaFields, | ||
animated, | ||
subTitle, | ||
buttonText, | ||
buttonSubtitle, | ||
children, | ||
}) => { | ||
return ( | ||
<Section className="!bg-gray-75 pb-25 text-center"> | ||
<Container size="custom" className="w-full"> | ||
{children} | ||
{subTitle && ( | ||
<p | ||
data-tina-field={tinaFields.subTitle} | ||
className="mx-auto w-fit text-lg" | ||
> | ||
{subTitle} | ||
</p> | ||
)} | ||
<BookingButton | ||
data={{ | ||
animated: animated, | ||
buttonText: buttonText, | ||
buttonSubtitle: buttonSubtitle, | ||
tinaField: tinaFields.buttonSubtitle, | ||
}} | ||
/> | ||
</Container> | ||
</Section> | ||
); | ||
}; | ||
|
||
export const callToActionDefaults = { | ||
callToAction: { | ||
title: "Talk to us about your project", | ||
subTitle: "Connect with our Account Managers to discuss how we can help.", | ||
showCallToAction: true, | ||
...bookingButtonSchema?.ui.defaultItem, | ||
}, | ||
}; |
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
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
Oops, something went wrong.