diff --git a/components/blogpost.tsx b/components/blogpost.tsx index 9226df3..cbdc67b 100644 --- a/components/blogpost.tsx +++ b/components/blogpost.tsx @@ -3,66 +3,64 @@ import Link from 'next/link'; import Image from 'next/image'; -import blogTestPic from './retrofuturism.webp'; - interface BlogPost { - label: string; - body: string; - publish: string; - get_absolute_url: string; + label: string; + body: string; + publish: string; + get_absolute_url: string; } interface BlogAreaProps { - blogposts: BlogPost[]; + blogposts: BlogPost[]; } export default function BlogArea({ blogposts }: BlogAreaProps) { - return ( -
-
- {blogposts.map((blogpost, index) => ( -
-
-
- Retrospective Science Image -
+ return ( +
+
+ {blogposts.map((blogpost, index) => ( +
+
+
+ Retrospective Science Image +
+
+
+
+

+ + {blogpost.label} + +

+
+
    +
  • Games
  • +
  • Science
  • +
+
+ {blogpost.body.slice(0, 512)}... +
+
+
+

Posted: {blogpost.publish}

+
+
+ + Read + +
+
+
+
+ ))}
-
-
-

- - {blogpost.label} - -

-
-
    -
  • Games
  • -
  • Science
  • -
-
- {blogpost.body.slice(0, 512)}... -
-
-
-

Posted: {blogpost.publish}

-
-
- - Read - -
-
-
-
- ))} -
- {/* Include Pagination Component Here */} -
- ); + {/* Include Pagination Component Here */} +
+ ); } \ No newline at end of file