Added PNG fallback if browser does not support SVG
This commit is contained in:
parent
6a59837a0b
commit
f500a08f8f
Binary file not shown.
After Width: | Height: | Size: 8.6 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
@ -16,8 +16,8 @@ export class Header extends Component {
|
|||
return (
|
||||
<nav className='nav'>
|
||||
<div className='nav-left'>
|
||||
<a href='/' className='nav-item'>
|
||||
<img src='./logo.svg' alt='Lexiconga' />
|
||||
<a href='/' className='nav-item image'>
|
||||
<img src={`./logo.${(typeof SVGRect !== 'undefined') ? 'svg' : 'png'}`} alt='Lexiconga Logo' />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue