Commit 7ea04fdf authored by Yorrd's avatar Yorrd
Browse files

fix: open live chat on desktop

parent dc67c855
Pipeline #1740 passed with stages
in 10 minutes and 6 seconds
......@@ -6,6 +6,7 @@ import { spacing } from 'imports/git_modules/design/generate-base/tokens';
import { rxRepeat } from 'imports/git_modules/base/rx-repeat';
import { AdornisUser } from 'imports/git_modules/users/db';
import '@adornis/design/generate-base/molecules';
import { getDevice, BreakPoint } from 'imports/git_modules/base/window-size';
@element('ccb-landing-page')
export class CCBLandingPage extends EmotionMixin(ScopingElement) {
......@@ -67,11 +68,17 @@ export class CCBLandingPage extends EmotionMixin(ScopingElement) {
></iframe>
<a-inline size="md">
<a-link href="https://t.me/CoronaLegalChatBot" target="_blank">
<ccb-button class="${this.css({ width: '100%' })}">
Zum Legal Chatbot für&nbsp;<b>Fragende</b> auf Telegram
</ccb-button>
</a-link>
<ccb-button
@click=${() => {
if (getDevice() < BreakPoint.tablet) {
window.open('https://t.me/CoronaLegalChatBot');
} else {
window.botpressWebChat.sendEvent({ type: 'show' });
}
}}
>
Zum Legal Chatbot für&nbsp;<b>Fragende</b>
</ccb-button>
<a-link href="/contentadmin">
<ccb-button secondary class="${this.css({ width: '100%' })}">
Zum Autorentool
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment