CyberCRI / learn-ext

WeLearn Browser Extension
https://welearn.cri-paris.org
MIT License
11 stars 1 forks source link

Distinguish `CRI Projects` cards from regular links #144

Closed prashnts closed 4 years ago

prashnts commented 4 years ago

We recently implemented the sync process for adding CRI Projects to our database. It'd be nice to distinguish the cards to present those resources.

The simplest method (which I am going to use) is to add data-type attributes to the <ResourceCard/> component based on the resource.url property. This will let us target some domains, such as projects.cri-paris.org, youtube.com, *.wikipedia.org etc with additional styling on them.

This is what we'll be updating:

Snip 2020-03-11 at 12 19 39