Skip to content
Snippets Groups Projects
Commit 42e9f51d authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Add more styling

parent 8f16a016
No related branches found
No related tags found
No related merge requests found
import {i18n} from './i18n'; import {i18n} from './i18n';
import {html, LitElement} from 'lit-element'; import {css, html, LitElement} from 'lit-element';
import 'vpu-auth'; import 'vpu-auth';
import './vpu-kb-wpe-view'; import './vpu-kb-wpe-view';
import * as commonUtils from 'vpu-common/utils'; import * as commonUtils from 'vpu-common/utils';
...@@ -29,6 +29,14 @@ class KnowledgeBaseWebPageElementViewDemo extends LitElement { ...@@ -29,6 +29,14 @@ class KnowledgeBaseWebPageElementViewDemo extends LitElement {
super.update(changedProperties); super.update(changedProperties);
} }
static get styles() {
// language=css
return css`
h1.title {margin-bottom: 1em;}
div.container {margin-bottom: 1.5em;}
`;
}
getAuthComponentHtml() { getAuthComponentHtml() {
return this.noAuth ? html`` : html` return this.noAuth ? html`` : html`
<div class="content"> <div class="content">
...@@ -55,27 +63,27 @@ class KnowledgeBaseWebPageElementViewDemo extends LitElement { ...@@ -55,27 +63,27 @@ class KnowledgeBaseWebPageElementViewDemo extends LitElement {
</style> </style>
<section class="section"> <section class="section">
<div class="content"> <div class="container">
<h1 class="title">KnowledgeBaseWebPageElementView-Demo</h1> <h1 class="title">KnowledgeBaseWebPageElementView-Demo</h1>
</div> </div>
${this.getAuthComponentHtml()} ${this.getAuthComponentHtml()}
<div class="content"> <div class="container">
<h2 class="subtitle">Deutsch</h2> <h2 class="subtitle">Deutsch</h2>
<p>Ein erster Schritt</p> <p>Ein erster Schritt</p>
<vpu-knowledge-base-web-page-element-view lang="de" entry-point-url="${commonUtils.getAPiUrl()}" value="bedienstete/bibliothek/buch-ausleihen" text="Ein Buch ausleihen"></vpu-knowledge-base-web-page-element-view> <vpu-knowledge-base-web-page-element-view lang="de" entry-point-url="${commonUtils.getAPiUrl()}" value="bedienstete/bibliothek/buch-ausleihen" text="Ein Buch ausleihen"></vpu-knowledge-base-web-page-element-view>
</div> </div>
<div class="content"> <div class="container">
<h2 class="subtitle">Englisch</h2> <h2 class="subtitle">Englisch</h2>
<p>A first step</p> <p>A first step</p>
<vpu-knowledge-base-web-page-element-view lang="en" entry-point-url="${commonUtils.getAPiUrl()}" value="bedienstete/bibliothek/buch-ausleihen" text="Borrow a book"></vpu-knowledge-base-web-page-element-view> <vpu-knowledge-base-web-page-element-view lang="en" entry-point-url="${commonUtils.getAPiUrl()}" value="bedienstete/bibliothek/buch-ausleihen" text="Borrow a book"></vpu-knowledge-base-web-page-element-view>
</div> </div>
<hr> <hr>
<div class="content"> <div class="container">
<p>mit Text in der WebComponent:</p> <p>mit Text in der WebComponent:</p>
<vpu-knowledge-base-web-page-element-view lang="${this.lang}" value="abc/def/xyz" text="FAQ"></vpu-knowledge-base-web-page-element-view> <vpu-knowledge-base-web-page-element-view lang="${this.lang}" value="abc/def/xyz" text="FAQ"></vpu-knowledge-base-web-page-element-view>
</div> </div>
<hr> <hr>
<div class="content"> <div class="container">
<p>ohne Text in der WebComponent:</p> <p>ohne Text in der WebComponent:</p>
Kontaktieren Sie uns unter... Kontaktieren Sie uns unter...
<vpu-knowledge-base-web-page-element-view class="opt" lang="${this.lang}" value="abc/def/klm"></vpu-knowledge-base-web-page-element-view> <vpu-knowledge-base-web-page-element-view class="opt" lang="${this.lang}" value="abc/def/klm"></vpu-knowledge-base-web-page-element-view>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment