Skip to content

Commit

Permalink
docs: update broken image paths
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelflips committed Nov 27, 2024
1 parent 1ae1e98 commit 3fcb3a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ panels = [
caption: %(
<p>Vivamus dictum rutrum dui, nec placerat ante</p>
),
media: %(<img src="/assets/card-placeholder-lg.png" alt="Image of Product Abra" />),
media: %(#{image_tag("card-placeholder-lg.png", alt: "media tile image placeholder")}),
title: "Product Abra",
},
{
Expand All @@ -44,7 +44,7 @@ panels = [
caption: %(
<p>Suspendisse eu tellus quis arcu sagittis semper</p>
),
media: %(<img src="/assets/card-placeholder-lg.png" alt="Image of Product Cadabra" />),
media: %(#{image_tag("card-placeholder-lg.png", alt: "media tile image placeholder")}),
title: "Product Cadabra",
},
{
Expand All @@ -56,7 +56,7 @@ panels = [
caption: %(
<p>Maecenas vitae leo eu tellus efficitur viverra sit amet ut tortor vestibulum</p>
),
media: %(<img src="/assets/card-placeholder-lg.png" alt="Image of Product Jimminycricket" />),
media: %(#{image_tag("card-placeholder-lg.png", alt: "media tile image placeholder")}),
title: "Product Jimminycricket",
},
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
],
file_selected: true,
accepted_file_types: ["image/jpg"],
selection_preview: "https://placekitten.com/360",
selection_preview: "hero-workshop-placeholder.jpg",
selection_label: "Replace file",
id: "upload-card-selected",
} do %>
Expand All @@ -53,7 +53,7 @@
{name: "my-image-file.jpg"},
],
file_selected: true,
selection_preview: "https://placekitten.com/360",
selection_preview: "hero-workshop-placeholder.jpg",
stack_layout: true,
id: "upload-card-stack",
selection_label: "Edit file",
Expand All @@ -72,11 +72,11 @@
<p><strong>NOTE:</strong> a file input field and label are <em>included by default in the base component</em>, as seen in the examples above. When applying a custom file input with `sage_upload_card_actions`, set <code>custom_file_input_field</code> to <code>true</code> to remove these defaults.</p>
<%= sage_component SageUploadCard, {
accepted_files: [
{name: "fluffy-kitteh.jpg"},
{name: "my-image-file.jpg"},
],
custom_file_input_field: true,
file_selected: true,
selection_preview: "https://placekitten.com/360",
selection_preview: "hero-workshop-placeholder.jpg",
id: "upload-card-dropdown"
} do %>
<% content_for :sage_upload_card_actions do %>
Expand Down

0 comments on commit 3fcb3a5

Please sign in to comment.