|
|
|
@ -3,6 +3,17 @@ |
|
|
|
content_for :meta_description, question.page_description |
|
|
|
%> |
|
|
|
|
|
|
|
<% Array(question.assets.select{ |asset| asset.file.image? }.first).each do |asset| %> |
|
|
|
<div class="background-container"> |
|
|
|
<%= image_tag rails_storage_proxy_path(asset.file.representation(resize_to_limit: [800,nil], format: :jpg)), |
|
|
|
srcset: "#{rails_storage_proxy_path(asset.file.representation(resize_to_limit: [800,nil], format: :jpg))} 800w, |
|
|
|
#{rails_storage_proxy_path(asset.file.representation(resize_to_limit: [1600,nil], format: :jpg))} 1600w, |
|
|
|
#{rails_storage_proxy_path(asset.file.representation(resize_to_limit: [2400,nil], format: :jpg))} 2400w", |
|
|
|
sizes: "100vw" |
|
|
|
%> |
|
|
|
</div> |
|
|
|
<% end %> |
|
|
|
|
|
|
|
<%= form_with model: @answer, url: url_for(controller: 'answers', action: 'create') do |form| %> |
|
|
|
|
|
|
|
<div class="question-container"> |
|
|
|
|