diff --git a/pom.xml b/pom.xml
index 9014927..94e6016 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
de.assecutor.votianlt
votianlt
- 0.5
+ 0.5.1
jar
diff --git a/src/main/bundles/prod.bundle b/src/main/bundles/prod.bundle
index 876abda..ab47147 100644
Binary files a/src/main/bundles/prod.bundle and b/src/main/bundles/prod.bundle differ
diff --git a/src/main/java/de/assecutor/votianlt/pages/view/ImprintView.java b/src/main/java/de/assecutor/votianlt/pages/view/ImprintView.java
index ef87421..e20a24c 100644
--- a/src/main/java/de/assecutor/votianlt/pages/view/ImprintView.java
+++ b/src/main/java/de/assecutor/votianlt/pages/view/ImprintView.java
@@ -1,8 +1,8 @@
package de.assecutor.votianlt.pages.view;
-import com.vaadin.flow.component.html.H2;
-import com.vaadin.flow.component.html.Paragraph;
+import com.vaadin.flow.component.html.Div;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
+import org.springframework.core.io.ClassPathResource;
import com.vaadin.flow.router.PageTitle;
import com.vaadin.flow.router.Route;
import jakarta.annotation.security.PermitAll;
@@ -17,15 +17,22 @@ public class ImprintView extends VerticalLayout {
setSpacing(true);
setAlignItems(Alignment.CENTER);
- H2 title = new H2("Impressum");
- add(title);
+ try {
+ // Load HTML content from resources
+ ClassPathResource resource = new ClassPathResource("html/imprint.html");
+ String htmlContent = new String(resource.getInputStream().readAllBytes());
- Paragraph p1 = new Paragraph("Max Mustermann\nMusterstraße 1\n12345 Musterstadt\nDeutschland");
- Paragraph p2 = new Paragraph("Telefon: +49 123 456789\nE-Mail: info@example.com");
- Paragraph p3 = new Paragraph(
- "Umsatzsteuer-ID: DE123456789\nHandelsregister: Amtsgericht Musterstadt, HRB 12345");
- Paragraph p4 = new Paragraph("Verantwortlich für den Inhalt nach § 55 Abs. 2 RStV: Max Mustermann");
+ // Create a Div to hold the HTML content
+ Div imprintDiv = new Div();
+ imprintDiv.getElement().setProperty("innerHTML", htmlContent);
- add(p1, p2, p3, p4);
+ add(imprintDiv);
+
+ } catch (Exception e) {
+ // Fallback content in case of error
+ Div errorDiv = new Div();
+ errorDiv.setText("Fehler beim Laden des Impressums: " + e.getMessage());
+ add(errorDiv);
+ }
}
}
diff --git a/src/main/resources/html/imprint.html b/src/main/resources/html/imprint.html
new file mode 100644
index 0000000..b60c162
--- /dev/null
+++ b/src/main/resources/html/imprint.html
@@ -0,0 +1,35 @@
+
+
Impressum
+
+
+
Assecutor Data Service GmbH
+
+ Gerhart-Hauptmann-Weg 14
+ 21502 Geesthacht
+ Deutschland
+
+ Telefon: +49 40 18 123 771 0
+ E-Mail:
ahoi@assecutor.de
+
+
Geschäftsführung:
+ Carsten Annacker
+ Gunnar Timm
+
+
Firmensitz:
+ Gerhart-Hauptmann-Weg 14, 21502 Geesthacht
+
+
Handelsregister:
+ HRB 8595 HL
+
+
Umsatzsteuer-ID:
+ DE261094748
+
+
Quellenangaben für die verwendeten Bilder und Grafiken:
+
+
Hintergrundbild Startseite:
+ MAN Financial Services (EURO-Leasing), flickr
+ (Creative Commons, Attribution-ShareAlike 2.0 Generic (CC BY-SA 2.0))
+
+
https://www.flickr.com/photos/mbwa_pr/15969764443/in/album-72157632488355514/
+
+
\ No newline at end of file