Files
xrpl-dev-portal/template/page-docs.html.jinja
2023-09-15 15:03:51 +09:00

437 lines
15 KiB
Django/Jinja

{% extends "base.html.jinja" %}
{% block mainclasses %}landing page-docs page-docs-index landing-builtin-bg overflow-hidden styled-page{% endblock %}
{% block breadcrumbs %}{% endblock %}
{% block left_sidebar %}
{% set tree_top = pages|selectattr("html", "defined_and_equalto", "docs.html")|first %}
{% include 'component-tree-nav.html.jinja' %}
{% endblock %}
{% block main %}
<section class="text-center title-space">
<div class="col-lg-9 mx-auto text-center">
<div class="d-flex flex-column-reverse">
<h1 class="">{% trans %}XRP Ledger Developer Resources{% endtrans %}</h1>
<h6 class="eyebrow mb-3">{% trans %}Documentation{% endtrans %}</h6>
</div>
</div>
</section>
{# Macros #}
{% macro primaryButton(href, text, isArrowUp) %}
{% if isArrowUp %}
<a class="btn btn-primary btn-arrow-out" id="{{href}}-button" href="{{href}}">{{ text }}</a>
{% else %}
<a class="btn btn-primary btn-arrow" id="{{href}}-button" href="{{href}}">{{ text }}</a>
{% endif %}
{% endmacro %}
{% macro flatCard(href, title, description, linkText, imgClass) %}
<a href="{{href}}" class="card flat-card float-up-on-hover">
<img
class="mb-2 {{imgClass}}"
alt={{title}}
/>
<h5 class="row">
<div class="nav-link">{{ title }}</div>
</h5>
<p class="row faded-text flat-card-padding">
{{ description }}
</p>
<div class="col align-button-on-bottom">
<div class="btn btn-primary btn-arrow" id="{{href}}-button">{{ linkText }}</div>
</div>
</a>
{% endmacro %}
{% macro videoCard(url, title, src)%}
<div class="col float-up-on-hover">
<a href="{{url}}" id="playvideo" class="btn1" data-url={{url}}>
<img
alt={{title}}
class="get-started-img video-image"
id={{title}}
src={{src}}
/>
<h6 class="pt-3">{{ title }}</h6>
</a>
</div>
{% endmacro %}
{% macro useCasesCard(subItems, title, imgClass, id) %}
<div class="col">
<img
class="use-cases-img img-fluid mb-2 shadow {{imgClass}}"
alt="{{title}}"
id={{id}}
>
<h5 class="mt-4">{{title}} </h5>
<ul class="nav flex-column">
{% for item in subItems %}
<li class="nav-item"><a href="{{item.link}}" class="nav-link">{{item.description}}</a>
{% endfor %}
</ul>
</div>
{% endmacro %}
{% macro devToolsCard(link, title, description) %}
<a href="{{ link }}" class="col dev-tools-link">
<h6 class="btn-arrow">{{ title }}</h6>
<p> {{ description }}</p>
</a>
{% endmacro %}
{% set 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" },
] %}
{%
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&amp;showinfo=0&amp;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&amp;showinfo=0&amp;autoplay=1",
},
{
"src": "./assets/img/backgrounds/docs-sidechains@2x.png",
"title": _("Federated Sidechains"),
"url": "https://www.youtube.com/embed/NhH4LM8NxgY?rel=0&amp;showinfo=0&amp;autoplay=1",
},
]
%}
{% set 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",
},
],
},
]
%}
{%
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&amp;showinfo=0&amp;autoplay=1",
},
{
"src": "./assets/img/backgrounds/docs-accounts@2x.png",
"title": _("Accounts"),
"url": "https://www.youtube.com/embed/eO8jE6PftX8?rel=0&amp;showinfo=0&amp;autoplay=1",
},
{
"src": "./assets/img/backgrounds/docs-decentralized-exchange@2x.png",
"title": _("Decentralized Exchange"),
"url": "https://www.youtube.com/embed/VWNrHBDfXvA?rel=0&amp;showinfo=0&amp;autoplay=1",
},
{
"src": "./assets/img/backgrounds/docs-tokenization@2x.png",
"title": _("Tokenization"),
"url": "https://www.youtube.com/embed/Oj4cWOiWf4A?rel=0&amp;showinfo=0&amp;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."),
},
]
%}
<section class="container-new ">
<div class="nav card-grid flat-card-grid card-grid-3xN">
<div class="col">
{{ flatCard("./concepts.html",
_("Concepts"),
_("Learn the \"what\" and the \"why\" behind fundamental aspects of the XRP Ledger."),
_("Read the Docs"),
"concepts-doc-illustration") }}
</div>
<div class="col">
{{ flatCard("./tutorials.html",
_("Tutorials"),
_("Get step-by-step guidance to perform common tasks with the XRP Ledger."),
_("View Tutorials"),
"tutorial-illustration") }}
</div>
<div class="col">
{{ flatCard("./references.html",
_("References"),
_("Look up reference documentation for the XRP Ledger protocol, API methods, and more."),
_("View References"),
"ref-book-illustration") }}
</div>
</div>
</section>
<section class="container-new">
<h4 class="pb-4">{% trans %}Use Cases{% endtrans %}</h4>
<div class="card-grid card-grid-3xN use-cases">
{% for useCase in useCases %}
{{ useCasesCard(useCase.subItems, useCase.title, useCase.imgClass, useCase.id)}}
{% endfor %}
</div>
</section>
<section class="container-new ">
<h4 class="pb-4">{% trans %}Getting Started{% endtrans %}</h4>
<div class="card-grid card-grid-2xN quickstart-card">
<div class="col">
<a href="./send-payments-using-javascript.html" class="card float-up-on-hover">
<h5 class="mt-7">{% trans %}Quickstart to XRP Ledger{% endtrans %}</h5>
<p class="mb-8 mt-4">
{% trans %}An introduction to fundamental aspects of the XRP Ledger.{% endtrans %}
</p>
<div class="dg-lg-block mb-3">
<div
class="btn btn-primary btn-arrow get-started-button"
>
{% trans %}Get Started{% endtrans %}
</div>
</div>
<img
alt="quick-start"
id="quick-start-img"
class="quickstart-image"
/>
</a>
</div>
<div class="col">
<div class="card-grid card-grid-2xN video-grid">
{% set test = "./assets/img/backgrounds/docs-intro-to-XRP-ledger@2x.png"%}
{% for video in getStartedVideos %}
{{ videoCard(video.url, video.title, video.src) }}
{% endfor %}
</div>
<div class="align-button-on-bottom">
{{ primaryButton("https://www.youtube.com/playlist?list=PLJQ55Tj1hIVZtJ_JdTvSum2qMTsedWkNi", _("Watch Full Series"), true) }}
</div>
</div>
</div>
</section>
<section class="container-new ">
<div class="d-flex flex-column-reverse col-sm-8 p-0">
<h3 class="h4 h2-sm">{% trans %}Interact with the XRP Ledger in a language of your choice{% endtrans %}</h3>
<h6 class="eyebrow mb-3">{% trans %}Explore SDKs{% endtrans %}</h6>
</div>
<div class="card-grid card-grid-2xN">
<div class="col">
<div class="card-grid langs-cards card-grid-2xN mt-10" id="langs-cards">
<div class="col langs">
<a href="./get-started-using-javascript.html">
<img
alt="Javascript Logo"
src="./assets/img/logos/javascript.svg"
class="circled-logo"
>
<h5 class="btn-arrow">{% trans %}Javascript{% endtrans %}</h5>
</a>
</div>
<div class="col langs">
<a href="./get-started-using-python.html">
<img
alt="Python Logo"
src="./assets/img/logos/python.svg"
class="circled-logo"
>
<h5 class="btn-arrow">{% trans %}Python{% endtrans %}</h5>
</a>
</div>
<div class="col langs">
<a href="./get-started-using-java.html">
<img
alt="Java Logo"
src="./assets/img/logos/java.svg"
class="circled-logo"
>
<h5 class="btn-arrow">{% trans %}Java{% endtrans %}</h5>
</a>
</div>
</div>
</div>
<div class="col center-image">
<img
class="img-fluid sdk-img"
/>
</div>
</div>
</section>
<section class="container-new ">
<h4 class="pb-4">{% trans %}Intermediate Learning Sources{% endtrans %}</h4>
<div class="card-grid card-grid-3xN">
{% for video in intermediateVideos %}
{{ videoCard(video.url, video.title, video.src) }}
{% endfor %}
</div>
</section>
<section class="container-new ">
<div class="card-grid card-grid-2xN">
<div class="col d-flex align-items-center justify-content-center">
<img
class="dev-tools-img"
>
</div>
<div class="col explore-links">
<div class="d-flex flex-column-reverse w-100">
<h4 class="mb-10">{% trans %}Explore, Test, Verify{% endtrans %}</h4>
<h6 class="mb-3">{% trans %}Explore Dev Tools{% endtrans %}</h6>
</div>
<p class="mb-20">
{% trans %}Use these web-based tools to assist during all stages of development, from getting your first payment to testing your implementation for best practices.{% endtrans %}
</p>
<div class="card-grid card-grid-2xN">
{% for card in devTools %}
{{ devToolsCard(card.link, card.title, card.description) }}
{% endfor %}
</div>
{{ primaryButton("./dev-tools.html", "View All tools", false) }}
</div>
</div>
</section>
<section class="container-new " id="docs-browse-by">
<div class="row card-grid card-grid-2xN">
<div class="col" id="popular-topics">
<h2 class="h4">{% trans %}Browse By Recommended Pages{% endtrans %}</h2>
<ul class="nav flex-column">
{% for page in recommendedPages %}
<li class="nav-item"><a href="{{page.link}}" class="nav-link">{{page.description}}</a>
{% endfor %}
</ul>
</div><!--/#popular-topics-->
<div class="col">
<div class="card cta-card p-8-sm p-10-until-sm br-8">
<img src="./img/backgrounds/cta-home-purple.svg" class="d-none-sm cta cta-top-left">
<img src="./img/backgrounds/cta-home-green.svg" class="cta cta-bottom-right">
<div class="z-index-1 position-relative">
<h2 class="h4 mb-8-sm mb-10-until-sm">{% trans %}Get Free Test XRP{% endtrans %}</h2>
<p class="mb-10">{% trans %}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.{% endtrans %}</p>
<a class="btn btn-primary btn-arrow" href="xrp-testnet-faucet.html">{% trans %}Generate Testnet Credentials{% endtrans %}</a>
</div>
</div>
</div>
</div>
</section><!-- Browse by recommended and Generate Testnet Credentials -->
<section class="container-new">
<a href="./docs-index.html" class="btn-arrow arrow-purple documentation-index mr-auto">{% trans %}See full documentation index{% endtrans %}</a>
</section>
{% endblock %}
{% block endbody %}
{% endblock %}
{% block analytics %}
<script type="application/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
"event": "page_info",
"page_type": "Hub Page",
"page_group": "Docs"
})
</script>
{% endblock analytics %}