Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bamacharanchhandogi/react-gfg
Collection of components for showcasing your Geek for Geeks profile in your portfolio
https://github.com/bamacharanchhandogi/react-gfg
components-react gfg-api gfg-profile-data npm-package react-npm
Last synced: 8 days ago
JSON representation
Collection of components for showcasing your Geek for Geeks profile in your portfolio
- Host: GitHub
- URL: https://github.com/bamacharanchhandogi/react-gfg
- Owner: BamaCharanChhandogi
- License: mit
- Created: 2024-03-23T17:51:33.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-21T12:25:14.000Z (8 months ago)
- Last Synced: 2024-07-08T10:42:24.797Z (6 months ago)
- Topics: components-react, gfg-api, gfg-profile-data, npm-package, react-npm
- Language: CSS
- Homepage: https://www.npmjs.com/package/react-gfg
- Size: 2.02 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# React-GFG
eact-GFG is a comprehensive React component library designed to easily showcase detailed profile information for [Geeks for Geeks](https://www.geeksforgeeks.org/) users. Ideal for embedding in portfolios or web applications.
### Full Blog Post
- [Introducing React-GFG on Hashnode](https://bamacharan.hashnode.dev/introducing-react-gfg-fetch-your-geek-for-geeks-profile-details-with-ease/)## Key Features
- π `Profile Stats:` Clean and detailed profile stats presented as reusable components.
- π¨ `Customizable:` Tailor themes and styles to match your application's design.
- π `Open Source:` Released under the [MIT License](./LICENSE) for flexibility and community contributions.## Installation
- Install via npm:
```bash
npm install react-gfg
```- With Yarn:
```bash
yarn add react-gfg
```## Usage
Hereβs a quick example of how to integrate the GFGProfile component into your application:
### Example
```tsx
import { GFGProfile } from "react-gfg";function App() {
return (
);
}export default App;
```![Alt text](images/demo.png)
## Advanced Customization
### You can change the profile picture using the `img` prop:
```tsx
import { GFGProfile } from "react-gfg";function App() {
return (
);
}export default App;
```![Custom Profile Image Example](images/demo1.png)
### Or remove the profile picture entirely with the `showImg` prop:
```tsx
import { GFGProfile } from "react-gfg";function App() {
return (
);
}export default App;
```![No Profile Image Example](images/demo2.png)
## Custom CSS
The `GFGProfile` component uses the following customizable CSS classes:
## Base Styles
- `.card`:Main container for the profile card.
- `.profile-container`: Contains the profile image and information.
- `.profile-image`: The profile image itself.
- `.info-container`: Holds the user's profile details.## Customizable Styles
- `body:` Font family for the entire component.
- `.card:` Background color and gradient of the card.
- `.username:` Username text color and font weight.
- `.info-row:` Styles for the information rows (e.g., institute rank, streaks).### For detailed information, check the [here](src/stories/GFGProfile.css)
## Development
- Clone the repository and install dependencies:
```bash
git clone https://github.com/BamaCharanChhandogi/react-gfg.git
```
- Install the packages
```bash
npm install
#or
yarn install
```- To run example website
```bash
cd examplenpm run dev
#or
yarn dev
```- Run the test
```bash
npm run test
#or
yarn test
```## Contributing
If you would like to contribute to this project, please follow these steps:- Fork the repo
- Clone the repo `git clone https://github.com/BamacharanChhandogi/react-gfg.git`
- Create your feature branch (`git checkout -b feature/YourFeature`)
- Commit your changes (`git commit -am 'Add some feature'`)
- Push to the branch (`git push origin feature/YourFeature`)
- Create a new Pull Request## License
`react-gfg` is released under the [MIT license](./LICENSE).## Thank You
Your contributions and feedback are what make React-GFG better! Thank you for being a part of this project.