Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rew calc demo #177

Merged
merged 2 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions src/pages/calculator_demo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import Layout from "@theme/Layout";
import SiteHero from "@site/src/components/Layout/SiteHero";
import BoundaryBox from "@site/src/components/Layout/BoundaryBox";
import TitleWithText from "@site/src/components/Layout/TitleWithText";
import OpenGraphImage from "@site/src/components/Layout/OpenGraphImage";

function HomepageHeader() {
const { siteTitle } = "useDocusaurusContext()";
return (
<SiteHero
title="Staking Calculator"
description="See how much you could potentially earn by staking ada and learn how rewards are calculated."
bannerType="dots"
/>
);
}

export default function Home() {

return (
<Layout
title="Staking Calculator | cardano.org"
description="See how much rewards you can possibly earn by staking ada."
>
<OpenGraphImage pageName="calculator" />
<HomepageHeader />
<main>
<BoundaryBox>
<TitleWithText
title="Reward Calculator"
titleType="black"
description="Please allow the reward calculator a few seconds to load the necessary live data."
headingDot={true}
/>
</BoundaryBox>
<iframe
src="/reward-calculator"
style={{ width: "100%", height: "100vh", border: "none" }}
></iframe>
</main>
</Layout>
);
}
1 change: 1 addition & 0 deletions static/reward-calculator/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link rel="preload" href="/reward-calculator/_next/static/css/9b7fbdeb5415a520.css" as="style"/><link rel="stylesheet" href="/reward-calculator/_next/static/css/9b7fbdeb5415a520.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/reward-calculator/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/reward-calculator/_next/static/chunks/webpack-dcc777a7814383c4.js" defer=""></script><script src="/reward-calculator/_next/static/chunks/framework-64ad27b21261a9ce.js" defer=""></script><script src="/reward-calculator/_next/static/chunks/main-5dce8d09384f6a9f.js" defer=""></script><script src="/reward-calculator/_next/static/chunks/pages/_app-87cee5540118d1b4.js" defer=""></script><script src="/reward-calculator/_next/static/chunks/pages/_error-7a92967bea80186d.js" defer=""></script><script src="/reward-calculator/_next/static/wDSRzW4q4RXlTbX1gKvqc/_buildManifest.js" defer=""></script><script src="/reward-calculator/_next/static/wDSRzW4q4RXlTbX1gKvqc/_ssgManifest.js" defer=""></script></head><body class="antialiased"><div id="__next"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">This page could not be found<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"wDSRzW4q4RXlTbX1gKvqc","assetPrefix":"/reward-calculator","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"pageProps":{"lang":"en"},"__N_SSG":true}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading