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/cta-image-content

v0.1.2

Published

The CtaImageContent component

Downloads

1,353

Readme

Cta Image Content

Introduction

An image content link is a link in combination with a photo that stands out more than a regular link.

When to use

Use an image content link on the overview page to draw attention to a link. A photo is also added that is additional to the link and the text.

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

Anatomy

The image content link consists of:

  • Label: shows the name of the page where it is being linked to
  • Text: additional information about the link
  • Image: a matching photo
  • Button: to highlight the call to action
  • Container: background of the link and text

(Interactive) states

The image content link contains the states normal, hover and focus.

Design properties

Typography

  • Link: TheMix/2xl/700
  • Text: TheSans/xl/400

In mediem

  • Link: TheMix/xl/700
  • Text: TheSans/lg/400

Colors

  • Label: text color Grey/5
  • Text: text color Grey/4
  • Container: background-color white*, stroke Grey/2

The color of the container may vary. If the background color is other than white, the container does not have a stroke.

Interactive states

Hover

  • Shadow: blur-16, Y=4, color: #000 16%

Structure

Desktop

  • Link: padding-bottom 16px
  • Spacing between text: 8px
  • Spacing between: 24px
  • Container: padding-left and padding-right 64px, padding-top and padding-bottom 32px, corner radius 0 3 3 0

Mobile

  • Link: padding-bottom 16px
  • Spacing between text: 8px
  • Spacing between 24px
  • Container: padding 24px, corner radius 0 0 3 3

Accessibility

Focus tab on header text. Accessiblity label of the link consist only of the header.

Content guidelines

Link The link should:

  • Must show a short and clear page name being linked to.

Text The text should:

  • Be supportive to the link.
  • Explain in a few words what the page being linked to is about.

Best practices

Do's Image content links should:

  • Grow vertically with the cotainer. The height of the image needs to be as big the container.
  • Be full width (100%)
  • Only be used once on a page.
  • Indicate that an external website is linked by means of the external link icon.
  • Occur on overview pages with a lot of information such as lists to get emphasis.
  • Make sure the photo says something about the link. You can have the photo appear on the page to ensure recognisability.

Don'ts Image content links should:

  • Not be used more than once on a page because it draws too much attention.

References

https://www.denhaag.nl/nl/in-de-stad/verkeer-en-vervoer/bereikbaarheid.htm