forked from mastodon/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change logo version in header based on screen size in web UI (mastodo…
- Loading branch information
Showing
3 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
import React from 'react'; | ||
import logo from 'mastodon/../images/logo.svg'; | ||
|
||
const Logo = () => ( | ||
<svg viewBox='0 0 261 66' className='logo' role='img'> | ||
export const WordmarkLogo = () => ( | ||
<svg viewBox='0 0 261 66' className='logo logo--wordmark' role='img'> | ||
<title>Mastodon</title> | ||
<use xlinkHref='#logo-symbol-wordmark' /> | ||
</svg> | ||
); | ||
|
||
export default Logo; | ||
export const SymbolLogo = () => ( | ||
<img src={logo} alt='Mastodon' className='logo logo--icon' /> | ||
); | ||
|
||
export default WordmarkLogo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters