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

feat(ui): optional extra footer item #327

Merged
merged 3 commits into from
Nov 22, 2024
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
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ This section provides instructions for running the protocol and UI in a local Al
pnpm run dev:testnet
```

## Documentation
- The documentation is currently available online at https://txnlab.gitbook.io/reti-open-pooling
- The content is synced with the docs/gitbook branch of this repo inside the ./docs directory.
- The changes in that branch should periodically be merged into main but the docs/gitbook branch is the source of truth for the public docs site currently hosted at: https://txnlab.gitbook.io/reti-open-pooling

## Additional Resources

- **TEALScript Contracts**: Explore the smart contracts that power the protocol. [Read more](./contracts/README.md)
Expand Down
27 changes: 18 additions & 9 deletions ui/src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,22 @@ const navigation = [
},
]

export function FooterExtraItem() {
return (
<>
<span className="mx-1 opacity-50">|</span>{' '}
<a
href={import.meta.env.VITE_FOOTER_EXTRA_ITEM_HREF}
className="link hover:text-foreground"
target="_blank"
rel="noopener noreferrer"
>
{import.meta.env.VITE_FOOTER_EXTRA_ITEM}
</a>
</>
)
}

export function Footer() {
return (
<footer className="bg-background" aria-labelledby="footer-heading">
Expand All @@ -53,15 +69,8 @@ export function Footer() {
</div>
<div className="mt-8 md:order-1 md:mt-0">
<p className="text-center text-sm leading-5 text-stone-600 dark:text-stone-400">
Réti Pooling v{__APP_VERSION__} <span className="mx-1 opacity-50">|</span>{' '}
<a
href="https://github.com/algorandfoundation/reti"
className="link hover:text-foreground"
target="_blank"
rel="noopener noreferrer"
>
TxnLab/reti
</a>
Réti Pooling v{__APP_VERSION__}
{import.meta.env.VITE_FOOTER_EXTRA_ITEM && FooterExtraItem()}
</p>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions ui/src/vite-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ interface ImportMetaEnv {
readonly VITE_KMD_PORT: string
readonly VITE_KMD_PASSWORD: string
readonly VITE_KMD_WALLET: string

readonly VITE_FOOTER_EXTRA_ITEM: string
readonly VITE_FOOTER_EXTRA_ITEM_HREF: string
}

interface ImportMeta {
Expand Down