diff --git a/app/page.tsx b/app/page.tsx index 7ce1545..b160252 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -6,7 +6,7 @@ import {getAllArticles} from '@/lib/getAllArticles' import {formatDate} from '@/lib/formatDate' import type {Article} from '@/types' import {metadata as _metadata} from '@/lib/generateMetadata' -import {SimpleLayout} from "@/components/layouts/SimpleLayout"; +import {SimpleLayout} from '@/components/layouts/SimpleLayout' const meta = { title: 'Ryan Freeman - Full-stack software engineer based in Dublin, Ireland.', @@ -66,7 +66,8 @@ export default async function Home() { return ( + gradient="bg-gradient-to-r from-pink-500 to-violet-500" + displaySocials={true}>
{articles.map(({slug, title, description, date}) => ( diff --git a/components/layouts/SimpleLayout.tsx b/components/layouts/SimpleLayout.tsx index 898c116..7a86d01 100644 --- a/components/layouts/SimpleLayout.tsx +++ b/components/layouts/SimpleLayout.tsx @@ -1,19 +1,23 @@ -import {ReactNode} from 'react' +import React, {ReactNode} from 'react' import {Container} from '@/components/common/Container' import {twMerge} from 'tailwind-merge' +import {SocialLink} from '@/components/ui/SocialLink' +import {GitHubIcon, LinkedInIcon} from '@/components/icons/SocialIcons' export type SimpleLayoutProps = { heading: string description: string children: ReactNode gradient: string + displaySocials?: boolean } export function SimpleLayout({ heading, description, children, - gradient + gradient, + displaySocials = false }: SimpleLayoutProps) { return ( @@ -33,6 +37,20 @@ export function SimpleLayout({

{description}

+ {displaySocials && +
+ + +
+ }
{children}