diff --git a/packages/website/components/BlogSection.tsx b/packages/website/components/BlogSection.tsx
index e7d4e92af59..1f2bce4d975 100644
--- a/packages/website/components/BlogSection.tsx
+++ b/packages/website/components/BlogSection.tsx
@@ -1,56 +1,161 @@
-const posts = [
- {
- title: "Taiko Ambassador Program",
- href: "https://mirror.xyz/labs.taiko.eth/BvcEyYeVIiHnjc-i5qf3zR4s67Jc6nz_R6OSGj5rzOE",
- description:
- "Ethereum has come a long way in its seven-year life — changing the world, in our opinion — but it is only just getting started.",
- date: "Jan 04, 2023",
- datetime: "2023-01-04",
- imageUrl:
- "https://mirror-media.imgix.net/publication-images/5Ed-TXJIB3LTC2HJdPuEN.png?height=512&width=1024&h=512&w=1024&auto=compress",
- readingTime: "2 min",
- author: {
- name: "finestone",
- imageUrl: "https://avatars.githubusercontent.com/u/36642873?v=4",
- },
- },
- {
- title: "Taiko Alpha-1 Testnet is Live",
- href: "https://mirror.xyz/labs.taiko.eth/-lahy4KbGkeAcqhs0ETG3Up3oTVzZ0wLoE1eK_ao5h4",
- description:
- "Today, the Taiko Alpha-1 testnet (a1) is live - our first public testnet! We’ve codenamed this testnet, Snæfellsjökull.",
- date: "Dec 27, 2022",
- datetime: "2022-12-27",
- imageUrl:
- "https://mirror-media.imgix.net/publication-images/4qVW-dWhNmMQr61g91hGt.png?height=512&width=1024&h=512&w=1024&auto=compress",
- readingTime: "4 min",
- author: {
- name: "finestone",
- imageUrl: "https://avatars.githubusercontent.com/u/36642873?v=4",
- },
- },
- {
- title: "Rollup Decentralization",
- href: "https://mirror.xyz/labs.taiko.eth/sxR3iKyD-GvTuyI9moCg4_ggDI4E4CqnvhdwRq5yL0A",
- description:
- "This post explores definitions and high-level ideas of rollup decentralization. It does not cover deep technical detail about decentralizing rollup implementations.",
- date: "Dec 20, 2022",
- datetime: "2022-12-20",
- imageUrl:
- "https://mirror-media.imgix.net/publication-images/NTeYUqYqHo4NqrRGJHvfO.png?height=512&width=1024&h=512&w=1024&auto=compress",
- readingTime: "9 min",
- author: {
- name: "finestone",
- imageUrl: "https://avatars.githubusercontent.com/u/36642873?v=4",
- },
- },
-];
+import React, { useEffect, useState } from "react";
+import { getPosts } from "./getPosts";
+
+interface Content {
+ body: string;
+ timestamp: number;
+ title: string;
+}
+
+interface Authorship {
+ contributor: string;
+ signingKey: {
+ crv: string;
+ ext: boolean;
+ key_ops: string[];
+ kty: string;
+ x: string;
+ y: string;
+ };
+ signature: string;
+ signingKeySignature: string;
+ signingKeyMessage: string;
+ algorithm: {
+ name: string;
+ hash: string;
+ };
+}
+
+interface Wnft {
+ chainId: number;
+ description: string;
+ fee: number;
+ fundingRecipient: string;
+ imageURI: string;
+ mediaAssetId: number;
+ name: string;
+ nonce: number;
+ owner: string;
+ price: number;
+ proxyAddress: string;
+ renderer: string;
+ supply: number;
+ symbol: string;
+}
+
+interface Post {
+ OriginalDigest: string;
+ content: Content;
+ authorship: Authorship;
+ digest: string;
+ version: string;
+ wnft: Wnft;
+}
+
+function getReadingTime(text) {
+ const wordsPerMinute = 200;
+ const wordCount = text.split(" ").length;
+ const readingTime = Math.round(wordCount / wordsPerMinute);
+ return readingTime;
+}
+
+function getDate(timestamp: string): string {
+ let date = new Date(Number(timestamp) * 1000);
+ return date.toLocaleDateString("en-US", {
+ year: "numeric",
+ month: "short",
+ day: "numeric",
+ });
+}
+
+function getDateTime(timestamp: string): string {
+ let date = new Date(parseInt(timestamp) * 1000);
+ return `${date.getFullYear()}-${(date.getMonth() + 1)
+ .toString()
+ .padStart(2, "0")}-${date.getDate().toString().padStart(2, "0")}`;
+}
+
+function checkIfPostAreSet(posts) {
+ if (posts.length > 0) {
+ return posts.map((post: Post) => (
+
+
+
+
+
+
+
+
+ ·
+ {getReadingTime(post.content.body) + " min read"}
+
+
+
+
+
+ ));
+ } else {
+ const amountOfPostsToDisplay = 3;
+ return [...Array(amountOfPostsToDisplay)].map((v, i) => (
+
+ ));
+ }
+}
+
+export default function BlogSection(): JSX.Element {
+ const [posts, setPosts] = useState