Merge pull request #220 from jedmund/fix-219
Fix <head> and add favicon
This commit is contained in:
commit
0770d0e3da
11 changed files with 9 additions and 3 deletions
|
|
@ -12,6 +12,7 @@ const NewHead = () => {
|
|||
<title>{t('page.titles.new')}</title>
|
||||
<meta name="description" content={t('page.descriptions.new')} />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="icon" type="image/x-icon" href="/images/favicon.png" />
|
||||
|
||||
{/* OpenGraph */}
|
||||
<meta property="og:title" content={t('page.titles.new')} />
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ const PartyHead = ({ party, meta }: Props) => {
|
|||
})}
|
||||
/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="icon" type="image/x-icon" href="/images/favicon.png" />
|
||||
|
||||
{/* OpenGraph */}
|
||||
<meta
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ const ProfileHead = ({ user }: Props) => {
|
|||
})}
|
||||
/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="icon" type="image/x-icon" href="/images/favicon.png" />
|
||||
|
||||
{/* OpenGraph */}
|
||||
<meta
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ const SavedHead = () => {
|
|||
<Head>
|
||||
<title>{t('page.titles.saved')}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="icon" type="image/x-icon" href="/images/favicon.png" />
|
||||
|
||||
<meta property="og:title" content={t('page.titles.saved')} />
|
||||
<meta property="og:url" content="https://app.granblue.team/saved" />
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ const TeamsHead = () => {
|
|||
<title>{t('page.titles.discover')}</title>
|
||||
<meta name="description" content={t('page.descriptions.discover')} />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="icon" type="image/x-icon" href="/images/favicon.png" />
|
||||
|
||||
{/* OpenGraph */}
|
||||
<meta property="og:title" content={t('page.titles.discover')} />
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@ const AboutRoute: React.FC<Props> = (props: Props) => {
|
|||
content={t(`page.descriptions.${currentPage}`)}
|
||||
/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="icon" type="image/x-icon" href="/images/favicon.png" />
|
||||
|
||||
{/* OpenGraph */}
|
||||
<meta property="og:title" content={t(`page.titles.${currentPage}`)} />
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ const NewRoute: React.FC<Props> = ({
|
|||
|
||||
// Methods: Page component rendering
|
||||
function pageHead() {
|
||||
if (context && context.user) return <NewHead />
|
||||
return <NewHead />
|
||||
}
|
||||
|
||||
function pageError() {
|
||||
|
|
|
|||
|
|
@ -279,7 +279,7 @@ const SavedRoute: React.FC<Props> = ({
|
|||
|
||||
// Methods: Page component rendering
|
||||
function pageHead() {
|
||||
if (context && context.user) return <SavedHead />
|
||||
return <SavedHead />
|
||||
}
|
||||
|
||||
function pageError() {
|
||||
|
|
|
|||
|
|
@ -279,7 +279,7 @@ const TeamsRoute: React.FC<Props> = ({
|
|||
|
||||
// Methods: Page component rendering
|
||||
function pageHead() {
|
||||
if (context && context.user) return <TeamsHead />
|
||||
return <TeamsHead />
|
||||
}
|
||||
|
||||
function pageError() {
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 25 KiB |
BIN
public/images/favicon.png
Normal file
BIN
public/images/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
Loading…
Reference in a new issue