diff --git a/src/App.tsx b/src/App.tsx index 7120c9d..2d9574b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,6 @@ import { createBrowserRouter, RouterProvider } from 'react-router-dom' -import { ErrorPage, MainPage } from 'components/pages' +import { MainPage, ContactPage, ErrorPage } from 'components/pages' const router = createBrowserRouter([ { @@ -8,6 +8,10 @@ const router = createBrowserRouter([ element: , errorElement: , }, + { + path: '/contacts', + element: , + }, ]) const App = () => diff --git a/src/components/pages/ContactPage/ContactPage.tsx b/src/components/pages/ContactPage/ContactPage.tsx new file mode 100644 index 0000000..a8e372d --- /dev/null +++ b/src/components/pages/ContactPage/ContactPage.tsx @@ -0,0 +1,55 @@ +import { List, ListItem, ListItemButton as MuiListItemButton, Typography, styled } from '@mui/material' +import { Drafts as DraftsIcon, LinkedIn as LinkedInIcon, GitHub as GitHubIcon } from '@mui/icons-material' + +import { Page } from 'components/templates' + +const ListItemButton = styled(MuiListItemButton)(({ theme }) => ({ + h6: { + color: theme.palette.text.secondary, + }, + ':hover': { + backgroundColor: 'transparent', + color: theme.palette.primary.main, + h6: { + color: theme.palette.primary.dark, + }, + }, +})) + +const ContactPage = () => { + return ( + + + Feel free to contact me using any of the following: + + + + window.open('mailto:michele.tartari+web@live.com', '_blank')}> + + + michele.tartari+web@live.com + + + + + window.open('https://www.linkedin.com/in/m-tartari/', '_blank')}> + + + m-tartari + + + + + window.open('https://www.github.com/m-tartari/', '_blank')}> + + + m-tartari + + + + + + ) +} + +export default ContactPage diff --git a/src/components/pages/ContactPage/index.ts b/src/components/pages/ContactPage/index.ts new file mode 100644 index 0000000..1efbd59 --- /dev/null +++ b/src/components/pages/ContactPage/index.ts @@ -0,0 +1 @@ +export { default } from './ContactPage' diff --git a/src/components/pages/index.ts b/src/components/pages/index.ts index 74a0199..3281232 100644 --- a/src/components/pages/index.ts +++ b/src/components/pages/index.ts @@ -1,3 +1,4 @@ export { default as MainPage } from './MainPage' +export { default as ContactPage } from './ContactPage' export { default as ErrorPage } from './ErrorPage'