summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/eu/mulk/mulkcms2/cms/about/AboutResource.java23
-rw-r--r--src/main/resources/META-INF/resources/cms2/base.css4
-rw-r--r--src/main/resources/templates/base.html3
-rw-r--r--src/main/resources/templates/benki/about/index.html37
4 files changed, 66 insertions, 1 deletions
diff --git a/src/main/java/eu/mulk/mulkcms2/cms/about/AboutResource.java b/src/main/java/eu/mulk/mulkcms2/cms/about/AboutResource.java
new file mode 100644
index 0000000..39ecaca
--- /dev/null
+++ b/src/main/java/eu/mulk/mulkcms2/cms/about/AboutResource.java
@@ -0,0 +1,23 @@
+package eu.mulk.mulkcms2.cms.about;
+
+import static javax.ws.rs.core.MediaType.TEXT_HTML;
+
+import io.quarkus.qute.Template;
+import io.quarkus.qute.TemplateInstance;
+import io.quarkus.qute.api.ResourcePath;
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+
+@Path("/about")
+public class AboutResource {
+
+ @ResourcePath("benki/about/index.html")
+ Template index;
+
+ @GET
+ @Produces(TEXT_HTML)
+ public TemplateInstance getIndex() {
+ return index.instance();
+ }
+}
diff --git a/src/main/resources/META-INF/resources/cms2/base.css b/src/main/resources/META-INF/resources/cms2/base.css
index 088aa65..ec84ca9 100644
--- a/src/main/resources/META-INF/resources/cms2/base.css
+++ b/src/main/resources/META-INF/resources/cms2/base.css
@@ -114,6 +114,10 @@ body > nav a:hover {
background-color: #f8f8f8;
}
+body > nav li[data-site-section="About"] {
+ margin-top: 1em;
+}
+
body > main {
grid-area: main;
diff --git a/src/main/resources/templates/base.html b/src/main/resources/templates/base.html
index 36f22a0..0d4408c 100644
--- a/src/main/resources/templates/base.html
+++ b/src/main/resources/templates/base.html
@@ -22,6 +22,7 @@
<li class="{#insert bookmarksClass}{/}" data-site-section="Book Marx"><a href="/bookmarks">Bookmarks</a></li>
<li class="{#insert lazychatClass}{/}" data-site-section="Lafargue"><a href="/lazychat">Lazy Chat</a></li>
<li class="{#insert wikiClass}{/}" data-site-section="Wiki"><a href="/wiki/Home">Wiki</a></li>
+ <li class="{#insert aboutClass}{/}" data-site-section="About"><a href="/about">Contact Info</a></li>
</ol>
</nav>
@@ -30,7 +31,7 @@
</main>
<footer>
- <a href="/imprint">Imprint</a>
+ <a href="/about">Contact Information</a>
</footer>
</body>
</html>
diff --git a/src/main/resources/templates/benki/about/index.html b/src/main/resources/templates/benki/about/index.html
new file mode 100644
index 0000000..f59ee2c
--- /dev/null
+++ b/src/main/resources/templates/benki/about/index.html
@@ -0,0 +1,37 @@
+{@eu.mulk.mulkcms2.benki.wiki.WikiPageRevision page}
+
+{#include base.html}
+
+{#title}About This Site{/title}
+{#siteSection}About This Site{/siteSection}
+{#aboutClass}this-page{/aboutClass}
+
+{#head}{/head}
+
+{#body}
+
+<article id="contact-info">
+ <header>
+ <hgroup>
+ <h1>Contact Information</h1>
+ <h2>Information according to § 5 TMG, § 55 Abs. 2 RStV</h2>
+ </hgroup>
+ </header>
+
+ <p>Responsible for the content on this site:</p>
+
+ <section id="contact-info-main">
+ <address>
+ Matthias Benkard<br/>
+ Machtlfinger Str. 29<br/>
+ 81379 München<br/>
+ <br/>
+ E-Mail: <a href="mailto:admin@mulk.eu">admin@mulk.eu</a><br/>
+ Phone: <a href="tel:+49088568054002">+49-8856-8054002</a><br/>
+ Fax: <a href="tel:+498920008761207">+49-89-20008761207</a><br/>
+ </address>
+ </section>
+</article>
+{/body}
+
+{/include}