import React from 'react' import {Card} from '@/components/ui/Card' import {Views} from '@/components/ui/Views' import {Resume} from '@/components/ui/Resume' import {SocialLink} from '@/components/ui/SocialLink' import {Container} from '@/components/common/Container' import {GitHubIcon, LinkedInIcon} from '@/components/icons/SocialIcons' import {getAllArticles} from '@/lib/getAllArticles' import {formatDate} from '@/lib/formatDate' import type {Article} from '@/types' import {metadata as _metadata} from '@/lib/generateMetadata' const meta = { title: 'Ryan Freeman - Full-stack software engineer based in Dublin, Ireland.', heading: 'Full-stack software engineer who enjoys building cloud-native applications.', description: '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.', type: 'website' } export const metadata = _metadata({...meta, heading: meta.heading}) function Article(article: Article) { return (
{article.title}

{formatDate(article.date)}

) } export default async function Home() { const articles = (await getAllArticles()) .slice(0, 3) .map(component => component) return ( <>

{meta.heading}

{meta.description}

{articles.map(({slug, title, description, date}) => (
))}
) }