diff --git a/accessibility/header-setting.tsx b/accessibility/header-setting.tsx new file mode 100644 index 0000000..8ccd69a --- /dev/null +++ b/accessibility/header-setting.tsx @@ -0,0 +1,21 @@ +import type { NextPage } from 'next'; +import Head from 'next/head'; + +interface Props { + title?: string; + description?: string; +} + +const HeaderSettings: NextPage = ({title = 'CotejoApp', description = 'CotejoApp'}) => { + return ( + + {title} + + + ) +} + +export default HeaderSettings; diff --git a/components/layout/navbar.tsx b/components/layout/navbar.tsx index 4f034d0..67604dd 100644 --- a/components/layout/navbar.tsx +++ b/components/layout/navbar.tsx @@ -44,7 +44,7 @@ const Navbar: NextPage = () => { /> @@ -61,7 +61,7 @@ const Navbar: NextPage = () => { { onClose(); router.push('/profile'); @@ -99,7 +99,7 @@ const Navbar: NextPage = () => { > Log out -

Version 2.3.0

+

Version 2.3.1

diff --git a/components/matches/detail/avatar/change-player.modal.tsx b/components/matches/detail/avatar/change-player.modal.tsx index 0e73264..543bc79 100644 --- a/components/matches/detail/avatar/change-player.modal.tsx +++ b/components/matches/detail/avatar/change-player.modal.tsx @@ -158,7 +158,7 @@ const ChangePlayerModal: NextPage = () => {
{
changeAvatarHandler(src)} /> @@ -71,7 +71,7 @@ const AvatarSelector: NextPage = () => {
{ nickname: name, number: 0, status: '', - image: 'https://bit.ly/broken-link', + image: '', google: false, nationality: 'Colombia', position: 'CM' diff --git a/pages/auth/index.tsx b/pages/auth/index.tsx index 0644786..e1fcae2 100644 --- a/pages/auth/index.tsx +++ b/pages/auth/index.tsx @@ -4,24 +4,28 @@ import { Link, Image } from '@chakra-ui/react'; import { getSession } from 'next-auth/react'; import styles from './index.module.scss'; import LoginForm from '../../components/auth/login-form'; +import HeaderSettings from '../../accessibility/header-setting'; const Login: NextPage = () => { return ( -
- Cotejo app logo - - - - {`Don't have an account?, Sign up`} - - -
+ <> + +
+ Cotejo app logo + + + + {`Don't have an account?, Sign up`} + + +
+ ); } diff --git a/pages/matches/[...matchId]/index.tsx b/pages/matches/[...matchId]/index.tsx index f33abbe..d7ed19d 100644 --- a/pages/matches/[...matchId]/index.tsx +++ b/pages/matches/[...matchId]/index.tsx @@ -3,6 +3,7 @@ import type { NextPage } from 'next'; import { getSession } from 'next-auth/react'; import { useEffect } from 'react'; import { useDispatch } from 'react-redux'; +import HeaderSettings from '../../../accessibility/header-setting'; import MatchDetailsLayout from '../../../components/matches/detail/match-detail'; import { IMatchDetailsResponse } from '../../../interfaces/Match'; import { getMatch } from '../../../server/matches'; @@ -44,7 +45,13 @@ const MatchDetails: NextPage = ({match, profile}) => { }, [dispatch, matchDetail]) return ( - + <> + + + ); } diff --git a/pages/matches/index.tsx b/pages/matches/index.tsx index b0ccfe0..705d506 100644 --- a/pages/matches/index.tsx +++ b/pages/matches/index.tsx @@ -11,6 +11,7 @@ import styles from './matches.module.scss'; import { FullMatch, IMatch } from '../../interfaces/Match'; import { profileActions } from '../../store/profile.slice'; import { getProfile } from '../../server/player'; +import HeaderSettings from '../../accessibility/header-setting'; interface Props { matches: string; @@ -41,18 +42,21 @@ const Matches: NextPage = ({matches, profile}) => { }, []); return ( -
- - -
+ <> + +
+ + +
+ ); } diff --git a/pages/matches/new/index.tsx b/pages/matches/new/index.tsx index 9ea9b8d..4a99a55 100644 --- a/pages/matches/new/index.tsx +++ b/pages/matches/new/index.tsx @@ -3,6 +3,7 @@ import type { NextPage } from 'next'; import { getSession } from 'next-auth/react'; import { useEffect } from 'react'; import { useDispatch } from 'react-redux'; +import HeaderSettings from '../../../accessibility/header-setting'; import NewMatch from '../../../components/matches/new/new-match'; import { IPlayerList, Player } from '../../../interfaces/Player'; import { getProfile } from '../../../server/player'; @@ -53,7 +54,10 @@ const CreateMatch: NextPage = ({profile}) => { dispatch(createMatchActions.addPlayer(defaultPlayer)); return ( - + <> + + + ); } diff --git a/pages/menu/index.tsx b/pages/menu/index.tsx index fabb079..9491cad 100644 --- a/pages/menu/index.tsx +++ b/pages/menu/index.tsx @@ -9,6 +9,7 @@ import { useDispatch } from 'react-redux'; import styles from './menu.module.scss'; import { getProfile } from '../../server/player'; import { profileActions } from '../../store/profile.slice'; +import HeaderSettings from '../../accessibility/header-setting'; interface Props { profile: string; @@ -42,35 +43,38 @@ const Menu: NextPage = ({profile}) => { } return ( -
- Cotejo app logo -
- + <> + +
+ Cotejo app logo +
+ +
+
+ +
-
- -
-
+ ); } diff --git a/pages/profile/index.tsx b/pages/profile/index.tsx index c37b15f..eaa5047 100644 --- a/pages/profile/index.tsx +++ b/pages/profile/index.tsx @@ -13,6 +13,7 @@ import { useDispatch, useSelector } from 'react-redux'; import { UpdateProfileRequest } from '../../interfaces/Player'; import { RootState } from '../../interfaces/State'; import { useEffect } from 'react'; +import HeaderSettings from '../../accessibility/header-setting'; interface Props { image?: string; @@ -102,20 +103,23 @@ const Profile: NextPage = ({ image, name, stats, profile, email }: Props) => { } return ( -
-
- - -
- -
+ <> + +
+
+ + +
+ +
+ ); } diff --git a/pages/sign-up/index.tsx b/pages/sign-up/index.tsx index 4ea9590..0fba674 100644 --- a/pages/sign-up/index.tsx +++ b/pages/sign-up/index.tsx @@ -7,6 +7,7 @@ import SignUpForm from '../../components/sign-up/sign-up-form'; import styles from './index.module.scss'; import { RegisterPlayerRequest } from '../../interfaces/Player'; import { registerPlayer } from '../../services/api-configuration'; +import HeaderSettings from '../../accessibility/header-setting'; const SignUp: NextPage = () => { @@ -40,23 +41,26 @@ const SignUp: NextPage = () => { } return ( -
- Cotejo app logo - - - - {`Already have an account?, Login`} - - -
+ <> + +
+ Cotejo app logo + + + + {`Already have an account?, Login`} + + +
+ ); }