This is a profile card made in a SVG, that can be imported into a GitHub profile readme (or elsewhere). It works by using a foreignObject
inside of an SVG, which allows you to use HTML and CSS beyond what the GitHub sanitization process allows.
Also check out the tool-card I also made :)
To use the card, either copy the contents of profile-card.svg
or download it. Then paste it into your profile git repository, and add an image tag in your profile readme, displaying the SVG, like this: ![](path/to/profile-card.svg)
. The path can also be to the raw file, if hosted in a seperate repository.
Simply go into the SVG and add entries accordingly. There are 6 proficiencies, all identified by ids; see the SVG as an example.
Tip
When editing the SVG, open the file locally in the browser. It is a more accurate preview of how it will look in the real world.
The entire thing is contained within an <article>
tag, which is necessary to make it display properly on all GitHub themes. See the minimal example further down.
The typing animation is implemented with keyframes, changing the content each keyframe. You can with some effort change this text. If your text is the same length or shorter you can get away with less editing.
Tip
Divide 100% by the amount of letters you want to type and increment the keyframe by that. You can experiment a lot with this though.
Also see this code example if you want to change the type of typing marker. Default is _
.
Every category is contained in it's own <section class="category-container"
, containing a <h4>
element and an <ul>
element.
<section class="category-container">
<h4><span class="emoji">π΅</span> Category</h4>
<ul>
<li class="proficient">π¦ Racoon.js</li>
<li class="learning">π
Girlboss</li>
</ul>
</section>
Either put the emoji inline, in the <h4>
tag or put it inside <span class="emoji">π</span>
. The emoji
class will make it into it's own little "bubble".
Unfortunately it's not trivial to include any old icon (you have to convert it into BASE64) which is why I've opted for emojis.
There are 6 levels built-in. They are as follows:
- πͺ
proficient
: Languages you can write in with your eyes (almost) closed - π
good
: Languages you know well, comfortably enough to be opinionated - π
average
: Languages you are average in, about as competent as most people - π€
below average
: You aren't fully comfortable in this language, but you can hack something together with effort - π‘
accquainted
: You have come across and had to use this language as part of a course or similar, but didn't get the hang of it. Despite, you can still write a couple lines and read the syntax - π§
learning
: What it says on the tin
These are marked by wrapping the corresponding skill in an <li>
element with the class set to one of the above, like:
<li class="proficient">π¦ Racoon.js</li>
Tip
As of v3, the card can now wrap lists, meaning you can add as many skills as you want. Don't forget to set the SVG size, though
There are 6 colors corresponding to the 6 proficiencies, which you can change easily by editing CSS variables at the top of the SVG.
Note
This does not include the rest of the SVG, you also need the headings and style. See the SVG file.
<article id="language-card">
<section class="category-container">
<h4><span class="emoji">π΅</span> Category</h4>
<ul>
<li class="proficient">π¦ Racoon.js</li>
<li class="learning">π
Girlboss</li>
</ul>
</section>
<section class="category-container" id="legend">
<h4><span class="emoji">πΊοΈ</span> Legend</h4>
<ul>
<li class="proficient">πͺ Proficient</li>
<li class="good">π Good</li>
<li class="average">π Average</li>
<li class="belowaverage">π€ Below average</li>
<li class="accquainted">π‘ Accquainted</li>
<li class="learning">π§ Learning</li>
</ul>
</section>
</article>
Tip
Don't forget to change the SVG height and width at the top of the file, or it might either be too large or get cut off. Also set the language-card
height.
Feel free to contribute, though I would prefer you not change the contents of the list in this repository as the SVG hosted here is used on my profile.
While it is not necessary, I would be happy if you referred to this repo when using the card. I would also love to see what you create with it!
Important
This repository is licensed under the MIT license, please accquaint yourself with it before using this code.
Important
While making the typing animation, I used this CSS animation and this guide, for reference - though it has since strayed from those roots. Otherwise everything else is my own work.
This repository is updated in conjunction with my profile, mainly so it is easier to maintain. Not every commit is therefore relevant functionality - some are simply me updating my profile.