From baf3c6455eb522eefad4cb15d39d813424e9503b Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Wed, 18 Sep 2019 23:41:02 +0100 Subject: [PATCH 1/3] Update Riot logo --- img/riot-48px.png | Bin 1365 -> 1441 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/img/riot-48px.png b/img/riot-48px.png index 24542a75a44c41cc277b0ead250e4850b561451f..70115c65c1cf600633470781841e90e410e33e04 100644 GIT binary patch literal 1441 zcmV;S1z!4zP)!;s>ZwLLZLY|p&F?cmL_(# zI5yPVb2N2~-*#n716xI!F)%9Ny~* z4$Fh%(t|n8<)8x9wrx#3%b=b?F*`sq4660APM%EtY^<^UGa^OjRG)_d0E$9Ro*bH1 zn%3A#0s;U6p|(b@t&ux-dFGA%6(orOKuh9*ko3;(HEA_bH7@)e+uY3ieTysF;CUibBV`yjxlwe!nfepbbWqh@g$ns^`0>?~FU6}xYtQy_71TBeYh2*9HXMYr$ zV+%HHpGOHRIbT&Fl1=2AlvV$>(i`O3l0svrX0t4uUy;u;FS9*l5?QT&q zZuG{#IbLr`V+}+i^jK|$ARVbwa^~l#sN^r00H8l4d)@T#xbn%ts#=$Yf2E|CUKhcT8@mWeHO=y_3?JKWF}P zAYF&xkhsgsb*(KsxZY*1eEN@>zOZbrQz{TV%J#?F+@HN#)7e;NqNyAB)K8OQzKFG) zKxsh$pT1P><;{FHENI_en|?+>0N~-sQ-^BIFV7eIVybR&yse6S1dwHcAP}U-M38gA z?+Ea3wwIe&lQrW(i3M5(M~Yb&#iM)6$w$?WDC=%6H&edXS-HNlV1SB z5U5~3K3KK%Ffk-3N)4iZRwSEFS9ephbh=@XQs2;ssChOzVAEd{PsKN zeCM1I+@xM&|DL*K#Y3U3T9zj@BUCLQ$r6)+MFu@fGNejPP_8`yWPmZC8~6)2BEn&% ztdsHDEh*2IITANV;{5|_N`}JkhBI=XC_)n(D1ocxCY>wC7+#Q_4tAmp;39As;R^*v zcGWbd3kKc)(Sh4a`@{S6w5)M$s9#o4?*}%&{_DOe4oA={i!)f7zn+IGvSgxGJ|)UaI`B+d53k5| zID+<8XBb>)cxLrldAf9S8q3$V^Q{#KPvjaMhcKcRohy?JEHXfBsEI$Y3;y|4VCTCWUF~3`Z8?W(cCd(!kV|%{>F);6Me$g1LP<^DgTYkAw)Bf)TM8o}Xo4kwH3E_`whisMr~- zIvu65GlHI;e4x(1SVTpaN$2fj3|IKNXlHW`ft)E~2~}sJEIt!OPYX(z^g}^ezsAzz zF-ix*w#{3|0tZ!MLsXuR5VCNEPy(?LjhjwJDN1?XUk%{fz(Ga9yvzFaOnONPl=te~ zcrJoiu3;yDZ)O2hhzGJ@|C)0r?i_nXh@NYnRzu)0wseQRi`8N9m0nF9pTlMnoR?a!_1V^5*S>V z#VnxEEw~V&qN@lL$AK5)HH|0SVrRZafuRb6fyzwY_fjnj)qh7*x15N*7q4yn#VaXmS`fPN}~oo&r+%bc8n zWK{zwI59f8YH61KQ)WZs%2JQvs0zJS_0(%vqpBv)qr_9j5 X@&&v(wYu6<00000NkvXXu0mjf=EQin From 548290a6ba26c3bf1ed30c0acbbdc11913cd0252 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 19 Sep 2019 11:42:30 +0100 Subject: [PATCH 2/3] Switch to Nad's images, use srcset --- img/riot-48px.png | Bin 1441 -> 0 bytes img/riot.png | Bin 0 -> 1798 bytes img/riot@2x.png | Bin 0 -> 3633 bytes src/components/HomePage.js | 15 +++++++++++++-- 4 files changed, 13 insertions(+), 2 deletions(-) delete mode 100644 img/riot-48px.png create mode 100644 img/riot.png create mode 100644 img/riot@2x.png diff --git a/img/riot-48px.png b/img/riot-48px.png deleted file mode 100644 index 70115c65c1cf600633470781841e90e410e33e04..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1441 zcmV;S1z!4zP)!;s>ZwLLZLY|p&F?cmL_(# zI5yPVb2N2~-*#n716xI!F)%9Ny~* z4$Fh%(t|n8<)8x9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u6 literal 0 HcmV?d00001 diff --git a/img/riot@2x.png b/img/riot@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..492f014e4a44a4a7c2d38361ee27bad860296046 GIT binary patch literal 3633 zcma)9S2!Dh8ck9w_7Z75s*zGEilU0zv1^Z7 zwZ(ROAMX48&iDW4<$UMy{O6A~G|;9ZXCnsy091$v8pi+F_P;|$@^3F?`OEwxppUV( z8lZZBW84D~d@Gbs~x9Q_ZQ&Y(bU@Es64t#YJJj5E~&>8Yd~vc|6j z@A`R}@*~L+jTb6=Bf)_SHDe%eGUIYV>QF5AZrrqzTV{nqqZfVFMkIQ7Q4oxf`uSYy z>+Uh8QQ`N?Py+5Z!CDRD@AQ^1hg;7L-ra2p-fddPGy?qU=xY97Z~z?xDa5E0_DWV< zcb%(kKVVU5llQx!HXuX{7h*Gmi=hevA_;4e9YlX7r$o(0I_>@~T|eRN@{JVGj{%Hd zuj%?fbUs1=Cl5c|UF~&n&{G3K9Z#cgI6$c!BpPCDDNqhhLA@vJT5Eas6!^D9_={Ya ztdi=N&F8PXJzUNWkZwk_+`Eww*i*eXcM&G;62FAn4g|&R_A%I^b4K!bQ4U5serRO4 z49Mm^xFdFy%L{&AOSA9sM`-)nxfAn_K?RUPpght}%Yx{dOylHM3^9GRY*65Nobh7D zR^4iLL1Plzdw!7b$;*YuPPA;_$YWB-z)`qeTFfBc-O|(Ww}g9*2!BlhxYl(hVJpnt}?itJx$`kJSUbQ>z>$YpOlIWzNPZnXM! z33j(O|n@{Wpzu~QT`z+}h6*iCf! z@}z!ESbcdWPvSe(mgyQ;xOAaYe{ts^(_%fjwDw@?t^Sv17Rz~_uF9ZO6zfii&j@0XD z&5uD^eL{5TS(wC-wpKC4$ii!0^LNX4L&G8X{&p22gIxBAw=Ge?o*O3r9qhkU7eQL2QQ(msCZkr> zQ2e7LT+ptjORN%_v-YCn9DgQy>xGZv#zCLL9^iRCwg8n9cVKleGC586QUbS`BhJ~M z|E2BKX^o`6$F9zRQndqMyu3g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cXjtgZOM@|~GCnsJD=ay?o%{-zsl#4_4vj2eu%AC*~hDBVfg_)#xKqCaF zY*Iqkl?PRpneOi0Jy!c>z4hj1m!iw*2kt_7@_Nt$8rgr!CPW zJrkpFmQ;F#0>I1OQSn+q)UUIq0f{Ti#wO+`t}`GW1?;9lAaDpka6iCB)h{NaqVzw^ z5*G|fAjU?mRxP*yZ0@Qh1Q*80jhuVazPq8SY!?>3&BJ)r(~op*%6a@8%vpzA9Q9uF ztB{4FODmB^FQr9@I%Y457o_r4PB<^FOF1mBN7W!!VSW>~`3M@e37=0h1Tb~eJ-@#9 z1M}60IopN0G``6*I$W%2fCC)FUtxPGlGQn$t1QUW!=4dci*bcPnrZ#`WqsXbkJEXP z{4>d80ryfx;yP@_kB`P`wE&cIW&77$$58@Tn10E_(WZUbm4r-&)F)xXq}Sob`tLax zqaDjj`1@-l_`KiFyB-v0kfCL>LS&31EmC)KE%R#8Z6jL@i>ei{lf_|;&9V{kvQL57 zPRnRtJ%KQR2$O$Af?@6tww_Dl$K$hFv zGa~jFXA*{l!v(BMEWp|pGTJ*iNE$^~P$0IS8LhN37wU{|@Jf-zSjb$hGc!F26ih5D zc}y6Z)|sb%&O<^WLO6H zavhO!J7($j^Gv94?t6iLEmC<+*w=j?@c9Ph{Jj)8oy!JU&pPS$n68_2#xtqIo%jx1KpIjqlx4SZA-T!AU?mZ^Wa6}E z7uS~isr>%gvuD|X51D3ACB$eYho=*ZUbSQd0dhUXI34v=3CZI`+`|DS4{Nt+%soAT zj+yCY^Arnp{GUrl&C}*!uUOe=kEiTD0ZPsRuGUL#pF1X7r^zP&Z1Y4| literal 0 HcmV?d00001 diff --git a/src/components/HomePage.js b/src/components/HomePage.js index 128923e..2c41a03 100644 --- a/src/components/HomePage.js +++ b/src/components/HomePage.js @@ -19,7 +19,11 @@ import React from 'react' var linkable_clients = [ { name: "Riot", - logo: "img/riot-48px.png", + logo: { + width: "48px", + src: "img/riot@2x.png", + srcSet: "img/riot.png, img/riot@2x.png 2x", + }, author: "New Vector", homepage: "https://riot.im", room_url(alias) { return "https://riot.im/app/#/room/" + alias }, @@ -305,10 +309,17 @@ export default React.createClass({ } if (!link) return null; + let logo; + if (typeof client.logo === "string") { + logo = ; + } else { + logo = ; + } + return (
- + { logo }
{ client.name } From 1dbfa6929db1621a71468dc53c807a41bc17247f Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 19 Sep 2019 11:46:18 +0100 Subject: [PATCH 3/3] More srcset --- src/components/HomePage.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/HomePage.js b/src/components/HomePage.js index 2c41a03..7c92bff 100644 --- a/src/components/HomePage.js +++ b/src/components/HomePage.js @@ -358,10 +358,17 @@ export default React.createClass({ } if (!instructions) return null; + let logo; + if (typeof client.logo === "string") { + logo = ; + } else { + logo = ; + } + return (