An open API service indexing awesome lists of open source software.

https://github.com/kyle-west/dh-components

This repo serves as a collection of web components used on the detachedHEAD blog
https://github.com/kyle-west/dh-components

Last synced: 3 months ago
JSON representation

This repo serves as a collection of web components used on the detachedHEAD blog

Awesome Lists containing this project

README

        

# `dh-components`

This repo serves as a collection of web components used on the [`detachedHEAD` blog](https://detachedhead.net/).

## ``

![](./assets/dh-podcast-links.png)

This component hosts all of the active links to where you can listen to the detachedHEAD Podcast.

### Usage:

```html

...

```

As shown above, the styling applied is minimal. There is no ShadowDOM applied for the intention to have it match the styles of the host website.

Additionally you can add a callback function for when the user clicks on one of the links (for the potential use of metric tracking).

```html

function someoneClickedOneOfTheLinks (company, data, event) {
// INCOMING DATA IS OF THE FORM:
// company --- "Spotify"
// data --- {url: "https://open.spotify…", icon: "./asset…"}
// event --- MouseEvent {isTrusted: true, screenX: 486, …}
}

```