Skip to content

Commit

Permalink
fix(fe: Home): inner content styling
Browse files Browse the repository at this point in the history
  • Loading branch information
skripnike committed Oct 16, 2023
1 parent 43d5dfa commit af41f55
Showing 1 changed file with 100 additions and 92 deletions.
192 changes: 100 additions & 92 deletions example-frontend/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,98 +1,106 @@
export default function Home() {
return (
<div className="relative flex flex-col h-16 justify-between">
<h1 className="text-xl underline">
Welcome to the OffsetHelper Example Frontend
</h1>
<p className="m-3">
Helper functions that simplify the carbon offsetting (retirement)
process. Retiring carbon tokens requires multiple steps and interactions
with Toucan Protocol&lsquo;s main contracts:
</p>
<br />
<ol className="m-3">
<li className="m-5">
{" "}
1. Obtain a Toucan pool token such as BCT or NCT (by performing a
token swap).
</li>
<li className="m-5"> 2. Redeem the pool token for a TCO2 token.</li>
<li className="m-5"> 3. Retire the TCO2 token.</li>
</ol>
<div className="space-y-5 text-black text-base max-w-4xl">
<h1 className="text-2xl">Welcome to the OffsetHelper Example Frontend</h1>

<p className="m-3">
These steps are combined in each of the following &quot;auto
offset&quot; methods implemented in OffsetHelper to allow a retirement
within one transaction:
</p>
<ul>
<li className="m-5">
<code className="underline text-forest">
<a
href="/autoOffsetPoolToken"
target="_blank"
rel="noopener noreferrer"
>
autoOffsetPoolToken()
</a>
</code>{" "}
if the user already owns a Toucan pool token such as BCT or NCT,
</li>
<li className="m-5">
<code className="underline text-forest">
<a
href="/autoOffsetExactOutToken"
target="_blank"
rel="noopener noreferrer"
>
autoOffsetExactOutToken()
</a>
</code>{" "}
if the user would like to perform a retirement using an ERC20 token
(USDC, WETH or WMATIC), specifying the exact amount of TCO2s to
retire,
</li>
<li className="m-5">
<code className="underline text-forest">
<a
href="/autoOffsetExactInToken"
target="_blank"
rel="noopener noreferrer"
>
autoOffsetExactInToken()
</a>
</code>{" "}
if the user would like to perform a retirement using an ERC20 token
(USDC, WETH or WMATIC), specifying the exact amount of token to swap
into TCO2s.
</li>
<li className="m-5">
<code className="underline text-forest">
<a
href="/autoOffsetExactOutETH"
target="_blank"
rel="noopener noreferrer"
>
autoOffsetExactOutETH()
</a>
</code>{" "}
if the user would like to perform a retirement using MATIC, specifying
the exact amount of TCO2s to retire,
</li>
<li className="m-5">
<code className="underline text-forest">
<a
href="/autoOffsetExactInETH"
target="_blank"
rel="noopener noreferrer"
>
autoOffsetExactInETH()
</a>
</code>{" "}
if the user would like to perform a retirement using MATIC, swapping
all sent MATIC into TCO2s,
</li>
</ul>
<div className="space-y-3">
<p className="">
Helper functions that simplify the carbon offsetting (retirement)
process. Retiring carbon tokens requires multiple steps and
interactions with Toucan Protocol&lsquo;s main contracts:
</p>

<ol className="list-decimal list-outside ml-8">
<li>
Obtain a Toucan pool token such as BCT or NCT (by performing a token
swap).
</li>
<li>Redeem the pool token for a TCO2 token.</li>
<li>Retire the TCO2 token.</li>
</ol>
</div>

<div className="space-y-3">
<p className="">
These steps are combined in each of the following &quot;auto
offset&quot; methods implemented in OffsetHelper to allow a retirement
within one transaction:
</p>

<ul className="list-disc list-outside ml-8 space-y-2">
<li>
<code className="text-forest rounded-md bg-gray-200 px-1.5 py-1">
<a
className="underline hover:no-underline"
href="/autoOffsetPoolToken"
target="_blank"
rel="noopener noreferrer"
>
autoOffsetPoolToken()
</a>
</code>{" "}
- if the user already owns a Toucan pool token such as BCT or NCT;
</li>
<li>
<code className="text-forest rounded-md bg-gray-200 px-1.5 py-1">
<a
className="underline hover:no-underline"
href="/autoOffsetExactOutToken"
target="_blank"
rel="noopener noreferrer"
>
autoOffsetExactOutToken()
</a>
</code>{" "}
- if the user would like to perform a retirement using an ERC20
token (USDC, WETH or WMATIC), specifying the exact amount of TCO2s
to retire;
</li>
<li>
<code className="text-forest rounded-md bg-gray-200 px-1.5 py-1">
<a
className="underline hover:no-underline"
href="/autoOffsetExactInToken"
target="_blank"
rel="noopener noreferrer"
>
autoOffsetExactInToken()
</a>
</code>{" "}
- if the user would like to perform a retirement using an ERC20
token (USDC, WETH or WMATIC), specifying the exact amount of token
to swap into TCO2s;
</li>
<li>
<code className="text-forest rounded-md bg-gray-200 px-1.5 py-1">
<a
className="underline hover:no-underline"
href="/autoOffsetExactOutETH"
target="_blank"
rel="noopener noreferrer"
>
autoOffsetExactOutETH()
</a>
</code>{" "}
- if the user would like to perform a retirement using MATIC,
specifying the exact amount of TCO2s to retire;
</li>
<li>
<code className="text-forest rounded-md bg-gray-200 px-1.5 py-1">
<a
className="underline hover:no-underline"
href="/autoOffsetExactInETH"
target="_blank"
rel="noopener noreferrer"
>
autoOffsetExactInETH()
</a>
</code>{" "}
- if the user would like to perform a retirement using MATIC,
swapping all sent MATIC into TCO2s;
</li>
</ul>
</div>
</div>
);
}

0 comments on commit af41f55

Please sign in to comment.