diff --git a/cypress/integration/router.spec.js b/cypress/integration/router.spec.js index b188c7d..8e4bac1 100644 --- a/cypress/integration/router.spec.js +++ b/cypress/integration/router.spec.js @@ -25,4 +25,9 @@ describe('App Router', () => { cy.visit(ROUTES.PROFILE); cy.get('section'); }); + + it('contains Dashboard page', () => { + cy.visit(ROUTES.DASHBOARD); + cy.get('section'); + }); }); diff --git a/src/constants/routes.ts b/src/constants/routes.ts index 72bcce5..d8d9de2 100644 --- a/src/constants/routes.ts +++ b/src/constants/routes.ts @@ -7,3 +7,4 @@ export const SIGN_UP: string = '/signup'; export const SIGN_IN: string = '/signin'; export const DEVELOPERS: string = '/developers'; export const PROFILE: string = '/profile'; +export const DASHBOARD: string = '/dashboard'; diff --git a/src/pages/Dashboard.tsx b/src/pages/Dashboard.tsx new file mode 100644 index 0000000..6e01a67 --- /dev/null +++ b/src/pages/Dashboard.tsx @@ -0,0 +1,83 @@ +import React from 'react'; + +const Dashboard = () => { + return ( +
+

Dashboard

+

+ Welcome John +

+
+ + {' '} + Edit Profile + + + {' '} + Add Experience + + + {' '} + Add Education + +
+

Experience Credentials

+ + + + + + + + + + + + + + + + + + + + + + + +
CompanyTitleYears
MicrosoftSenior DeveloperOct 2011 - Current + +
Sun MicrosystemsSystem AdminOct 2004 - Nov 2010 + +
+

Education Credentials

+ + + + + + + + + + + + + + + + + +
SchoolDegreeYears
University of WashingtonComputer ScienceSep 1993 - June 1999 + +
+
+ +
+
+ ); +}; + +export default Dashboard; diff --git a/src/router/Router.tsx b/src/router/Router.tsx index 1945756..c8e44c4 100644 --- a/src/router/Router.tsx +++ b/src/router/Router.tsx @@ -5,6 +5,7 @@ import SignUp from '../pages/SignUp'; import SignIn from '../pages/SignIn'; import Developers from '../pages/Developers'; import Profile from '../pages/Profile'; +import Dashboard from '../pages/Dashboard'; import * as ROUTES from '../constants/routes'; const Router: FC = () => ( @@ -14,6 +15,7 @@ const Router: FC = () => ( + );