Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update broken image paths #2029

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading