import * as React from 'react'; import { useTranslate } from '@portal/hooks'; const recommendedPages = [ { "description": "rippled API Reference", "link": "./manage-the-rippled-server.html", }, { "description": "XRP Faucet", "link": "./xrp-testnet-faucet.html", }, { "description": "Getting Started with Python", "link": "./get-started-using-python.html#get-started-using-python", }, { "description": "Websocket API Tool", "link": "./websocket-api-tool.html", }, { "description": "XRP Ledger Explorer", "link": "https://livenet.xrpl.org" }, ] ; const useCases = [ { "title": "On-Chain Finance", "id": "on-chain-finance-use-cases", "imgClass": "wallet-illustration", "subItems": [ { "description": "Trade on the decentralized exchange", "link": "./trade-in-the-decentralized-exchange.html", }, { "description": "Make payments", "link": "./send-xrp.html", }, { "description": "Use specialized payment types", "link": "./use-specialized-payment-types.html" } ], }, { "title": "Tokens", "id": "token-use-cases", "imgClass": "token-illustration", "subItems": [ { "description": "Non-fungible Tokens", "link": "./non-fungible-tokens.html", }, { "description": "Issue a stablecoin", "link": "./issue-a-fungible-token.html", }, { "description": "Assign an authorized minter", "link": "./assign-an-authorized-minter-using-javascript.html", }, ], }, { "title": "Payments", "id": "payments-use-cases", "imgClass": "connections-illustration", "subItems": [ { "description": "Peer to peer payments", "link": "./direct-xrp-payments.html", }, { "description": "Cross-currency payments", "link": "./cross-currency-payments.html", }, { "description": "Escrows", "link": "./escrow.html", }, ], }, ] ; const test = "./assets/img/backgrounds/docs-intro-to-XRP-ledger@2x.png"; const target= {prefix: ''}; // TODO: fixme export default function Docs() { const { translate } = useTranslate(); return (

{translate("XRP Ledger Developer Resources")}

{translate("Documentation")}
{'{'}# Macros #{'}'} $$ macro primaryButton(href, text, isArrowUp) $$ $$ if isArrowUp $$ $$ text $$ $$ else $$ $$ text $$ $$ endif $$ $$ endmacro $$ $$ macro flatCard(href, title, description, linkText, imgClass) $$ $$title$$
$$ title $$

$$ description $$

$$ linkText $$
$$ endmacro $$ $$ macro videoCard(url, title, src)$$
$$title$$
$$ title $$
$$ endmacro $$ $$ macro useCasesCard(subItems, title, imgClass, id) $$
$$title$$
$$title$$
$$ endmacro $$ $$ macro devToolsCard(link, title, description) $$
$$ title $$

$$ description $$

$$ endmacro $$ $$ set intermediateVideos = [ {'{'} "src": "./assets/img/backgrounds/docs-advanced-payment-features@2x.png", "title": _("Advanced Payment Features"), "url": "https://www.youtube.com/embed/e2Iwsk37LMk?rel=0&showinfo=0&autoplay=1", {'}'}, {'{'} "src": "./assets/img/backgrounds/docs-governance@2x.png", "title": _("Governance and the Amendment Process"), "url": "https://www.youtube.com/embed/4GbRdanHoR4?rel=0&showinfo=0&autoplay=1", {'}'}, {'{'} "src": "./assets/img/backgrounds/docs-sidechains@2x.png", "title": _("Federated Sidechains"), "url": "https://www.youtube.com/embed/NhH4LM8NxgY?rel=0&showinfo=0&autoplay=1", {'}'}, ] $$ $$ set getStartedVideos = [ {'{'} "src": "./assets/img/backgrounds/docs-intro-to-XRP-ledger@2x.png", "title": _("Intro to XRP Ledger"), "url": "https://www.youtube.com/embed/sVTybJ3cNyo?rel=0&showinfo=0&autoplay=1", {'}'}, {'{'} "src": "./assets/img/backgrounds/docs-accounts@2x.png", "title": _("Accounts"), "url": "https://www.youtube.com/embed/eO8jE6PftX8?rel=0&showinfo=0&autoplay=1", {'}'}, {'{'} "src": "./assets/img/backgrounds/docs-decentralized-exchange@2x.png", "title": _("Decentralized Exchange"), "url": "https://www.youtube.com/embed/VWNrHBDfXvA?rel=0&showinfo=0&autoplay=1", {'}'}, {'{'} "src": "./assets/img/backgrounds/docs-tokenization@2x.png", "title": _("Tokenization"), "url": "https://www.youtube.com/embed/Oj4cWOiWf4A?rel=0&showinfo=0&autoplay=1", {'}'}, ] $$ $$ set devTools = [ {'{'} "title": _("Faucets"), "link": "./xrp-testnet-faucet.html", "description": _("Get credentials and test-XRP for XRP Ledger Testnet or Devnet."), {'}'}, {'{'} "title": _("WebSocket Tool"), "link": "./websocket-api-tool.html", "description": _("Send sample requests and get responses from the rippled API."), {'}'}, {'{'} "title": _("XRP Ledger Explorer"), "link": "https://livenet.xrpl.org", "description": _("View validations of new ledger versions in real-time, chart the location of servers in the XRP Ledger."), {'}'}, {'{'} "title": _("Transaction Sender"), "link": "./tx-sender.html", "description": _("Test how your code handles various XRP Ledger transactions by sending them over the Testnet to the address."), {'}'}, ] $$
$$ flatCard("./concepts.html", _("Concepts"), _("Learn the \"what\" and the \"why\" behind fundamental aspects of the XRP Ledger."), _("Read the Docs"), "concepts-doc-illustration") $$
$$ flatCard("./tutorials.html", _("Tutorials"), _("Get step-by-step guidance to perform common tasks with the XRP Ledger."), _("View Tutorials"), "tutorial-illustration") $$
$$ flatCard("./references.html", _("References"), _("Look up reference documentation for the XRP Ledger protocol, API methods, and more."), _("View References"), "ref-book-illustration") $$

{translate("Use Cases")}

{ useCases.map(useCase => ( $$ useCasesCard(useCase.subItems, useCase.title, useCase.imgClass, useCase.id)$$ )) }

{translate("Getting Started")}

{translate("Quickstart to XRP Ledger")}

{translate("An introduction to fundamental aspects of the XRP Ledger.")}

{translate("Get Started")}
quick-start
{ getStartedVideos.map(video => ( $$ videoCard(video.url, video.title, video.src) $$ )) }
$$ primaryButton("https://www.youtube.com/playlist?list=PLJQ55Tj1hIVZtJ_JdTvSum2qMTsedWkNi", _("Watch Full Series"), true) $$

{translate("Interact with the XRP Ledger in a language of your choice")}

{translate("Explore SDKs")}

{translate("Intermediate Learning Sources")}

{ intermediateVideos.map(video => ( $$ videoCard(video.url, video.title, video.src) $$ )) }

{translate("Explore, Test, Verify")}

{translate("Explore Dev Tools")}

{translate("Use these web-based tools to assist during all stages of development, from getting your first payment to testing your implementation for best practices.")}

{ devTools.map(card => ( $$ devToolsCard(card.link, card.title, card.description) $$ )) }
$$ primaryButton("./dev-tools.html", "View All tools", false) $$
{/*/#popular-topics*/}

{translate("Get Free Test XRP")}

{translate("Connect to the XRP Ledger Testnet network to develop and test your apps built on the XRP Ledger, without risking real money or impacting production XRP Ledger users.")}

{translate("Generate Testnet Credentials")}
{/* Browse by recommended and Generate Testnet Credentials */}
{translate("See full documentation index")}
) }