feat: Added compact layout for top languages card (#179)

* compact layout for top langs card

* 🐞 FIX: most used lang should be first, apply correct colors, removed nested svgs and height set

* 🐞 FIX: conditionally rendering layout compact

* 🐞 FIX: border radius on lang progressbar

* refactor: refactored code & fixed bugs

* fix: toFixed

* chore: change string interpolation

* docs: updated readme

Co-authored-by: anuraghazra <hazru.anurag@gmail.com>
This commit is contained in:
Sagar
2020-07-26 21:45:23 +05:30
committed by GitHub
parent 3bdcf3d61f
commit b8330a88e1
4 changed files with 139 additions and 19 deletions

View File

@@ -20,6 +20,7 @@ module.exports = async (req, res) => {
bg_color,
theme,
cache_seconds,
layout
} = req.query;
let topLangs;
@@ -49,6 +50,7 @@ module.exports = async (req, res) => {
text_color,
bg_color,
theme,
layout
})
);
};