mirror of
https://github.com/Alamantus/Lexiconga.git
synced 2025-07-15 03:35:54 +02:00
Added PNG fallback if browser does not support SVG
This commit is contained in:
parent
6a59837a0b
commit
f500a08f8f
3 changed files with 3 additions and 3 deletions
BIN
public/logo.png
Normal file
BIN
public/logo.png
Normal file
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 (
|
return (
|
||||||
<nav className='nav'>
|
<nav className='nav'>
|
||||||
<div className='nav-left'>
|
<div className='nav-left'>
|
||||||
<a href='/' className='nav-item'>
|
<a href='/' className='nav-item image'>
|
||||||
<img src='./logo.svg' alt='Lexiconga' />
|
<img src={`./logo.${(typeof SVGRect !== 'undefined') ? 'svg' : 'png'}`} alt='Lexiconga Logo' />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue