Switch to Nad's images, use srcset

This commit is contained in:
J. Ryan Stinnett 2019-09-19 11:42:30 +01:00
parent baf3c6455e
commit 548290a6ba
4 changed files with 13 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

BIN
img/riot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
img/riot@2x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

View file

@ -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 = <img src={client.logo} />;
} else {
logo = <img {...client.logo} />;
}
return (
<div key={ client.name } className="mxt_HomePage_link">
<div className="mxt_HomePage_link_logo">
<a href={ link }><img src={ client.logo }/></a>
<a href={ link }>{ logo }</a>
</div>
<div className="mxt_HomePage_link_name">
<a href={ link }>{ client.name }</a>