-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
546 additions
and
378 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { html, css, LitElement, unsafeCSS } from "lit"; | ||
import { customElement } from "lit/decorators.js"; | ||
import bootstrapcss from 'bootstrap/dist/css/bootstrap.min.css?raw'; | ||
|
||
import other_tools from "./other_tools.json"; | ||
import { componentStyle } from "./styles/Common"; | ||
|
||
@customElement("other-tools") | ||
export class OtherTools extends LitElement { | ||
static styles = [componentStyle, css`${unsafeCSS(bootstrapcss)}`]; | ||
|
||
render() { | ||
console.log("rendering"); | ||
console.log(bootstrapcss); | ||
return html`<div class="component"> | ||
<h5>Other Tools</h5> | ||
<ul> | ||
${Object.entries(other_tools).map( | ||
([key, value]) => | ||
html`<li key=${key}> | ||
<a href=${value} target="_blank">${key}</a> | ||
</li>` | ||
)} | ||
</ul> | ||
</div>`; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
declare namespace JSX { | ||
interface IntrinsicElements { | ||
"other-tools": any; | ||
} | ||
} | ||
declare module "*.css"; | ||
|
||
declare module "*?raw" { | ||
const content: string; | ||
export default content; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { css } from 'lit'; | ||
export const componentStyle = css` | ||
.component { | ||
border-radius: 1rem; | ||
background: #eee; | ||
padding: 1rem; | ||
text-align: center; | ||
flex: 1 1 30%; | ||
display: flex; | ||
flex-direction: column; | ||
}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters