import { LitElement, css, html } from "lit"
import "./doc-icon.js"
export default class Element extends LitElement {
static override styles = css`
a {
text-decoration: none;
color: inherit;
display: inner-block;
margin: 0;
}
.doc-link {
padding: 1rem;
border-radius: 0.5rem;
background-color: #f1f5f9;
transition: background-color 0.2s ease-in-out;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.doc-link:hover {
background-color: #e1e7f0;
}
.doc-link > * {
margin: 0;
}
.doc-link > h4 {
font-weight: 600;
}
.icons {
display: flex;
justify-content: flex-start;
gap: 8px;
margin-bottom: 16px;
}
.icon {
display: flex;
width: 40px;
height: 40px;
justify-content: center;
align-items: center;
border-radius: 8px;
background-color: #e3e8ee;
color: #475569;
}
`
static override properties = {
title: { type: String },
description: { type: String },
icon: { type: String },
href: { type: String },
}
override title: string = ""
description: string = ""
icon: string = ""
href: string = ""
override render() {
return html`
${this.title}
${this.description}
`
}
}
if (typeof customElements !== "undefined" && !customElements.get("doc-link")) {
customElements.define("doc-link", Element)
}