Call to Action Component: Difference between revisions
Imported from Confluence |
No edit summary |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
The | {{DrupalBack}} | ||
The '''Call to Action (CTA)''' component inserts lead text and an accompanying button designed to capture the user's attention and direct them to another part of the website. The Call to Action component can be inserted into any of the main page content regions. | |||
== Elements == | == Elements == | ||
| Line 7: | Line 8: | ||
# CTA Link | # CTA Link | ||
# CTA Style (''required'') | # CTA Style (''required'') | ||
## <u>Options</u>: Double Border (lead text + link), Minimal (lead text + link, ''default''), Big Button (only | ## <u>Options</u>: Double Border (lead text + link), Minimal (lead text + link, ''default''), Big Button (link only; lead text is not displayed) | ||
{{Screenshot|Screenshot 2024-06-14 at 1.39.50 PM.png|800px|Diagram showing the fields that make up the Call to Action component.|The Call to Action component fields.}} | |||
== Examples == | == Examples == | ||
{{Callout|type=tip|title=Interactive Example|content=The preview below shows the Call to Action component using its default configuration. | |||
To experiment with different styles and other settings, open the interactive component playground. | |||
'''[https://toolkit.swarthmore.edu/?path=/story/swarthmore-theme-components-call-to-action Open Component Playground]'''}} | |||
{{StorybookComponent|id=swarthmore-theme-components-call-to-action|height=350}} | |||
== Step-by-step Instructions == | |||
# Provide a '''Title''' for the component. ''Note: This is used for internal purposes only and is not displayed to visitors.'' | |||
# Enter the '''CTA Lead Text''' (limited to 115 characters). This message should encourage users to click the accompanying button (if using a style that displays both lead text and a button). | |||
# Add a '''CTA Link''' that points to another page. You can search for an internal page by typing its title into the '''Link''' field. After selecting the page, you may edit the automatically generated '''Link text''' if desired. | |||
# Select the '''CTA Style''' for the component. There are three options: '''Double Border''', '''Minimal''', and '''Big Button'''. See the interactive example above. ''Note: The '''Big Button''' style displays only the CTA Link; the lead text is not shown.'' | |||
# Click '''Save''' to create or update the component. | |||
[[Category:Drupal]] | |||
Latest revision as of 13:03, 10 July 2026
The Call to Action (CTA) component inserts lead text and an accompanying button designed to capture the user's attention and direct them to another part of the website. The Call to Action component can be inserted into any of the main page content regions.
Elements
- Title (required, not displayed)
- CTA Lead Text
- CTA Link
- CTA Style (required)
- Options: Double Border (lead text + link), Minimal (lead text + link, default), Big Button (link only; lead text is not displayed)
Examples
Interactive Example
The preview below shows the Call to Action component using its default configuration.
To experiment with different styles and other settings, open the interactive component playground.
Open Component Playground
Step-by-step Instructions
- Provide a Title for the component. Note: This is used for internal purposes only and is not displayed to visitors.
- Enter the CTA Lead Text (limited to 115 characters). This message should encourage users to click the accompanying button (if using a style that displays both lead text and a button).
- Add a CTA Link that points to another page. You can search for an internal page by typing its title into the Link field. After selecting the page, you may edit the automatically generated Link text if desired.
- Select the CTA Style for the component. There are three options: Double Border, Minimal, and Big Button. See the interactive example above. Note: The Big Button style displays only the CTA Link; the lead text is not shown.
- Click Save to create or update the component.
