Skip to content

Commit

Permalink
calculator page
Browse files Browse the repository at this point in the history
  • Loading branch information
saml33 committed Aug 19, 2024
1 parent d5a33c4 commit eadf713
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ const Footer = () => {
>
Stats
</Link>
<Link
className="block text-th-fgd-1 md:hover:text-th-fgd-3"
href="/yield-calculator"
>
Yield calculator
</Link>
</div>
<div className="col-span-4 space-y-3 md:col-span-1">
<h4>Important Info</h4>
Expand Down
30 changes: 30 additions & 0 deletions pages/yield-calculator.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import YieldCalculator from '@components/home/YieldCalculator'
import { NextPage } from 'next'
import Link from 'next/link'

const YieldCalc: NextPage = () => {
return (
<div className="mx-auto w-full max-w-5xl py-12">
<h2 className="text-shadow mb-2 px-6 text-center text-3xl text-th-button-text md:text-5xl xl:px-0">
Yield calculator
</h2>
<p className="mb-6 text-center text-base text-th-fgd-2">
Compare native liquid staking yields with Yield Fan to see the extra
returns you could earn.
</p>
<YieldCalculator />
<div className="mx-auto max-w-3xl pt-6">
<p className="text-center text-sm text-th-fgd-4">
This calculator is for educational purposes only. It assumes rates and
prices remain constant over time. Take the time to understand the{' '}
<Link className="underline md:hover:no-underline" href="/risks">
risks
</Link>{' '}
before depositing any funds.
</p>
</div>
</div>
)
}

export default YieldCalc

0 comments on commit eadf713

Please sign in to comment.