0.1.0 • Published 6 years ago
gh-profile-card v0.1.0
gh-profile
GitHub profile widget. A simple widget to display your github profile and repositories.
Usage
Include script and style just before tag:
<script src="/dist/github-widget.esm.mjs" type="module"></script>Include HTML code anywhere you would like to place widget:
<github-w user="binodswain">
<profile-info
data-theme="light"
data-company="true"
data-bio="false"
>
</profile-info>
</github-w>Screenshot

Configurations
profile-info options repo-info options
Examples
- Dark mode
<github-w user="binodswain">
<profile-info
data-theme="dark"
data-company="true"
data-bio="false"
>
</profile-info>
</github-w>- Profile + repo
<github-w user="binodswain">
<profile-info
data-theme="light"
data-company="true"
data-bio="false"
>
<repo-info
data-limit="5"
data-direction="desc"
data-sort="updated"
></repo-info>
</profile-info>
</github-w>- Multiple widgets in same page
<github-w user="binodswain">
<profile-info
data-theme="dark"
data-company="true"
data-bio="false"
>
</profile-info>
</github-w>
...
<github-w user="<otheruser>">
<profile-info
data-theme="dark"
data-company="true"
data-bio="false"
>
</profile-info>
</github-w>- Only repositories
<github-w user="binodswain">
<repo-info
data-limit="5"
data-direction="desc"
data-sort="updated"
></repo-info>
</github-w>0.1.0
6 years ago