diff --git a/app/views/shared/_download_card.html.erb b/app/views/shared/_download_card.html.erb new file mode 100644 index 0000000..88bf508 --- /dev/null +++ b/app/views/shared/_download_card.html.erb @@ -0,0 +1,78 @@ + +
+ <%= t("download.premium_description") %> +
+ <%= button_to "https://buy.stripe.com/fZe3eA2Mi5n0eUU002", + params: { weather_art_id: weather_art.id }, + method: :get, + #method: :post, + class: "btn btn-accent btn-block btn-sm" do %> + + <%= t("button.buy_now") %> + <% end %> ++ <%= t("download.medium_quality_description") %> +
+ <%= link_to rails_blob_path(weather_art.preview_image(:big).processed, disposition: "attachment"), + class: "btn btn-outline btn-block btn-sm" do %> + + <%= t("button.download") %> + <% end %> ++ <%= t("download.webp_compressed_description") %> +
+ <%= link_to rails_blob_path(weather_art.webp_image.processed, disposition: "attachment"), + class: "btn btn-outline btn-block btn-sm" do %> + + <%= t("button.download") %> + <% end %> +