diff --git a/docs/app/views/examples/components/hero/_preview.html.erb b/docs/app/views/examples/components/hero/_preview.html.erb index 94391a0cdd..2c1dbd11ea 100644 --- a/docs/app/views/examples/components/hero/_preview.html.erb +++ b/docs/app/views/examples/components/hero/_preview.html.erb @@ -1,8 +1,7 @@ -
Full-bleed images within Heroes take up the entire vertical and horizontal space allocated at the start or end of the Hero component.
+There are two sizes for the Hero component: small and large. The small Hero component takes up a portion of the viewport width and the large Hero component takes up the entire viewport width.
-The small Hero component takes up a portion of the viewport width and image fills the space within the container.
+The default large Hero component takes up the entire viewport width and image fills the space within the container.
- +When the image has a trigger, the image is clickable, will trigger an action, and image fills the space within the container.
- -<%= sage_component SageHero, { - title: "Learn with Kajabi in our live workshops", - description: "Did you know we offer free workshops? Kajabi experts host live workshops every week on topics from marketing your products to building out your Kajabi account.", - image: "hero-workshop-placeholder.jpg", - alt_text: "Multi-layered illustration of UI elements and woman clasping her hands together in excitement", - size: "small", - cta_attributes: { - "data-js-modaltrigger": "cool-modal", - href: "#", - }, -} do %> - <% content_for :sage_hero_footer_actions do %> - <%= sage_component SageButton, { - value: "Learn more", - style: "primary", - } %> - <% end %> -<% end %> - <%= sage_component SageDivider, {} %> -When the Hero is set to borderless and has a custom background color, the Hero will have no border and the background color will be applied to the entire Hero. The image will fill the space within the container.
+When the Hero is set to borderless, the Hero will have no border.
+Contained images within a Hero component will have margins that push the image away from the sides of the Hero container.
- -When the Hero is set to contained, the Hero will have margins that push the image away from the sides of the Hero container.
<%= sage_component SageHero, { title: "Introducing the Kajabi template store", @@ -141,10 +87,6 @@ alt_text: "Multi layered illustration of UI elements and woman smiling to the camera", size: "small", contained: true, - cta_attributes: { - "data-js-modaltrigger": "cool-modal", - href: "#", - }, } do %> <% content_for :sage_hero_footer_actions do %> <%= sage_component SageButton, { @@ -156,91 +98,37 @@ <%= sage_component SageDivider, {} %> -When the image is set to start, the image will be placed at the start of the Hero component.
- -When the Hero has a custom background color, the background color will be applied to the entire Hero.
<%= sage_component SageHero, { title: "Learn with Kajabi in our live workshops", description: "Did you know we offer free workshops? Kajabi experts host live workshops every week on topics from marketing your products to building out your Kajabi account.", image: "hero-workshop-placeholder.jpg", alt_text: "Multi-layered illustration of UI elements and woman clasping her hands together in excitement", + custom_background_color: "#e6f4fe", size: "small", - image_start: true, } do %> <% content_for :sage_hero_footer_actions do %> <%= sage_component SageButton, { - value: "Learn more", style: "primary", + value: "Learn more", } %> <% end %> <% end %> <%= sage_component SageDivider, {} %> -When the image is set to start, the image will be placed at the start of the Hero component.
<%= sage_component SageHero, { title: "Learn with Kajabi in our live workshops", description: "Did you know we offer free workshops? Kajabi experts host live workshops every week on topics from marketing your products to building out your Kajabi account.", image: "hero-workshop-placeholder.jpg", alt_text: "Multi-layered illustration of UI elements and woman clasping her hands together in excitement", - size: "large", - image_start: true, -} do %> - <% content_for :sage_hero_footer_actions do %> - <%= sage_component SageButton, { - value: "Learn more", - style: "primary", - } %> - <% end %> -<% end %> - -<%= sage_component SageDivider, {} %> - -When the Hero has a CTA attribute, the CTA will be applied to the Hero image.
<%= sage_component SageHero, { title: "Learn with Kajabi in our live workshops", description: "Did you know we offer free workshops? Kajabi experts host live workshops every week on topics from marketing your products to building out your Kajabi account.", - image: "hero-contained-placeholder.png", - alt_text: "Multi layered illustration of UI elements and woman smiling to the camera", - size: "large", - image_start: true, - contained: true, + image: "hero-workshop-placeholder.jpg", + alt_text: "Multi-layered illustration of UI elements and woman clasping her hands together in excitement", + size: "small", + cta_attributes: { + "data-js-modaltrigger": "cool-modal", + href: "#", + }, } do %> <% content_for :sage_hero_footer_actions do %> <%= sage_component SageButton, {