diff options
author | Michał Sapka <michal@sapka.me> | 2023-01-02 22:12:38 +0100 |
---|---|---|
committer | Michał Sapka <michal@sapka.me> | 2023-01-02 22:12:38 +0100 |
commit | 679e6588d1ef6709f9e579f8ab2fa1b3ad2ac9d8 (patch) | |
tree | fe99580d72ae2f8a2b6dd4f97e8009fe616591c0 /pages | |
parent | 8b1cecc8f08e8145173c94f6236cf843073a37f4 (diff) |
feat: remove old
Diffstat (limited to 'pages')
-rw-r--r-- | pages/_app.tsx | 17 | ||||
-rw-r--r-- | pages/_document.tsx | 21 | ||||
-rw-r--r-- | pages/api/hello.ts | 13 | ||||
-rw-r--r-- | pages/index.tsx | 133 |
4 files changed, 0 insertions, 184 deletions
diff --git a/pages/_app.tsx b/pages/_app.tsx deleted file mode 100644 index 8f7cd459..00000000 --- a/pages/_app.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { ChakraProvider } from '@chakra-ui/react' -import theme from '../lib/theme' -import type { AppProps } from 'next/app' -import '@fontsource/lato/400.css' -import { useAnalytics } from '@happykit/analytics'; - -function MyApp({ Component, pageProps }: AppProps) { - useAnalytics({ publicKey: "analytics_pub_a2812a8f3f" }) - - return ( - <ChakraProvider theme={theme}> - <Component {...pageProps} /> - </ChakraProvider> - ) -} - -export default MyApp diff --git a/pages/_document.tsx b/pages/_document.tsx deleted file mode 100644 index 954a73db..00000000 --- a/pages/_document.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { ColorModeScript } from '@chakra-ui/react' -import NextDocument, { Html, Head, Main, NextScript } from 'next/document' -import theme from '../lib/theme' - -export default function Document() { - return ( - <Html lang="en"> - <Head> - <link rel="alternate" type="application/rss+xml" href="https://www.sapka.me/rss/feed.xml" title="Recent publications RSS Feed" /> - <link rel="alternate" type="application/feed+json" href="https://www.sapka.me/rss/feed.json" title="Recent publications RSS Feed" /> - <link rel="alternate" type="application/atom+xml" href="https://www.sapka.me/rss/atom.xml" title="Recent publications RSS Feed" /> - </Head> - <body> - <ColorModeScript initialColorMode={theme.config.initialColorMode} /> - <Main /> - <NextScript /> - </body> - </Html> - ) -} - diff --git a/pages/api/hello.ts b/pages/api/hello.ts deleted file mode 100644 index f8bcc7e5..00000000 --- a/pages/api/hello.ts +++ /dev/null @@ -1,13 +0,0 @@ -// Next.js API route support: https://nextjs.org/docs/api-routes/introduction -import type { NextApiRequest, NextApiResponse } from 'next' - -type Data = { - name: string -} - -export default function handler( - req: NextApiRequest, - res: NextApiResponse<Data> -) { - res.status(200).json({ name: 'John Doe' }) -} diff --git a/pages/index.tsx b/pages/index.tsx deleted file mode 100644 index 6a2fd8d3..00000000 --- a/pages/index.tsx +++ /dev/null @@ -1,133 +0,0 @@ -import type { NextPage } from 'next' -import Layout from '../components/layout' -import { - VStack, - HStack, - Box, - Heading, - Link, - Icon, - Text, - Stack, - Button, - useColorModeValue -} from '@chakra-ui/react' -import { - AiFillGithub, - AiFillMediumCircle, - AiFillTwitterCircle, - AiOutlineLinkedin -} from "react-icons/ai"; -import Publications from "../data/publications" -import { NextSeo } from 'next-seo' -import generateRssFeed from "../lib/feed" -import Image from "../lib/next_image" - -import MichalPhoto from "../public/images/michal.png" - -type BioEntryType = { - date: string, - description: string -} - -const BioEntry = ({date, description} : BioEntryType) => { - return <HStack spacing="6" alignItems="start"> - <Box fontWeight='bolder'>{date}</Box> - <Box>{description}</Box> - </HStack> -} - -const Home: NextPage = () => { - return ( - <Layout> - <NextSeo - title="Michał Sapka - Homepage" - description="Hello and welcome to my homepage" - /> - <VStack spacing="24px"align="stretch"> - <Box as="section"> - <Stack width="100%" direction={["column", "column", "row"]}> - <Box flex="1"> - <Heading variant="main-title">Michał Sapka</Heading> - <Text variant="main-title">Senior Software Engineer working at Zendesk.</Text> - </Box> - <Box textAlign="center"> - <Image - display="inline-block" - src={MichalPhoto} - width="120px" - height="120px" - borderRadius="full" - borderWidth = "3px" - borderStyle = "solid" - borderColor = {useColorModeValue("#eee8d5", "#6272a4")} - /> - </Box> - </Stack> - </Box> - - <Box as="section"> - <Heading variant="section-title" as="h3">About me</Heading> - <Text> - Michał is a self-thought software engineer working at <Link href="https://zendesk.com" isExternal>Zendesk</Link>. Even though he has started his professional programming life relatively late in life, he has been passionate about computers since he was ten. He loves the process of creating software. Even though he consider caring about the product a requisite, the technical side strongly drives him. He takes pride in what and how he do things. He has most extensive experience working with Ruby on Rails and relative databases. Still, he is expanding my knowledge around service-oriented architecture, no-SQL databases, and other languages - currently, he is trying to get the hang of Golang and MongoDB. He is also trying to get familiar with the modern ReactJS ecosystem. - </Text> - </Box> - - <Box as="section"> - <Heading variant="section-title" as="h3">Bio</Heading> - <BioEntry date="1985" description="Born"/> - <BioEntry date="2009" description="Gratuated The Silesian University of Technology with M.Eng. title in Automation and Robotics"/> - <BioEntry date="2016" description="Joined Zendesk"/> - - </Box> - - <Box as="section"> - <Heading variant="section-title" as="h3">Recent publications</Heading> - <VStack spacing="1" alignItems="start"> - {Publications.map((value, key) => { - return <Box key={key}> - <Link href={value.url} isExternal>{value.title}</Link> - </Box> - - })} - </VStack> - - <Stack width="100%" direction={['column', 'column', 'row', 'row']}> - <Box flex="1" mt="2" mb="2" textAlign={['left', 'left', 'center', 'center']}> - <Link href="https://mailchi.mp/85b0caa8a1c1/michalsapkapl" isExternal> - <Button>Subscribe to my newsletter</Button> - </Link> - <Box opacity="0.5"> - <Link href="https://www.sapka.me/rss/feed.xml"> - or subscribe via RSS - </Link> - </Box> - </Box> - </Stack> - </Box> - - <Box as="section"> - <Heading variant="section-title" as="h3">On the web</Heading> - <VStack spacing="1" alignItems="start"> - <Box> - <Link variant="list-link" href="https://github.com/michalsapka" isExternal><Icon as={AiFillGithub}/> Github</Link> - </Box> - <Box> - <Link variant="list-link" href="https://blog.sapka.me" isExternal><Icon as={AiFillMediumCircle}/> Medium</Link> - </Box> - </VStack> - <Box> - <Link variant="list-link" href="https://twitter.com/michalsapka" isExternal><Icon as={AiFillTwitterCircle}/> Twitter</Link> - </Box> - </Box> - </VStack> - </Layout> - ) -} - -export const getStaticProps = async (context : any) => { - await generateRssFeed(); - return { props: {} }; -}; - -export default Home |