-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added next-seo and a bunch of favicons
- Loading branch information
1 parent
f2eaa46
commit ee520d6
Showing
23 changed files
with
159 additions
and
11 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 |
---|---|---|
|
@@ -3,4 +3,5 @@ node_modules | |
.babelrc | ||
.eslintrc | ||
.prettierrc | ||
next-i18next.config.js | ||
next-i18next.config.js | ||
site.webmanifest |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import { useRouter } from 'next/router'; | ||
import { DefaultSeo } from 'next-seo'; | ||
import { baseUrl } from '~constants/general'; | ||
|
||
function DefaultHead() { | ||
const { asPath } = useRouter(); | ||
|
||
return ( | ||
<DefaultSeo | ||
title="Rayuela Uniformes Escolares" | ||
description="Compra los uniformes escolares de la mejor calidad en la Ciudad de Buenos Aires." | ||
canonical={`${baseUrl}${asPath}`} | ||
openGraph={{ | ||
type: 'website', | ||
title: 'Rayuela Uniformes Escolares', | ||
description: | ||
'Compra los uniformes escolares de la mejor calidad en la Ciudad de Buenos Aires.', | ||
url: `${baseUrl}${asPath}`, | ||
images: [ | ||
{ | ||
url: '/favicons/apple-touch-icon.png', | ||
height: 180, | ||
width: 180, | ||
alt: 'Rayuela Logo' | ||
} | ||
] | ||
}} | ||
additionalLinkTags={[ | ||
{ | ||
rel: 'icon', | ||
sizes: '32x32', | ||
href: '/favicons/favicon-32x32.png' | ||
}, | ||
{ | ||
rel: 'icon', | ||
sizes: '16x16', | ||
href: '/favicons/favicon-16x16.png' | ||
}, | ||
{ | ||
rel: 'apple-touch-icon', | ||
sizes: '180x180', | ||
href: '/favicons/apple-touch-icon.png' | ||
}, | ||
{ | ||
rel: 'manifest', | ||
href: '/site.webmanifest' | ||
}, | ||
{ | ||
rel: 'mask-icon', | ||
color: '#4e7cb6', | ||
href: '/favicons/safari-pinned-tab.svg' | ||
} | ||
]} | ||
additionalMetaTags={[ | ||
{ | ||
name: 'msapplication-TileColor', | ||
content: '#2b5797' | ||
}, | ||
{ | ||
name: 'theme-color', | ||
content: '#ffffff' | ||
} | ||
]} | ||
/> | ||
); | ||
} | ||
|
||
export default DefaultHead; |
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 +1,4 @@ | ||
export const isServer = typeof window === 'undefined'; | ||
|
||
// @todo: Add proper baseUrl after we have final domain | ||
export const baseUrl = process.env.NODE_ENV === 'production' ? '' : 'http://localhost:3000'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
import type { AppProps } from 'next/app'; | ||
import DefaultHead from '~components/SEO/DefaultHead'; | ||
import { AuthProvider } from '~hooks/useAuth'; | ||
import GlobalStyles from '~styles/GlobalStyles'; | ||
|
||
function MyApp({ Component, pageProps }: AppProps) { | ||
return ( | ||
<AuthProvider> | ||
<GlobalStyles> | ||
<Component {...pageProps} /> | ||
</GlobalStyles> | ||
</AuthProvider> | ||
<> | ||
<DefaultHead /> | ||
<AuthProvider> | ||
<GlobalStyles> | ||
<Component {...pageProps} /> | ||
</GlobalStyles> | ||
</AuthProvider> | ||
</> | ||
); | ||
} | ||
export default MyApp; |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<browserconfig> | ||
<msapplication> | ||
<tile> | ||
<square150x150logo src="/mstile-150x150.png"/> | ||
<TileColor>#2b5797</TileColor> | ||
</tile> | ||
</msapplication> | ||
</browserconfig> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "Rayuela", | ||
"short_name": "Rayuela", | ||
"icons": [ | ||
{ | ||
"src": "/android-chrome-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/android-chrome-512x512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
], | ||
"theme_color": "#ffffff", | ||
"background_color": "#ffffff", | ||
"display": "standalone" | ||
} |
This file was deleted.
Oops, something went wrong.
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