Skip to content
Snippets Groups Projects
Commit 34d3fab4 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

added link to contact form when chat is inactive

parent dc815db8
No related branches found
No related tags found
No related merge requests found
...@@ -343,7 +343,8 @@ nav#primary-nav { ...@@ -343,7 +343,8 @@ nav#primary-nav {
} }
} }
button.open-chat { button.open-chat,
a.contact-form {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
...@@ -357,6 +358,19 @@ button.open-chat { ...@@ -357,6 +358,19 @@ button.open-chat {
width: 1rem; width: 1rem;
} }
} }
a.contact-form {
display: none;
font-size: 0.9rem;
}
button.open-chat.hidden,
button.open-chat.is-inactive {
& + a.contact-form {
display: flex;
}
}
.zammad-chat.zammad-chat-is-open { .zammad-chat.zammad-chat-is-open {
z-index: 99999; z-index: 99999;
} }
......
...@@ -5,10 +5,15 @@ ...@@ -5,10 +5,15 @@
<li><a href="/impressum"><%= req.t("footer.impress", {ns: "pageheader"}) _%></a></li> <li><a href="/impressum"><%= req.t("footer.impress", {ns: "pageheader"}) _%></a></li>
</ul> </ul>
</footer> </footer>
<button class="open-chat button hidden" data-title="<%= req.t("chat.title", {ns: "pageheader"})%>" data-chatid="<%= req.lng == "de"? 1 : 2 %>"> <button class="open-chat button hidden" data-title="<%= req.t("chat.title", {ns: "pageheader"})%>" data-chatid="<%= req.lng == "de"? 1 : 2 %>">
<img src="<%= baseDir %>/images/chat.svg" /> <img src="<%= baseDir %>/images/chat.svg" />
<%= req.t("chat.button", {ns: "pageheader"}) _%> <%= req.t("chat.button", {ns: "pageheader"}) _%>
</button> </button>
<a class="contact-form button" href="<%= baseDir.replace("/keys", "")%>/kontakt" target="_blank">
<img src="<%= baseDir %>/images/letter.svg" />
<%= req.t("chat.button", {ns: "pageheader"}) _%>
</a>
</body> </body>
</html> </html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment