{"id":16009706,"url":"https://github.com/htmlelements/smart-card","last_synced_at":"2025-03-18T02:32:20.404Z","repository":{"id":57161049,"uuid":"162279501","full_name":"HTMLElements/smart-card","owner":"HTMLElements","description":"Smart Web Components - Card Custom Element","archived":false,"fork":false,"pushed_at":"2020-01-10T06:49:45.000Z","size":16,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-16T16:24:13.844Z","etag":null,"topics":["card","card-component","card-custom-element","card-view","cardview","custom-cards","custom-elements","ecmascript","html-elements","html5","smart-card","smart-custom-elements","ui-components","ui-toolkit","web-component","web-components"],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HTMLElements.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-18T11:42:11.000Z","updated_at":"2024-04-22T00:17:21.000Z","dependencies_parsed_at":"2022-08-29T07:20:31.048Z","dependency_job_id":null,"html_url":"https://github.com/HTMLElements/smart-card","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HTMLElements%2Fsmart-card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HTMLElements%2Fsmart-card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HTMLElements%2Fsmart-card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HTMLElements%2Fsmart-card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HTMLElements","download_url":"https://codeload.github.com/HTMLElements/smart-card/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244144210,"owners_count":20405368,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["card","card-component","card-custom-element","card-view","cardview","custom-cards","custom-elements","ecmascript","html-elements","html5","smart-card","smart-custom-elements","ui-components","ui-toolkit","web-component","web-components"],"created_at":"2024-10-08T13:03:46.622Z","updated_at":"2025-03-18T02:32:20.143Z","avatar_url":"https://github.com/HTMLElements.png","language":"CSS","readme":"# [Smart Card Element](https://www.htmlelements.com) [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Get%20over%2020%20free%20custom%20elements%20based%20on%20SmartHTMLElements%20\u0026url=https://www.htmlelements.com/\u0026via=htmlelements\u0026hashtags=bootstrap,design,templates,blocks,developers,webcomponents,customelements,polymer,material)\r\n\r\n\u0026nbsp;[![Slack](https://smarthtmlelements-slack.herokuapp.com/badge.svg)](https://smarthtmlelements.slack.com/)\r\n[![Price](https://img.shields.io/badge/price-FREE-0098f7.svg)](https://github.com/HTMLElements/smart-card/blob/master/LICENSE)\r\n[![npm](https://img.shields.io/npm/v/froala-design-blocks.svg?colorB=brightgreen)](https://www.npmjs.com/package/@smarthtmlelements/smart-card)\r\n[![GitHub package version](https://img.shields.io/github/package-json/v/HTMLElements/smart-card.svg)](https://github.com/HTMLElements/smart-card)\r\n[![License: APACHE](https://img.shields.io/badge/license-APACHE-blue.svg)](https://github.com/HTMLElements/smart-card/blob/master/LICENSE)\r\n[![](https://img.shields.io/website-up-down-green-red/https/shields.io.svg?label=www.htmlelements.com)](https://www.htmlelements.com)\r\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/htmlelements/smart-card)\r\n\r\n# \u0026lt;smart-card\u0026gt;\r\n\r\n[Live Demo ↗](https://htmlelements.com/demos/card/)\r\n|\r\n[Documentation ↗](https://www.htmlelements.com/docs/)\r\n|\r\n[Installation ↗](https://www.npmjs.com/package/@smarthtmlelements/smarthtmlelements-core)\r\n\r\n[\u0026lt;smart-card\u0026gt;](https://htmlelements.com/demos/card/) is a Custom HTML Element providing Card view with HTML Content](https://htmlelements.com/).\r\n\r\n\u003c!--\r\n```\r\n\u003ccustom-element-demo\u003e\r\n  \u003ctemplate\u003e\r\n    \u003cscript src=\"../webcomponentsjs/webcomponents-lite.js\"\u003e\u003c/script\u003e\r\n    \u003cscript src=\"../smart-core/source/smart.core.js\"\u003e\u003c/script\u003e\r\n    \u003clink rel=\"stylesheet\" href=\"../smart-core/source/styles/smart.default.css\" type=\"text/css\" /\u003e\r\n\t\u003cstyle\u003e\r\n\t\tbody {\r\n\t\t\tmargin: 0px;\r\n\t\t\tpadding: 0px;\r\n\t\t}\r\n\r\n\t\tsmart-card.basic-card .card-content,\r\n\t\tsmart-card.basic-card .card-action {\r\n\t\t\tbox-sizing: border-box;\r\n\t\t\tpadding: 20px;\r\n\t\t\tcolor: white;\r\n\t\t\tbackground-color: #546E7A;\r\n\t\t\tborder-bottom: 1px solid rgba(160,160,160,0.2);\r\n\t\t\tborder-radius: 2px 2px 2px 2px;\r\n\t\t}\r\n\r\n\t\tsmart-card.basic-card .card-title {\r\n\t\t\tfont-size: 18px;\r\n\t\t}\r\n\r\n\t\tsmart-card.basic-card a {\r\n\t\t\tcolor: #ffab40;\r\n\t\t\ttransition: color .3s ease;\r\n\t\t\ttext-transform: uppercase;\r\n\t\t\tborder-bottom: none;\r\n\t\t\ttext-decoration: none;\r\n\t\t\tmargin-right: 20px;\r\n\t\t}\r\n\r\n\t\t\tsmart-card.basic-card a:hover {\r\n\t\t\t\tcolor: #ffd8a6;\r\n\t\t\t}\r\n\t\u003c/style\u003e\r\n     \u003cnext-code-block\u003e\u003c/next-code-block\u003e\r\n  \u003c/template\u003e\r\n\u003c/custom-element-demo\u003e\r\n```\r\n--\u003e\r\n```html\r\n   \u003csmart-card class=\"basic-card\"\u003e\r\n        \u003cdiv class=\"card-content\"\u003e\r\n            \u003cspan class=\"card-title\"\u003eCard Title\u003c/span\u003e\r\n            \u003cp\u003e\r\n                I am a very simple card. I am good at containing small bits of information.\r\n                I am convenient because I require little markup to use effectively.\r\n            \u003c/p\u003e\r\n        \u003c/div\u003e\r\n        \u003cdiv class=\"card-action\"\u003e\r\n            \u003ca href=\"#\"\u003eThis is a link\u003c/a\u003e\r\n            \u003ca href=\"#\"\u003eThis is a link\u003c/a\u003e\r\n        \u003c/div\u003e\r\n    \u003c/smart-card\u003e\r\n```\r\n\r\n[\u003cimg src=\"https://raw.githubusercontent.com/htmlelements/smart-card/master/smart-card-web-component.png\" alt=\"Screenshot of smart-card\"\u003e](https://htmlelements.com/demos/card/)\r\n\r\n## Getting Started\r\n\r\nSmart HTML Elements components documentation includes getting started, customization and api documentation topics.\r\n\r\n[Getting Started Documentation](https://www.htmlelements.com/docs/)\r\n\r\n\r\n## The file structure for Smart HTML Elements\r\n\r\n- `source/`\r\n\r\n  Javascript files.\r\n\r\n- `source/styles/`\r\n\r\n  Component CSS Files.\r\n\r\n- `demos/`\r\n\r\n  Demo files\r\n\r\n## Running demos in browser\r\n\r\n1. Fork the `Smart-HTML-Elements-Core` repository and clone it locally.\r\n\r\n1. Make sure you have [npm](https://www.npmjs.com/) installed.\r\n\r\n1. When in the `Smart-HTML-Elements-Core` directory, run `npm install` and then `bower install` to install dependencies.\r\n\r\n1. Run a localhost or upload the demo on a web server. Then run:\r\n\r\n  - /demos/smart-card/smart-card-overview.htm\r\n\r\n\r\n## Following the coding style\r\n\r\nWe are using [ESLint](http://eslint.org/) for linting JavaScript code. \r\n\r\n## Creating a pull request\r\n\r\n  - Make sure your code is compliant with ESLint\r\n  - [Submit a pull request](https://www.digitalocean.com/community/tutorials/how-to-create-a-pull-request-on-github) with detailed title and description\r\n  - Wait for response from one of our team members\r\n\r\n\r\n## License\r\n\r\nApache License 2.0\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtmlelements%2Fsmart-card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhtmlelements%2Fsmart-card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtmlelements%2Fsmart-card/lists"}