added subpages

This commit is contained in:
2025-11-19 10:30:38 +01:00
parent a52605f8e8
commit e0869958ab
18 changed files with 143 additions and 134 deletions

0
app/assets/builds/.keep Normal file
View File

View File

@ -0,0 +1,6 @@
@import "tailwindcss";
h1 { @apply font-bold text-2xl; }
h2 { @apply font-bold text-xl; }
ul { @apply list-inside; }
li { @apply list-disc; }

View File

@ -0,0 +1,8 @@
class WelcomeController < ApplicationController
def index
end
def pages
render params[:page]
end
end

View File

@ -0,0 +1,2 @@
module WelcomeHelper
end

View File

@ -23,6 +23,19 @@
</head>
<body>
<%= yield %>
<nav class="m-4">
<ul class="inline *:inline *:pr-2 *:after:content-['|'] *:after:pl-2">
<li><%= link_to "Home", root_path %></li>
<li><%= link_to "Leistungen", pages_path(:leistungen) %></li>
<li><%= link_to "Anfahrt", pages_path(:anfahrt) %></li>
<li><%= link_to "Kontakt", pages_path(:kontakt) %></li>
<li><%= link_to "Datenschutz", pages_path(:datenschutz) %></li>
<li><%= link_to "Impressum", pages_path(:impressum) %></li>
</ul>
</nav>
<main class="container mx-auto mt-28 px-5">
<%= yield %>
</main>
</body>
</html>

View File

@ -0,0 +1,12 @@
<div>
<h1 class="font-bold text-4xl">Anfahrt</h1>
<p>Find me in app/views/welcome/anfahrt.html.erb</p>
</div>
<p class="mt-10">
<h2>Beschreibung</h2>
<ul>
<li>Wir arbeiten hier mit Bilder und Links</li>
<li>Weiter verwenden wir für die Plazierung auf der Seite div's mit p's und br's</li>
</ul>
</p>

View File

@ -0,0 +1,12 @@
<div>
<h1 class="font-bold text-4xl">Datenschutz</h1>
<p>Find me in app/views/welcome/datenschutz.html.erb</p>
</div>
<p class="mt-10">
<h2>Beschreibung</h2>
<ul>
<li>Text und Heading</li>
<li>Was beinhaltet eine Datenschutzseite?</li>
</ul>
</p>

View File

@ -0,0 +1,12 @@
<div>
<h1 class="font-bold text-4xl">Impressum</h1>
<p>Find me in app/views/welcome/impressum.html.erb</p>
</div>
<p class="mt-10">
<h2>Beschreibung</h2>
<ul>
<li>Wieder Text mit H1 bis H6 und Paragaphen</li>
<li>Was beinhaltet ein Impressum</li>
</ul>
</p>

View File

@ -0,0 +1,13 @@
<div>
<h1 class="font-bold text-4xl">Welcome</h1>
<p>Find me in app/views/welcome/index.html.erb</p>
</div>
<p class="mt-10">
<h2>Beschreibung</h2>
<ul>
<li>Was sind Tags</li>
<li>was ist CSS</li>
<li>Wir machen und das Leben einfacher mit Tailwind CSS</li>
</ul>
</p>

View File

@ -0,0 +1,15 @@
<div>
<h1 class="font-bold text-4xl">Kontakt</h1>
<p>Find me in app/views/welcome/kontakt.html.erb</p>
</div>
<p class="mt-10">
<h2>Beschreibung</h2>
<ul>
<li>Was ist ein Formular</li>
<li>Was sind Felder, Text, Radio, Checkbox und Textarea</li>
<li>Kann man Telefon, Email und Datum bei der Eingabe erzwingen?</li>
<li>Ich stelle mich vor</li>
<li>Ich baue ein Bild von mir ein</li>
</ul>
</p>

View File

@ -0,0 +1,12 @@
<div>
<h1 class="font-bold text-4xl">Leistungen</h1>
<p>Find me in app/views/welcome/Leistungen.html.erb</p>
</div>
<p class="mt-10">
<h2>Beschreibung</h2>
<ul>
<li>Viel Text mit Header h1 - h6</li>
<li>Text in Paragaphen mit p und br</li>
</ul>
</p>