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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@gemeente-denhaag/cta-event

v2.1.0

Published

Call To Action Event component

Downloads

428

Readme

Call To Action Event

A calendar event is a standalone link that shows what kind of event is on which date. It links to a content evenement page.

When to use

Use the event when you need to reference an event that contains a date.

Alternatives and related components

  • Use links for navigation actions that appear within or immediately after a sentence.
  • Use CTA links when you link to a page or website that also can be viewed or to a video
  • Use a download when there is a file being downloaded.
  • Use a image content link when there is a link in conjunction with an image.

Anatomy

The calendar event consists of:

  • Date icon: shows the day and abbreviated month of the event;
  • Header link: shows the name of the event;
  • Date: shows the full date;
  • Container;

(Interactive) states

The calendar event contains the states normal, hover and focus.

Design properties

Typography

Date icon

  • day TheSans/md/400,
  • month TheSans/sm/400

Header link

TheSans/lg/400

Date

TheSans/lg/700

Colors

  • Date icon: background-color Blue/3, text color white;
  • Header link: text color Blue/3;
  • Date: text color Grey/4;
  • Container: border-top and border-bottom line color Grey/2;

Interactive states

Hover

header link text color Blue/4, date icon background-color Blue/4;

Focus

header link text color Blue/4, date icon background-color Blue/4, container border color Ocher/5;

Structure

  • Date icon: background circle size 64px, padding-left 16px, padding-right 24px, day and month padding-top and padding-bottom 12px;
  • Header link: padding-bottom 4px;
  • Header link and date: padding right 16px;
  • Container: padding-top and padding-bottom 24px, border line 1px;

Accessibility

[technical requirements]

Content guidelines

Date icon

The date icon should:

  • Contain the digit of the event day. If the digit is <10, then use ‘0’ before for the number (e.g. ‘01’, ‘05’);
  • Contain only the first three letters of the month.

Heading link

The heading link should:

  • Show in one sentence what the event is all about;
  • Start the sentence with the event type (e.g. ‘Spreekuur’ or ‘Bijeenkomst’);
  • Use the hyphen to break the text.

Date

The date should:

  • Show the full date, so the day (e.g. ‘Maandag’), digit of the day (e.g. ‘1’), month (e.g. ‘Januari’) and year (e.g. ‘2022’);
  • Not use the hyphen when breaking the text. Let the text continue on the next line.

Best practices

Do's

Calendar events should:

  • Always link to a content event page;
  • Be grouped under each other when there is more than 1 event;
  • Be placed above, under or between a text (usually in a list);
  • Be full width (100%)

Don'ts

Calendar events should:

  • Not be used to link to another page other than a content evenement page.

References