diff --git a/docusaurus.config.js b/docusaurus.config.js index 4d7909b..ce0cee0 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -93,6 +93,7 @@ const config = { {to: '/stake-pool-operation', label: 'Operate a stake pool'}, {to: '/governance', label: 'Participate in governance'}, {to: '/ouroboros', label: 'What is Ouroboros?'}, + {to: '/hardforks', label: 'Which hard forks were there?'}, {to: '/genesis', label: 'About Genesis Distribution'}, {href: 'https://beta.explorer.cardano.org', label: 'Explore the blockchain'}, ], @@ -108,7 +109,6 @@ const config = { {to: '/#follow', label: 'Follow Cardano'}, {href: 'https://forum.cardano.org', label: 'Cardano Forum'}, {href: 'https://forum.cardano.org/t/cardano-stay-safe-series-official-community-channel-list/20046', label: 'Social Channels'}, - ], }, { diff --git a/package.json b/package.json index 322a9d4..4170ea3 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "clsx": "^2.0.0", "prism-react-renderer": "^2.3.0", "react": "^18.0.0", + "react-chrono": "^2.6.1", "react-collapsible": "^2.10.0", "react-dom": "^18.0.0", "react-icons": "^5.0.1", diff --git a/src/pages/hardforks.js b/src/pages/hardforks.js new file mode 100644 index 0000000..d818a09 --- /dev/null +++ b/src/pages/hardforks.js @@ -0,0 +1,170 @@ +import React from "react"; +import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; +import Layout from "@theme/Layout"; +import Link from "@docusaurus/Link"; +import SiteHero from "@site/src/components/Layout/SiteHero"; +import BoundaryBox from "@site/src/components/Layout/BoundaryBox"; +import Divider from "@site/src/components/Layout/Divider"; +import TitleWithText from "@site/src/components/Layout/TitleWithText"; +import BackgroundWrapper from "@site/src/components/Layout/BackgroundWrapper"; +import OpenGraphImage from "@site/src/components/Layout/OpenGraphImage"; +import SpacerBox from "@site/src/components/Layout/SpacerBox"; +import { Chrono } from "react-chrono"; +import BrowserOnly from '@docusaurus/BrowserOnly'; + +// Hard Fork List +const timelineItems = [ + { + title: "Byron Era", + cardTitle: "September 29, 2017", + cardSubtitle: "Name: Byron", + cardDetailedText: [ + "The launch of the Cardano mainnet and introduction of the ada cryptocurrency.", + "Epoch 0", + "Protocol Version: 1.0", + "Transaction ID: N/A (Genesis block)", + ], + }, + { + title: "Shelley Era", + cardTitle: "July 29, 2020", + cardSubtitle: "Name: Shelley", + cardDetailedText: [ + "Introduced staking and decentralization features, transitioning from a federated to a decentralized system.", + "Epoch 208", + "Protocol Version: 2.0", + "Transaction ID: N/A (Transitioned through several updates)", + ], + }, + { + title: "Allegra Era", + cardTitle: "December 16, 2020", + cardSubtitle: "Name: Allegra", + cardDetailedText: [ + "Added token locking capabilities, which was a prerequisite for the smart contract functionality.", + "Epoch 236", + "Protocol Version: 3.0", + "Transaction ID: 1fbd16c1d1b1933f2f97a313db8c749bdcf65a39d996515b0f5e5535baad68e8", + ], + }, + { + title: "Mary Era", + cardTitle: "March 1, 2021", + cardSubtitle: "Name: Mary", + cardDetailedText: [ + "Brought native token functionality to Cardano, allowing users to create and transact with custom tokens.", + "Epoch 251", + "Protocol Version: 4.0", + "Transaction ID: b7f5658a5aabced7f8599cf7bf7cb9d6f730b865a5a0430f2dc7488caf25752e", + ], + }, + { + title: "Alonzo Era", + cardTitle: "September 12, 2021", + cardSubtitle: "Name: Alonzo", + cardDetailedText: [ + "Introduced smart contract capabilities using Plutus, enabling the deployment of decentralized applications (dApps).", + "Epoch 290", + "Protocol Version: 5.0", + "Transaction ID: N/A (Specific transaction ID not provided)", + ], + }, + { + title: "Alonzo Era", + cardTitle: "October 22, 2021", + cardSubtitle: "Name: (Lobster)", //TODO: confirm name + cardDetailedText: [ + // "-", // FIXME: what changed? + "Epoch 298", + "Protocol Version: 6.0", + "Transaction ID: N/A (Specific transaction ID not provided)", + ], + }, + { + title: "Babbage Era", + cardTitle: "September 22, 2022", + cardSubtitle: "Name: Vasil", + cardDetailedText: [ + "Improved the scalability and performance of the network, named after Vasil Dabov, a Cardano community member.", + "Epoch 365", + "Protocol Version: 7.0", + "Transaction ID: 8230f33cd7ad3f8601e94ea2b18abdc591187e190ea8ebecc25e20fc66200f13", + ], + }, + { + title: "Babbage Era", + cardTitle: "February 14, 2023", + cardSubtitle: "Name: Valentine", + cardDetailedText: [ + "Introduced further improvements to Plutus smart contract functionality and overall network performance.", + "Epoch 394", + "Protocol Version: 8.0", + "Transaction ID: a83f479c5635e1e563a19f6e72a1be59fb082bbf31de90cc176850ee799b08ac", + ], + }, +]; + +function HomepageHeader() { + const { siteTitle } = useDocusaurusContext(); + return ( + + ); +} + +export default function Home() { + return ( + + + + + + + + + Loading...}> + {() => ( + + )} + + + + + + + + + + + + + ); +} \ No newline at end of file diff --git a/static/img/og/hard-forks.jpg b/static/img/og/hard-forks.jpg new file mode 100644 index 0000000..46b2055 Binary files /dev/null and b/static/img/og/hard-forks.jpg differ