Full Width Callout Component: Difference between revisions
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
The Full Width Callout component inserts an image that | {{DrupalBack}} | ||
The '''Full Width Callout''' component inserts an image that spans the full width of the page with an overlaid abstract and optional call-to-action link. As visitors scroll, the content animates into view with a subtle transition effect. | |||
== Elements == | == Elements == | ||
# Title (''required, not displayed | # Title (''required, not displayed'') | ||
# Image (''required'') | # Image (''required'') | ||
# Abstract | # Abstract | ||
# Call to Action Link | # Call to Action Link | ||
{{Screenshot|Screenshot 2024-06-14 at 2.42.32 PM.png|800px|Diagram showing the fields that make up the Full Width Callout component.|The Full Width Callout component fields.}} | |||
== Examples == | == Examples == | ||
{{ | {{Callout|type=tip|title=Interactive Example|content=The preview below shows the Full Width 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-full-width-callout Open Component Playground]'''}} | |||
{{StorybookComponent|id=swarthmore-theme-components-full-width-callout|height=650}} | |||
== Step-by-step Instructions == | == Step-by-step Instructions == | ||
# Provide | # Provide a '''Title''' for the component. ''Note: This is used for internal purposes only and is not displayed to visitors.'' | ||
# Add | # Add the '''Image'''. Landscape orientation is recommended. Since the image spans the full width of the browser window, use a high-quality image to ensure it looks good on larger displays. If the image appears grainy or pixelated after previewing the component, try uploading a higher resolution version. | ||
## <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'''. | ||
# Add | # Add an '''Abstract''' that will appear over the image. | ||
# | # Optionally, add a '''Call to Action Link''' that will appear beneath the abstract. | ||
[[Category:Drupal]] | [[Category:Drupal]] | ||
Latest revision as of 13:22, 10 July 2026
The Full Width Callout component inserts an image that spans the full width of the page with an overlaid abstract and optional call-to-action link. As visitors scroll, the content animates into view with a subtle transition effect.
Elements
- Title (required, not displayed)
- Image (required)
- Abstract
- Call to Action Link
Examples
Interactive Example
The preview below shows the Full Width 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 component. Note: This is used for internal purposes only and is not displayed to visitors.
- Add the Image. Landscape orientation is recommended. Since the image spans the full width of the browser window, use a high-quality image to ensure it looks good on larger displays. If the image appears grainy or pixelated after previewing the component, try uploading a higher resolution version.
- 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:
- Add an Abstract that will appear over the image.
- Optionally, add a Call to Action Link that will appear beneath the abstract.
