DEV Community

Cover image for Beautiful GitHub cards for your portfolio website. πŸŽ‰
Rocktim Saikia
Rocktim Saikia

Posted on

6 2

Beautiful GitHub cards for your portfolio website. πŸŽ‰

Repo: https://github.com/RocktimSaikia/github-card
Live: https://codepen.io/RocktimSaikia/full/jObbBmR

For a couple of days, I've been learning about web components. It's a completely new concept for me.I've heard about it before but never actually tried it. So this time I set my mind to build one from complete scratch.

So I planned to create a GitHub profile card web component that can be embedded on any website. Once the idea was clear I started creating quite a few card designs. Here are some designs I created before settling with the final design.

brainstorm-compressor

Usage

1.Through importing script

<github-card data-user="rocktimsaikia"></github-card>

<script src="https://unpkg.com/@rocktimsaikia/github-card@1.0.0/dist/widget.min.js" type="module"></script>
Enter fullscreen mode Exit fullscreen mode

2.Through installing the package

import "@rocktimsaikia/github-card";

<github-card data-user="rocktimsaikia"></github-card>
Enter fullscreen mode Exit fullscreen mode

If you want to contribute to this project please do. That would be awesome😊

Top comments (0)

typescript

11 Tips That Make You a Better Typescript Programmer

1 Think in {Set}

Type is an everyday concept to programmers, but it’s surprisingly difficult to define it succinctly. I find it helpful to use Set as a conceptual model instead.

#2 Understand declared type and narrowed type

One extremely powerful typescript feature is automatic type narrowing based on control flow. This means a variable has two types associated with it at any specific point of code location: a declaration type and a narrowed type.

#3 Use discriminated union instead of optional fields

...

Read the whole post now!

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay