Gratipay logo

See #337
This commit is contained in:
Thaddee Tyl 2015-05-31 13:44:36 +02:00
parent c948ece097
commit 7e915f39eb
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="12 12 40 40" enable-background="new 12 12 40 40" xml:space="preserve">
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="12 12 40 40">
<path fill="#333333" d="M32,13.4c-10.5,0-19,8.5-19,19c0,8.4,5.5,15.5,13,18c1,0.2,1.3-0.4,1.3-0.9c0-0.5,0-1.7,0-3.2 c-5.3,1.1-6.4-2.6-6.4-2.6C20,41.6,18.8,41,18.8,41c-1.7-1.2,0.1-1.1,0.1-1.1c1.9,0.1,2.9,2,2.9,2c1.7,2.9,4.5,2.1,5.5,1.6 c0.2-1.2,0.7-2.1,1.2-2.6c-4.2-0.5-8.7-2.1-8.7-9.4c0-2.1,0.7-3.7,2-5.1c-0.2-0.5-0.8-2.4,0.2-5c0,0,1.6-0.5,5.2,2 c1.5-0.4,3.1-0.7,4.8-0.7c1.6,0,3.3,0.2,4.7,0.7c3.6-2.4,5.2-2,5.2-2c1,2.6,0.4,4.6,0.2,5c1.2,1.3,2,3,2,5.1c0,7.3-4.5,8.9-8.7,9.4 c0.7,0.6,1.3,1.7,1.3,3.5c0,2.6,0,4.6,0,5.2c0,0.5,0.4,1.1,1.3,0.9c7.5-2.6,13-9.7,13-18.1C51,21.9,42.5,13.4,32,13.4z"/>
</svg>

Before

Width:  |  Height:  |  Size: 740 B

After

Width:  |  Height:  |  Size: 683 B

3
logo/gratipay.svg Normal file
View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="16 16 96 96">
<path fill="#663300" d="M63.998,16C37.49,16,16,37.489,16,63.998C16,90.509,37.49,112,63.998,112 c26.514,0,48-21.491,48-48.002C111.998,37.489,90.513,16,63.998,16z M86.169,59.827L64.33,89.394L42.492,59.827 c-1.848-2.173-3.692-9.738,2.65-13.919c5.402-3.561,10.533-0.864,13.222,2.261c1.003,1.166,2.722,2.539,5.966,2.539 c3.245,0,4.964-1.373,5.967-2.539c2.688-3.125,7.819-5.822,13.222-2.261C89.861,50.089,88.016,57.653,86.169,59.827z"/>
</svg>

After

Width:  |  Height:  |  Size: 524 B

View File

@ -650,6 +650,9 @@ cache(function(data, match, sendBadge, request) {
var format = match[3];
var apiUrl = 'https://www.gratipay.com/' + user + '/public.json';
var badgeData = getBadgeData('tips', data);
if (badgeData.template === 'social') {
badgeData.logo = badgeData.logo || logos.gratipay;
}
request(apiUrl, function dealWithData(err, res, buffer) {
if (err != null) {
badgeData.text[1] = 'inaccessible';