0.5.1
This commit is contained in:
Binary file not shown.
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
35
src/main/resources/html/imprint.html
Normal file
35
src/main/resources/html/imprint.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<div style="text-align: center; max-width: 800px; margin: 0 auto;">
|
||||
<h2>Impressum</h2>
|
||||
|
||||
<div style="text-align: left; margin-top: 30px;">
|
||||
<h5>Assecutor Data Service GmbH</h5>
|
||||
<br>
|
||||
Gerhart-Hauptmann-Weg 14<br>
|
||||
21502 Geesthacht<br>
|
||||
Deutschland<br>
|
||||
<br>
|
||||
Telefon: +49 40 18 123 771 0<br>
|
||||
E-Mail: <a href="mailto:ahoi@assecutor.de">ahoi@assecutor.de</a><br>
|
||||
<br>
|
||||
<h5>Geschäftsführung:</h5>
|
||||
Carsten Annacker<br>
|
||||
Gunnar Timm<br>
|
||||
<br>
|
||||
<h5>Firmensitz:</h5>
|
||||
Gerhart-Hauptmann-Weg 14, 21502 Geesthacht<br>
|
||||
<br>
|
||||
<h5>Handelsregister:</h5>
|
||||
HRB 8595 HL<br>
|
||||
<br>
|
||||
<h5>Umsatzsteuer-ID:</h5>
|
||||
DE261094748<br>
|
||||
<br>
|
||||
<h5>Quellenangaben für die verwendeten Bilder und Grafiken:</h5>
|
||||
<br>
|
||||
<h6>Hintergrundbild Startseite:</h6>
|
||||
MAN Financial Services (EURO-Leasing), flickr<br>
|
||||
(Creative Commons, Attribution-ShareAlike 2.0 Generic (CC BY-SA 2.0))<br>
|
||||
<br>
|
||||
<a href="https://www.flickr.com/photos/mbwa_pr/15969764443/in/album-72157632488355514/" target="_blank">https://www.flickr.com/photos/mbwa_pr/15969764443/in/album-72157632488355514/</a>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user