import Head from 'next/head' import Link from 'next/link' import {GetStaticProps} from 'next' import {ElementType} from 'react' import {Card} from '@/components/Card' import {Button} from '@/components/Button' import {Container} from '@/components/Container' import { GitHubIcon, LinkedInIcon, TwitterIcon } from '@/components/SocialIcons' import {InlineLink} from '@/components/InlineLink'; import {formatDate} from '@/lib/formatDate' import {generateRssFeed} from '@/lib/generateRssFeed' import {generateSitemap} from '@/lib/generateSitemap' import {getAllArticles} from '@/lib/getAllArticles' import {Article} from 'types' type Work = { company: string title: string start: { label: string dateTime: string } end: { label: string dateTime: string } } type SocialLink = { href: string icon: ElementType } function BriefcaseIcon(props: { className: string }) { return ( ) } function ArrowDownIcon(props: { className: string }) { return ( ) } function Article(article: Article) { return ( {article.title} {formatDate(article.date)} {article.description} Read more ) } function SocialLink({icon: Icon, href}: SocialLink) { return ( ) } function Resume() { const work: Work[] = [ { company: 'Aer Lingus', title: 'Software engineer', start: { label: '2022', dateTime: '2022' }, end: { label: 'present', dateTime: new Date().getFullYear().toString(), } }, { company: 'Apple', title: 'At home advisor', start: { label: '2014', dateTime: '2014' }, end: { label: '2018', dateTime: '2018' }, } ] return (

Work

    {work.map((role, roleIndex) => (
  1. Company
    {role.company}
    Role
    {role.title}
    Date
  2. ))}
) } export default function Home({articles}: { articles: Article[] }) { return ( <> Ryan Freeman - Full-stack software engineer from Dublin, Ireland.

Full-stack software engineer who enjoys building cloud-native applications.

Hi. I'm Ryan, a software engineer based in Dublin, Ireland. I'm currently working in the aviation industry for Aer Lingus. I am passionate about personal growth and progressing in my career. This is my personal website where you can learn more about me, read articles I've written and see projects I've worked on.

{articles.map(({slug, title, description, date}) => (
))}
) } export const getStaticProps: GetStaticProps = async () => { if (process.env.NODE_ENV === 'production') { await generateRssFeed() await generateSitemap() } return { props: { articles: (await getAllArticles()) .slice(0, 1) .map(({component, ...meta}) => meta), } } }