npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@gemeente-denhaag/dynamic-content

v0.1.1-alpha.165

Published

Dynamic content component, used to display content in multiple ways.

Downloads

516

Readme

Dynamic content

An image list card highlights people or other subjects including a photo in a list.

When to use

Use the image list card when emphasis is placed on the photo and is placed in a list with several of this card. For example, to highlight people with their profession.

Alternatives and related components

Use navigation link groups to only show a list of links instead of a link with a photo.

Types

For now, there are two types of image list cards:

  1. Person
  2. Political parties

Of course, several variants are possible. The important thing to know is that the card always contains a photo that gets a lot of attention, a title and a short description.

Anatomy

A image list card consist of:

  • Image (16:9): photo of the subject or person;
  • Title: name of the subject or person;
  • Description: additional information;
  • Arrow icon: navigates to a page;

(Interactive) state

The image list card contains the states normal, hover and focus.

Design properties

Typography

  • Title: TheMix/xl/700
  • Description: TheSans/md/400

Colors

  • Title: text color Grey/5
  • Description: text color Grey/4
  • Arrow icon: svg color Blue/5

Interactive states

  • Hover: on desktop the arrow icon is visible
  • Focus: arrow icon border color Ocher/5

Structure

  • Title: margin-top 16px
  • Arrow icon: margin-left 24px

Accessibility

Content guidelines

Person

  • Only show the first and last name of the person in the title.
  • The description must contain the person’s profession.

Political party

  • Only show the name of the political party in the title.
  • The description must contain the information you can find on the page when you click the card.

Best practices

  • On screen sizes where the hover is not possible, the arrow icon should already be shown.
  • Keep the information in the card as short as possible.
  • The card must be immediately scannable.
  • The image should show what the card is about.
  • The cards should be used as an alternative to the navigation link group when you also want to show photos.