yet-another-github-card 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +195 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,195 @@
1
+ # Yet Another Github Card - Show your developer skills in social networks
2
+
3
+ [![YAGC logo](./src/images/docs/yagc-showroom.png)](https://yagc.nocc.dev)
4
+
5
+ [![yagc package](https://img.shields.io/npm/v/yet-another-github-card?logo=npm&logoColor=fff)](https://www.npm.im/yet-another-github-card)
6
+ [![NPM Downloads](https://img.shields.io/npm/dm/yet-another-github-card)](https://www.npm.im/yet-another-github-card)
7
+ [![CI/CD](https://github.com/carlesloriente/yet-another-github-card/actions/workflows/publish-release.yml/badge.svg)](https://github.com/carlesloriente/yet-another-github-card/actions/workflows/publish-release.yml)
8
+ [![license](https://img.shields.io/badge/license-MIT-blue.svg?logo=data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIEdlbmVyYXRvcjogU1ZHIFJlcG8gTWl4ZXIgVG9vbHMgLS0+Cgo8c3ZnCiAgIHdpZHRoPSI4MDBweCIKICAgaGVpZ2h0PSI4MDBweCIKICAgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIKICAgY2xhc3M9Imljb24iCiAgIHZlcnNpb249IjEuMSIKICAgaWQ9InN2ZzgiCiAgIHNvZGlwb2RpOmRvY25hbWU9ImRvY3VtZW50LXN2Z3JlcG8tY29tLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMS4zLjIgKDA5MWUyMGVmMGYsIDIwMjMtMTEtMjUpIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlc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gOTQyLjExOTA3IGggNjM1LjcyMzkgViAzOTEuMzMzOTEgWiIKICAgICBpZD0icGF0aDEiIC8+CiAgPHBhdGgKICAgICBkPSJNNTEyLjEgNjRIMTcydjg5Nmg2ODBWMzg1LjZMNTEyLjEgNjR6IG0yNzguOCAzMjQuM2gtMjgwdi0yNjVsMjgwIDI2NXpNODA4IDkxNkgyMTZWMTA4aDI3OC42bDAuMiAwLjJ2Mjk2LjJoMzEyLjlsMC4yIDAuMlY5MTZ6IgogICAgIGZpbGw9IiMzOTM5M0EiCiAgICAgaWQ9InBhdGgyIgogICAgIHN0eWxlPSJmaWxsOiNlNmU2ZTYiIC8+Cjwvc3ZnPgo=)](https://raw.githubusercontent.com/carlesloriente/yet-another-github-card/main/LICENSE)
9
+ [![Socket Badge](https://socket.dev/api/badge/npm/package/yet-another-github-card)](https://socket.dev/npm/package/yet-another-github-card)
10
+
11
+ ## Introduction
12
+
13
+ **Say hello to YACG 🎉**: The GitHub card for your developer portfolio
14
+
15
+ ## Features
16
+
17
+ - Responsive design
18
+ - Dual color mode (light & dark)
19
+ - Customizable stats
20
+ - Different Theme styles
21
+ - Free
22
+
23
+ ## Let's make this project even better for everyone. Sponsorship fuels new features! 🎉
24
+
25
+ [![Become a sponsor today](https://img.shields.io/static/v1?label=Become a sponsor today&message=❤&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/carlesloriente/sponsorships?sponsor=carlesloriente&preview=true&frequency=recurring&amount=5)
26
+
27
+ ## Share on
28
+
29
+ [![Facebook](https://img.shields.io/badge/Facebook-%231877F2.svg?style=for-the-badge&logo=Facebook&logoColor=white)](<https://web.facebook.com/sharer.php?t=yagc: A GitHub card for your developer portfolio!&u=https://github.com/carlesloriente/yet-another-github-card>)
30
+ [![Messenger](https://img.shields.io/badge/Messenger-00B2FF?style=for-the-badge&logo=messenger&logoColor=white)](https://www.facebook.com/dialog/send?link=https://github.com/carlesloriente/yet-another-github-card&redirect_uri=https://github.com/carlesloriente/yet-another-github-card)
31
+ [![Twitter X](https://img.shields.io/badge/Twitter-%23000000.svg?style=for-the-badge&logo=X&logoColor=white)](<https://twitter.com/intent/tweet?text=yagc: A GitHub card for your developer portfolio&url=https://github.com/carlesloriente/yet-another-github-card>)
32
+ [![WhatsApp](https://img.shields.io/badge/WhatsApp-25D366?style=for-the-badge&logo=whatsapp&logoColor=white)](<https://web.whatsapp.com/send?text=yagc:A GitHub card for your developer portfolio https://github.com/carlesloriente/yet-another-github-card>)
33
+ [![Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](<https://t.me/share/url?url=https://github.com/carlesloriente/yet-another-github-card&text=A GitHub card for your developer portfolio!>)
34
+ [![LinkedIn](https://img.shields.io/badge/linkedin-%230077B5.svg?style=for-the-badge&logo=linkedin&logoColor=white)](<https://www.linkedin.com/shareArticle?title=yagc: A GitHub card for your developer portfolio!&url=https://github.com/carlesloriente/yet-another-github-card>)
35
+ [![WordPress](https://img.shields.io/badge/WordPress-%23117AC9.svg?style=for-the-badge&logo=WordPress&logoColor=white)](https://wordpress.com/wp-admin/press-this.php?u=https://github.com/carlesloriente/yet-another-github-card)
36
+ [![Gmail](https://img.shields.io/badge/Gmail-D14836?style=for-the-badge&logo=gmail&logoColor=white)](<mailto:recipient_email?subject=yagc%3A%20A%20GitHub%20card%20for%20your%20developer%20portfolio&body=https%3A%2F%2Fgithub.com%2Fcarlesloriente%2Fyet-another-github-card>)
37
+ [![Reddit](https://img.shields.io/badge/Reddit-FF4500?style=for-the-badge&logo=reddit&logoColor=white)](<https://www.reddit.com/submit?title=yagc: A GitHub card for your developer portfolio!&url=https://github.com/carlesloriente/yet-another-github-card>)
38
+
39
+ ## Table of contents
40
+
41
+ - [Yet Another Github Card - Show your developer skills in social networks](#yet-another-github-card---show-your-developer-skills-in-social-networks)
42
+ - [Introduction](#introduction)
43
+ - [Features](#features)
44
+ - [Let's make this project even better for everyone. Sponsorship fuels new features! 🎉](#lets-make-this-project-even-better-for-everyone-sponsorship-fuels-new-features-)
45
+ - [Share on](#share-on)
46
+ - [Table of contents](#table-of-contents)
47
+ - [What's included](#whats-included)
48
+ - [Bundled dependencies](#bundled-dependencies)
49
+ - [Quick Start](#quick-start)
50
+ - [Including the card in your portfolio site](#including-the-card-in-your-portfolio-site)
51
+ - [Documentation](#documentation)
52
+ - [Using the Yet-Another-Github-Card npm package in your project](#using-the-yet-another-github-card-npm-package-in-your-project)
53
+ - [Github Card Data Options](#github-card-data-options)
54
+ - [Themes](#themes)
55
+ - [1. DefaultTheme](#1-defaulttheme)
56
+ - [2. Cloud](#2-cloud)
57
+ - [3. Polygon](#3-polygon)
58
+ - [Local Demo card](#local-demo-card)
59
+ - [Bugs and Issues](#bugs-and-issues)
60
+ - [Contributing](#contributing)
61
+ - [Creator](#creator)
62
+ - [Thanks](#thanks)
63
+ - [Copyright and License](#copyright-and-license)
64
+
65
+ ## What's included
66
+
67
+ You'll find all the required directories and files within the download, logically grouping common assets and providing compiled and minified variations.
68
+
69
+ ### Bundled dependencies
70
+
71
+ - SVG Backgrounds
72
+ - [A few Bootstrap 5 icons](https://icons.getbootstrap.com)
73
+
74
+ ## Quick Start
75
+
76
+ ### Including the card in your portfolio site
77
+
78
+ Get your HTML embed code at [yagc](https://yagc.notesoncloudcomputing.com/index.html#embedcode), fill in the form with your GitHub username and grab the result code.
79
+
80
+ ## Documentation
81
+
82
+ ## Using the Yet-Another-Github-Card npm package in your project
83
+
84
+ Select your favourite package manager and follow the instructions below.
85
+
86
+ - npm:
87
+
88
+ ```bash
89
+ npm install yet-another-github-card --save
90
+ ```
91
+
92
+ - Yarn:
93
+
94
+ ```bash
95
+ yarn add yet-another-github-card
96
+ ```
97
+
98
+ - Composer:
99
+
100
+ ```bash
101
+ composer require yet-another-github-card
102
+ ```
103
+
104
+ The package folder structure looks like this:
105
+
106
+ ```filesystem
107
+ yet-another-github-card/
108
+ ├─ src/
109
+ | ├─ css/
110
+ | ├─ images/
111
+ | └─ themes/
112
+ └─ utils/
113
+ └─ js/
114
+ ```
115
+
116
+ ### Github Card Data Options
117
+
118
+ | Name | Description | Default value |
119
+ | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------- |
120
+ | `data-style` | Set header background image. | `defaultTheme` |
121
+ | `data-user` | Your GitHub username value | `` |
122
+ | `data-user-stars` | Count all your obtained stars, includes; repositories and gists | `true` |
123
+ | `data-user-stats` | Show selected stats adding/removing JSON key:value entries. Key: name. Values: 'commits', 'contributions', 'followers', 'following', 'prs' | `[{"name": "commits"}, {"name": "prs}]` |
124
+
125
+ ### Themes
126
+
127
+ At the moment, three prebuilt themes are available. Feel free to design unique cards by selecting your own colors and backgrounds!
128
+
129
+ #### 1. DefaultTheme
130
+
131
+ ![YAGC defaultTheme](./src/images/docs/yagc-themes-style_default.png)
132
+
133
+ #### 2. Cloud
134
+
135
+ ![YAGC cloud](./src/images/docs/yagc-themes-style_cloud.png)
136
+
137
+ #### 3. Polygon
138
+
139
+ ![YAGC polygon](./src/images/docs/yagc-themes-style_polygon.png)
140
+
141
+ ### Local Demo card
142
+
143
+ The source includes resources for building and running locally your Github Card.
144
+
145
+ If you want to see it in action, there's a demo included, complete the following steps.
146
+
147
+ Open with your code editor the file `utils/index.html`
148
+
149
+ 1.- Locate the custom element `github-card`, edit `data-user` attribute with your own GitHub username.
150
+
151
+ 2.- Fill with your preferred settings the attributes: `data-user-stars` and `data-user-stats`.
152
+
153
+ 3.- Done, save the file and run the command:
154
+
155
+ ```bash
156
+ npm run compile-demo
157
+ ```
158
+
159
+ The folder `demo` will be created and contain all the required files.
160
+
161
+ To run it throught the bundled web server, run the command:
162
+
163
+ ```bash
164
+ npm run server-watch
165
+ ```
166
+
167
+ Additionally, if you want execute all these steps altogether, run the command:
168
+
169
+ ```bash
170
+ npm run build-demo
171
+ ```
172
+
173
+ ## Bugs and Issues
174
+
175
+ Have a bug or an issue with this package? [Open a new issue](https://github.com/carlesloriente/yet-another-github-card/issues) here on GitHub!
176
+
177
+ ## Contributing
178
+
179
+ New contributors are always welcome! Check out [CONTRIBUTING.md](https://github.com/carlesloriente/yet-another-github-card/blob/master/CONTRIBUTING.md) to get involved.
180
+
181
+ ## Creator
182
+
183
+ **[Carles Loriente](https://www.linkedin.com/in/carles-loriente/)** is the creator and maintainer of the NOCC Bootstrap theme.
184
+
185
+ - [Linkedin](https://www.linkedin.com/in/carles-loriente)
186
+ - [Twitter](https://twitter.com/godarthvader)
187
+ - [GitHub](https://github.com/carlesloriente)
188
+
189
+ ## Thanks
190
+
191
+ Thanks to you.
192
+
193
+ ## Copyright and License
194
+
195
+ Copyright (c) 2025 Carles Loriente. Code released under the [MIT](https://github.com/carlesloriente/yet-another-github-card/blob/master/LICENSE) license.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yet-another-github-card",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Yet another github card profile for use it on your social-networks, blogs or portfolio.",
5
5
  "main": "dist/yagc.js",
6
6
  "type": "module",