New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular-naive-card

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-naive-card

Super simple angular component to show data in a card

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

angular-naive-card

Build Status

Super simple angular component to show data in a card.

Installation

Bower
bower install angular-naive-card

Npm

npm install angular-naive-card

Usage

  1. Add angular-naive-card.(min).js to your main file (index.html)
<script type="text/javascript" src="bower_components/angular-naive-card/dist/angular-naive-card.js"></script>
  1. Set cabargues.naive-card as a dependency in your module
var myapp = angular.module('myapp', ['cabargues.naiveCard'])
  1. Add naiveCard component to the wanted element passing the data to show, example:
<div naiveCard data=data></span>

The expected data structure is the following:

data = {
 title: 'title shown in the card',
 content: 'content to shown below the title',
 img: 'image to show',
 url: 'url to redirect the user on image click'
}

Customize the UI

You have several ways to customize the UI to meet your project requirements.

Modify the original .scss and generate the .css file with your changes.

  1. Download or clone the project from github repository.
git clone https://github.com/cabargues/angular-naive-card.git
  1. Modify the file src/naive-card/naive-card.scss as desired. All values are declared as SASS variables.`
// Contains all the styling for naive-card component

// Container
$naive-card-max-width: 100% !default;
$naive-card-margins: 5px !default;
$naive-card-container-margin: 0 !default;
$naive-card-figure-max-width: 100% !default;
  1. Build the project
npm run-script build
  1. Copy the .css file somewhere in your project and reference it from your index.html.

Include the .scss in your workflow

All scss properties are declared as !default so you can import the .scss file and override the values with the ones that best fits your project.

TODO

Tests

Keywords

FAQs

Package last updated on 05 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc