Skip to content

Commit

Permalink
Release 5 new icons and 3 updated icons (v4.10.0)
Browse files Browse the repository at this point in the history
# New Icons

- dwm (#4891)
- LiveChat (#4871)
- PubMed (#4705)
- Showtime (#4864)
- suckless (#4890)

# Updated Icons

- .NET (#4906)
- Google Chrome (#4525)
- Google Sheets (#4685)
  • Loading branch information
ericcornelissen committed Feb 7, 2021
2 parents 2dfbc85 + b2e3157 commit 2ce6c91
Show file tree
Hide file tree
Showing 16 changed files with 165 additions and 45 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -131,7 +131,7 @@ Icons are also available as a [Drupal module](https://www.drupal.org/project/sim

### Flutter

Icons are also available as a [Flutter package](https://pub.dev/packages/flutter_brand_icons) created by [@muj-programmer](https://github.com/muj-programmer).
Icons are also available as a [Flutter package](https://pub.dev/packages/simple_icons) created by [@jlnrrg](https://jlnrrg.github.io/).

### Home Assistant

Expand Down
33 changes: 29 additions & 4 deletions _data/simple-icons.json
Expand Up @@ -2,8 +2,8 @@
"icons": [
{
"title": ".NET",
"hex": "5C2D91",
"source": "https://docs.microsoft.com/en-us/dotnet/images/hub/net.svg"
"hex": "512BD4",
"source": "https://github.com/dotnet/brand/"
},
{
"title": "1001Tracklists",
Expand Down Expand Up @@ -2143,6 +2143,11 @@
"hex": "58CC02",
"source": "https://www.duolingo.com/"
},
{
"title": "dwm",
"hex": "1177AA",
"source": "https://dwm.suckless.org"
},
{
"title": "Dynamics 365",
"hex": "002050",
Expand Down Expand Up @@ -3053,7 +3058,7 @@
{
"title": "Google Chrome",
"hex": "4285F4",
"source": "https://blog.google/press/?product_tag=chrome"
"source": "https://thepartnermarketinghub.withgoogle.com/brands/chromebook/visual-identity/visual-identity/logos-and-badges/"
},
{
"title": "Google Classroom",
Expand Down Expand Up @@ -3172,7 +3177,7 @@
},
{
"title": "Google Sheets",
"hex": "0F9D58",
"hex": "34A853",
"source": "http://sheets.google.com/"
},
{
Expand Down Expand Up @@ -4371,6 +4376,11 @@
"hex": "A6A9AA",
"source": "https://litecoin-foundation.org/wp-content/uploads/2019/01/LC18-007-Brand-guidelines.pdf"
},
{
"title": "LiveChat",
"hex": "FFD000",
"source": "https://livechat.design/"
},
{
"title": "LiveJournal",
"hex": "00B0EA",
Expand Down Expand Up @@ -5991,6 +6001,11 @@
"hex": "336699",
"source": "https://publons.com/about/logos"
},
{
"title": "PubMed",
"hex": "326599",
"source": "https://pubmed.ncbi.nlm.nih.gov/"
},
{
"title": "Puppet",
"hex": "FFAE1A",
Expand Down Expand Up @@ -6711,6 +6726,11 @@
"hex": "2D2E83",
"source": "https://www.showpad.com/"
},
{
"title": "Showtime",
"hex": "B10000",
"source": "https://commons.wikimedia.org/wiki/File:Showtime.svg"
},
{
"title": "Shutterstock",
"hex": "EE2B24",
Expand Down Expand Up @@ -7281,6 +7301,11 @@
"hex": "809CC9",
"source": "http://subversion.apache.org/logo"
},
{
"title": "suckless",
"hex": "1177AA",
"source": "https://suckless.org"
},
{
"title": "Sumo Logic",
"hex": "000099",
Expand Down
2 changes: 1 addition & 1 deletion icons/dot-net.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/dwm.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion icons/googlechrome.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion icons/googlesheets.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/livechat.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/pubmed.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/showtime.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/suckless.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 21 additions & 10 deletions index.html
Expand Up @@ -29,16 +29,26 @@
{% endif %}

{% assign filename = filename | downcase %}
{% assign filename = filename | replace: "à", "a" | replace: "á", "a" | replace: "â", "a" | replace: "ã", "a" | replace: "ä", "a" %}
{% assign filename = filename | replace: "ç", "c" | replace: "č", "c" | replace: "ć", "c" %}
{% assign filename = filename | replace: "è", "e" | replace: "é", "e" | replace: "ê", "e" | replace: "ë", "e" %}
{% assign filename = filename | replace: "ì", "i" | replace: "í", "i" | replace: "î", "i" | replace: "ï", "i" %}
{% assign filename = filename | replace: "ñ", "n" | replace: "ň", "n" | replace: "ń", "n" %}
{% assign filename = filename | replace: "ò", "o" | replace: "ó", "o" | replace: "ô", "o" | replace: "õ", "o" | replace: "ö", "o" %}
{% assign filename = filename | replace: "š", "s" | replace: "ś", "s" %}
{% assign filename = filename | replace: "ù", "u" | replace: "ú", "u" | replace: "û", "u" | replace: "ü", "u" %}
{% assign filename = filename | replace: "ý", "y" | replace: "ÿ", "y" %}
{% assign filename = filename | replace: "ž", "z" | replace: "ź", "z" %}
{% assign filename = filename | replace: "à", "a" | replace: "á", "a" | replace: "â", "a" | replace: "ã", "a" | replace: "ä", "a" | replace: "ā", "a" | replace: "ă", "a" | replace: "ą", "a" %}
{% assign filename = filename | replace: "ç", "c" | replace: "ć", "c" | replace: "ĉ", "c" | replace: "ċ", "c" | replace: "č", "c" %}
{% assign filename = filename | replace: "ď", "d" | replace: "đ", "d" %}
{% assign filename = filename | replace: "è", "e" | replace: "é", "e" | replace: "ê", "e" | replace: "ë", "e" | replace: "ē", "e" | replace: "ĕ", "e" | replace: "ė", "e" | replace: "ę", "e" | replace: "ě", "e" %}
{% assign filename = filename | replace: "ĝ", "g" | replace: "ğ", "g" | replace: "ġ", "g" | replace: "ģ", "g" %}
{% assign filename = filename | replace: "ĥ", "h" | replace: "ħ", "h" %}
{% assign filename = filename | replace: "ì", "i" | replace: "í", "i" | replace: "î", "i" | replace: "ï", "i" | replace: "ĩ", "i" | replace: "ī", "i" | replace: "ĭ", "i" | replace: "į", "i" | replace: "ı", "i" %}
{% assign filename = filename | replace: "ĵ", "j" %}
{% assign filename = filename | replace: "ķ", "k" | replace: "ĸ", "k" %}
{% assign filename = filename | replace: "ĺ", "l" | replace: "ļ", "l" | replace: "ľ", "l" | replace: "ŀ", "l" | replace: "ł", "l" %}
{% assign filename = filename | replace: "ñ", "n" | replace: "ń", "n" | replace: "ņ", "n" | replace: "ň", "n" %}
{% assign filename = filename | replace: "ò", "o" | replace: "ó", "o" | replace: "ô", "o" | replace: "õ", "o" | replace: "ö", "o" | replace: "ō", "o" | replace: "ŏ", "o" | replace: "ő", "o" %}
{% assign filename = filename | replace: "ŕ", "r" | replace: "ŗ", "r" | replace: "ř", "r" %}
{% assign filename = filename | replace: "ś", "s" | replace: "ŝ", "s" | replace: "ş", "s" | replace: "š", "s" %}
{% assign filename = filename | replace: "ß", "ss" %}
{% assign filename = filename | replace: "ţ", "t" | replace: "ť", "t" | replace: "ŧ", "t" %}
{% assign filename = filename | replace: "ù", "u" | replace: "ú", "u" | replace: "û", "u" | replace: "ü", "u" | replace: "ũ", "u" | replace: "ū", "u" | replace: "ŭ", "u" | replace: "ů", "u" | replace: "ű", "u" | replace: "ų", "u" %}
{% assign filename = filename | replace: "ŵ", "w" %}
{% assign filename = filename | replace: "ý", "y" | replace: "ÿ", "y" | replace: "ŷ", "y" %}
{% assign filename = filename | replace: "ź", "z" | replace: "ż", "z" | replace: "ž", "z" %}

{% assign searchTerm = filename %}
{% assign filename = filename | replace: "+", "plus" %}
Expand Down Expand Up @@ -205,6 +215,7 @@
<li class="navbar__nav-item"><a href="https://www.npmjs.com/package/simple-icons">NPM</a></li>
<li class="navbar__nav-item"><a href="https://packagist.org/packages/simple-icons/simple-icons">Packagist</a></li>
</ul>
<p class="redesign-banner">We're redesigning the website! Please <a href="https://simple-icons.github.io/simple-icons-website/">Check it out</a> and <a href="https://github.com/simple-icons/simple-icons/discussions/4865">Share you feedback</a>. <span>Hide this message <button id="hide-feedback-request-once">Once</button> or <button id="hide-feedback-request">Always</button> | <button id="redirect-to-redesign">Redirect automatically</button></span></p>
</header>
<main role="main">
<p class="hero">{{ iconCount }} Free <abbr title="Scalable Vector Graphic">SVG</abbr> icons for popular&nbsp;brands</p>
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "simple-icons",
"version": "4.9.0",
"version": "4.10.0",
"description": "SVG icons for popular brands https://simpleicons.org",
"homepage": "https://www.simpleicons.org",
"keywords": [
Expand All @@ -27,7 +27,7 @@
"svglint": "1.0.7",
"svgo": "1.3.2",
"svgpath": "2.3.0",
"uglify-js": "3.12.5"
"uglify-js": "3.12.6"
},
"scripts": {
"build": "node scripts/build-package.js",
Expand Down
22 changes: 11 additions & 11 deletions scripts/utils.js
Expand Up @@ -12,17 +12,17 @@ module.exports = {
.replace(/^&/, "and-")
.replace(/&$/, "-and")
.replace(/&/g, "-and-")
.replace(/[ !:’'°]/g, "")
.replace(/à|á|â|ã|ä/g, "a")
.replace(/ç|č|ć/g, "c")
.replace(/è|é|ê|ë/g, "e")
.replace(/ì|í|î|ï/g, "i")
.replace(/ñ|ň|ń/g, "n")
.replace(/ò|ó|ô|õ|ö/g, "o")
.replace(/š|ś/g, "s")
.replace(/ù|ú|û|ü/g, "u")
.replace(/ý|ÿ/g, "y")
.replace(/ž|ź/g, "z")
.replace(/đ/g, "d")
.replace(/ħ/g, "h")
.replace(/ı/g, "i")
.replace(/ĸ/g, "k")
.replace(/ŀ/g, "l")
.replace(/ł/g, "l")
.replace(/ß/g, "ss")
.replace(/ŧ/g, "t")
.normalize("NFD")
.replace(/[\u0300-\u036f]/g, "")
.replace(/[^a-z0-9_\-]/g, "")
),

/**
Expand Down
74 changes: 64 additions & 10 deletions site_script.js
Expand Up @@ -68,16 +68,16 @@

function normalizeSearchTerm(value) {
return value.toLowerCase()
.replace(/à|á|â|ã|ä/g, "a")
.replace(/ç|č|ć/g, "c")
.replace(/è|é|ê|ë/g, "e")
.replace(/ì|í|î|ï/g, "i")
.replace(/ñ|ň|ń/g, "n")
.replace(/ò|ó|ô|õ|ö/g, "o")
.replace(/š|ś/g, "s")
.replace(/ù|ú|û|ü/g, "u")
.replace(/ý|ÿ/g, "y")
.replace(/ž|ź/g, "z");
.replace(/đ/g, "d")
.replace(/ħ/g, "h")
.replace(/ı/g, "i")
.replace(/ĸ/g, "k")
.replace(/ŀ/g, "l")
.replace(/ł/g, "l")
.replace(/ß/g, "ss")
.replace(/ŧ/g, "t")
.normalize("NFD")
.replace(/[\u0300-\u036f]/g, "");
}

function search(value) {
Expand Down Expand Up @@ -191,4 +191,58 @@
$orderByRelevance.addEventListener('click', function() {
selectOrdering($orderByRelevance);
});

/* Redesign */

var $banner = document.querySelector('.redesign-banner'),
$redirectAutomatically = document.getElementById('redirect-to-redesign'),
$hideOnce = document.getElementById('hide-feedback-request-once'),
$hideAlways = document.getElementById('hide-feedback-request');

var redesignUrl = 'https://simple-icons.github.io/simple-icons-website/',
hideBannerAlwaysIdentifier = 'hide-banner',
redirectAutomaticallyIdentifier = 'redirect-to-redesign';

$redirectAutomatically.addEventListener('click', function() {
var redirect = true;
if (localStorage) {
var currentVal = localStorage.getItem(redirectAutomaticallyIdentifier);
if (currentVal === 'true') {
redirect = false;
}

localStorage.setItem(redirectAutomaticallyIdentifier, redirect);
}

if (redirect) {
window.location.replace(redesignUrl);
} else {
$redirectAutomatically.innerHTML = "Redirect automatically";
}
});
$hideOnce.addEventListener('click', function () {
$banner.classList.add('hidden');
});
$hideAlways.addEventListener('click', function () {
if (localStorage) {
localStorage.setItem(hideBannerAlwaysIdentifier, true);
}

$banner.classList.add('hidden');
});

if (localStorage) {
var redirect = localStorage.getItem(redirectAutomaticallyIdentifier);
if (redirect === 'true') {
$redirectAutomatically.innerHTML = "Disable redirect";
if (document.referrer !== redesignUrl) {
window.location.replace(redesignUrl);
}
}

var hide = localStorage.getItem(hideBannerAlwaysIdentifier);
if (hide) {
$banner.classList.add('hidden');
}
}
})( document );
25 changes: 25 additions & 0 deletions stylesheet.css
Expand Up @@ -351,6 +351,31 @@ a.share-button {
padding: 1.5rem 0 1.5rem 1.5rem;
}

.redesign-banner {
background-color: #565f63;
color: #FFF;
margin: 0;
padding: 0.5rem 1.5rem;
}
.redesign-banner a {
color: #0096ee;
}
.redesign-banner a:focus, .redesign-banner a:hover,
.redesign-banner button:focus, .redesign-banner button:hover {
text-decoration: underline;
}
.redesign-banner span {
float: right
}
.redesign-banner button {
border: none;
background-color: transparent;
color: #0096ee;
cursor: pointer;
margin: 0;
padding: 0;
}

.hidden {
display: none;
}
Expand Down

0 comments on commit 2ce6c91

Please sign in to comment.