diff --git a/components/animatedLink.tsx b/components/animatedLink.tsx new file mode 100644 index 0000000..8e03faa --- /dev/null +++ b/components/animatedLink.tsx @@ -0,0 +1,22 @@ +import Link from 'next/link'; +import React from 'react'; + +interface AnimatedLinkProps { + href: string; + children: React.ReactNode; + className?: string; +} + +const AnimatedLink = ({ href, children, className = '' }: AnimatedLinkProps) => { + return ( + + {children} + + + ); +}; + +export default AnimatedLink; \ No newline at end of file diff --git a/components/blogpost.tsx b/components/blogpost.tsx index c79ca49..a113d45 100644 --- a/components/blogpost.tsx +++ b/components/blogpost.tsx @@ -1,6 +1,6 @@ 'use client'; -import Link from 'next/link'; +import AnimatedLink from '../components/animatedLink'; import Image from 'next/image'; interface BlogPost { @@ -34,9 +34,9 @@ export default function BlogArea({ blogposts }: BlogAreaProps) {
Posted: {blogpost.publish}