1.0.17 • Published 10 months ago

@torrez_mn/gh-card v1.0.17

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

GitHub-ProfileCard

Small component to display GitHub profiles in various ways. Completely responsive.

Installation

You can install this component in your project with the fallowing command:

npm i @torrez_mn/gh-card

or by:

npm install @torrez_mn/gh-card

Usage

In your component import the component as fallows:

import '@torrez_mn/gh-card';

Now you can use the component in three diferent ways.

Normal - Horizontal

See a Code Sandbox React demo here.

Produces the same result as the normal version but horizontally.

{/* REACT DEMO */}

{/* IMPORTS */}
import '@torrez_mn/gh-card';

function MyComponent() {
	return (
		<div>

			{/* COMPONENT */}
			<gh-card 
			gh-user='getify'
			gh-mode='horizontal'
			gh-primary-color='rgba(245, 40, 145, 0.8)'
			gh-secondary-color='rgba(0, 100, 20, 1)'
			/>

		</div>
	);
}

export default MyComponent;

Horizontal with Projects

See a Code Sandbox React demo here.

Produce a full screen landscape version with public projects on github. Randomly displays data from the user's public projects and the languages used.

{/* REACT DEMO */}

{/* IMPORTS */}
import '@torrez_mn/gh-card';

function MyComponent() {
	return (
		<div className="App">

			{/* COMPONENT */}
			<gh-card 
			gh-user='TorrezMN'
			gh-mode='horizontal-projects' 
			/>

		</div>
	);
}

export default MyComponent;

Docs

Brief description of the component's props.

propdescriptionrequired
gh-userCorresponds to the username to display. It must match the GitHub user.Required
gh-modeMode in which the component will be displayed: "normal", "horizontal", "horizontal-projects".Required
gh-primary-colorA primary color to use for the component.Only for "normal" and "horizontal" mode.
gh-secondary-colorA secondary color to use for the component.Only for "normal" and "horizontal" mode.
1.0.17

10 months ago

1.0.16

10 months ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.7

2 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago