Commit d9c068c6 authored by Tobias Kallauke's avatar Tobias Kallauke
Browse files

Fix images by using webpacker

parent 44ca900e
......@@ -24,6 +24,9 @@ import "custom/info.js";
import "bootstrap/scss/bootstrap.scss";
import "styles/application.scss";
const images = require.context('../images', true)
const imagePath = (name) => images(name, true)
$(() => {
......
......@@ -2,10 +2,10 @@
<div class="col">
<div class="mainPageText">
<h2><%= t('main.title') %></h2>
<img src="/assets/Logo.png" class="mainPageText" style='display: block; margin-left: auto; margin-right: auto '/>
<img src="<%= asset_pack_path('media/images/Logo.png') %>" class="mainPageText" style='display: block; margin-left: auto; margin-right: auto '/>
<p>
<%= raw(t('main.subtitle')) %>
</p>
</div>
</div>
</div>
\ No newline at end of file
</div>
......@@ -11,26 +11,18 @@
</div>
</div>
<div class="row align-items-center">
<div class="col-1">
<div class="col-1">
<div class="centers textvb pointer">
<i id="leftArrow" class="bi bi-chevron-compact-left buttonPrevious fontAnimation"></i>
</div>
</div>
<div class="col-10">
<%= image_tag("tutorial/0.png", :alt => "rss feed",class: "imageTutorial",id:"imageTutorial0") %>
<%= image_tag("tutorial/1.png", :alt => "rss feed",class: "imageTutorial d-none",id:"imageTutorial1") %>
<%= image_tag("tutorial/2.png", :alt => "rss feed",class: "imageTutorial d-none",id:"imageTutorial2") %>
<%= image_tag("tutorial/3.png", :alt => "rss feed",class: "imageTutorial d-none",id:"imageTutorial3") %>
<%= image_tag("tutorial/4.png", :alt => "rss feed",class: "imageTutorial d-none",id:"imageTutorial4") %>
<%= image_tag("tutorial/5.png", :alt => "rss feed",class: "imageTutorial d-none",id:"imageTutorial5") %>
<%= image_tag("tutorial/6.png", :alt => "rss feed",class: "imageTutorial d-none",id:"imageTutorial6") %>
<%= image_tag("tutorial/7.png", :alt => "rss feed",class: "imageTutorial d-none",id:"imageTutorial7") %>
<%= image_tag("tutorial/8.png", :alt => "rss feed",class: "imageTutorial d-none",id:"imageTutorial8") %>
<%= image_tag("tutorial/9.png", :alt => "rss feed",class: "imageTutorial d-none",id:"imageTutorial9") %>
<%= image_tag("tutorial/10.png", :alt => "rss feed",class: "imageTutorial d-none",id:"imageTutorial10") %>
<%= image_tag("tutorial/11.png", :alt => "rss feed",class: "imageTutorial d-none",id:"imageTutorial11") %>
<%= image_tag("tutorial/12.png", :alt => "rss feed",class: "imageTutorial d-none",id:"imageTutorial12") %>
<%= image_tag("tutorial/13.png", :alt => "rss feed",class: "imageTutorial d-none",id:"imageTutorial13") %>
<div class="col-10">
<%= image_pack_tag("media/tutorial/0.png", class: "imageTutorial",id:"imageTutorial0") %>
<% (1..13).each do |i| %>
<%= image_pack_tag("media/tutorial/#{i}.png", class: "imageTutorial d-none",id:"imageTutorial#{i}") %>
<% end %>
</div>
<div class="col-1">
<div class="centers textvb pointer">
......@@ -41,9 +33,9 @@
<div class="col-1"></div>
<div class="col-10 centers textr">
<div class="imgDesc">
<span id="description">Meine Beschreibung zu dem Bild.<span>
<span id="description">Meine Beschreibung zu dem Bild.</span>
</div>
</div>
<div class="col-1 texts"></div>
</div>
</div>
\ No newline at end of file
</div>
# Note: You must restart bin/webpack-dev-server for changes to take effect
default: &default
source_path: app/javascript
source_path: app/frontend
source_entry_path: packs
public_root_path: public
public_output_path: packs
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment