Add serviceworker, render logos directly

This commit is contained in:
2019-10-18 05:09:49 +00:00
parent dc588fee91
commit 6764bf0d6d
7 changed files with 155 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
import React from 'react';
import { Link } from 'react-router-dom';
import { Helmet } from 'react-helmet';
import { siteLogo, sourceLink, infoLine } from './utils.js';
import { sourceLink, infoLine } from './utils.js';
class Results extends React.Component {
constructor(props) {
@@ -58,7 +58,9 @@ class Results extends React.Component {
</div>
<div className='title'>
<Link className='link' to={'/' + x.id}>{siteLogo[x.source]} {x.title}</Link>
<Link className='link' to={'/' + x.id}>
<img className='source-logo' src={'logos/'+x.source+'.png'} /> {x.title}
</Link>
<span className='source'>
&#8203;({sourceLink(x)})