Double Image Callout Component: Difference between revisions
No edit summary |
|||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{DrupalBack}} | |||
The '''Double Image Callout''' is a full-width component used to display a pair of clickable images with overlaid text. This component is ideal for drawing visitors' attention and directing them to important content on your website. | |||
== Elements == | == Elements == | ||
| Line 10: | Line 11: | ||
# Double Image Callout Item - Call to Action Link | # Double Image Callout Item - Call to Action Link | ||
{{Screenshot|double-image-callout.png|800px|Diagram showing the fields that make up the Double Image Callout component.|The Double Image Callout component fields.}} | |||
== Examples == | == Examples == | ||
{{ | {{Callout|type=tip|title=Interactive Example|content=The preview below shows the Double Image Callout component using its default configuration. | ||
To experiment with different layouts and other settings, open the interactive component playground. | |||
'''[https://toolkit.swarthmore.edu/?path=/story/swarthmore-theme-components-double-image-callout Open Component Playground]'''}} | |||
{{StorybookComponent|id=swarthmore-theme-components-double-image-callout|height=650}} | |||
== Step-by-step Instructions == | == Step-by-step Instructions == | ||
# Provide | # Provide a '''Title''' for the '''Double Image Callout'''. | ||
# This component | # This component is designed to display two callout items side by side. Repeat the following steps for each callout item: | ||
## | ## Enter a '''Callout Title'''. | ||
## Add | ## Add an '''Image''' (landscape orientation is recommended). | ||
### <u>If using an existing image already in the system</u>: | ### <u>If using an existing image already in the system</u>: | ||
#### Click | #### Click the '''Insert an Image''' button to launch the image browser. | ||
#### Navigate to the image under | #### Navigate to the image under '''Select Image''', select it using the radio button, and click '''Select Image'''. | ||
### <u>If using a new image</u>: | ### <u>If using a new image</u>: | ||
#### | #### Click the '''Insert an Image''' button to launch the image browser. | ||
#### Click | #### Click '''Upload Image''', then click '''Browse…''' to locate the image on your computer. Finally, click '''Select Image'''. | ||
## Optionally, add a | ## Optionally, add a short '''Label''' to provide additional context. Example: '''Sustainability''' for a callout about composting on campus. | ||
## Optionally, add | ## Optionally, add an '''Abstract''' that will appear at the bottom of the image. | ||
## | ## Optionally, add a '''Call to Action Link''' to direct visitors to another page on your site. | ||
[[Category:Drupal]] | [[Category:Drupal]] | ||
Latest revision as of 13:18, 10 July 2026
The Double Image Callout is a full-width component used to display a pair of clickable images with overlaid text. This component is ideal for drawing visitors' attention and directing them to important content on your website.
Elements
- Title (required)
- Double Image Callout Item - Callout Title
- Double Image Callout Item - Image
- Double Image Callout Item - Label
- Double Image Callout Item - Abstract
- Double Image Callout Item - Call to Action Link
Examples
Interactive Example
The preview below shows the Double Image Callout component using its default configuration.
To experiment with different layouts and other settings, open the interactive component playground.
Open Component Playground
Step-by-step Instructions
- Provide a Title for the Double Image Callout.
- This component is designed to display two callout items side by side. Repeat the following steps for each callout item:
- Enter a Callout Title.
- Add an Image (landscape orientation is recommended).
- If using an existing image already in the system:
- Click the Insert an Image button to launch the image browser.
- Navigate to the image under Select Image, select it using the radio button, and click Select Image.
- If using a new image:
- Click the Insert an Image button to launch the image browser.
- Click Upload Image, then click Browse… to locate the image on your computer. Finally, click Select Image.
- If using an existing image already in the system:
- Optionally, add a short Label to provide additional context. Example: Sustainability for a callout about composting on campus.
- Optionally, add an Abstract that will appear at the bottom of the image.
- Optionally, add a Call to Action Link to direct visitors to another page on your site.
