Files
catalog/ts_web/elements/consentsoftware-header.ts

51 lines
1.3 KiB
TypeScript

import * as shared from './shared.js';
import { LitElement, html, css, type TemplateResult } from 'lit';
import { customElement } from 'lit/decorators.js';
import { property } from 'lit/decorators/property.js';
@customElement('consentsoftware-header')
export class ConsentsoftwareHeader extends LitElement {
public static demo = () => html`<consentsoftware-tabs></consentsoftware-tabs>`;
public static styles = css`
:host {
display: block;
padding: 14px 16px;
font-family: ${shared.fontStack};
border-bottom: 1px solid var(--border, hsl(0 0% 18%));
}
.heading {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.95em;
font-weight: 600;
color: var(--foreground, hsl(0 0% 95%));
}
.icon {
width: 18px;
height: 18px;
opacity: 0.7;
}
`;
constructor() {
super();
}
public render(): TemplateResult {
return html`
<div class="heading">
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"/>
<path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/>
<path d="M12 17h.01"/>
</svg>
Cookie Preferences
</div>
`;
}
}