Embed base64 logo directly in source to avoid load

master
Tanner Collin 4 years ago
parent 2d80b19414
commit 3363ccd47e
  1. 0
      webclient/logos/hackernews.png
  2. 0
      webclient/logos/manual.png
  3. 0
      webclient/logos/reddit.png
  4. 0
      webclient/logos/tildes.png
  5. 4
      webclient/src/Feed.js
  6. 7
      webclient/src/utils.js

Before

Width:  |  Height:  |  Size: 538 B

After

Width:  |  Height:  |  Size: 538 B

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Before

Width:  |  Height:  |  Size: 500 B

After

Width:  |  Height:  |  Size: 500 B

@ -2,7 +2,7 @@ import React from 'react';
import { Link } from 'react-router-dom';
import { Helmet } from 'react-helmet';
import localForage from 'localforage';
import { sourceLink, infoLine } from './utils.js';
import { sourceLink, infoLine, logos } from './utils.js';
class Feed extends React.Component {
constructor(props) {
@ -71,7 +71,7 @@ class Feed extends React.Component {
<div className='title'>
<Link className='link' to={'/' + x.id}>
<img className='source-logo' src={'logos/'+x.source+'.png'} alt='source logo' /> {x.title}
<img className='source-logo' src={logos[x.source]} alt='source logo' /> {x.title}
</Link>
<span className='source'>

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save