mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-12-02 17:45:54 +00:00
refactoring the code to have loops for easier future edit
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<div class="overflow-hidden">
|
||||
|
||||
<div class="position-relative">
|
||||
<img src="./img/backgrounds/xrpl-overview-purple.svg" id="xrpl-overview-purple">
|
||||
<img src="./img/backgrounds/xrpl-overview-purple.svg" class="landing-bg" id="xrpl-overview-purple">
|
||||
</div>
|
||||
|
||||
<section class="py-26 text-center">
|
||||
@@ -107,30 +107,25 @@
|
||||
|
||||
<section class="container-new py-26">
|
||||
<div class="col-md-6 offset-md-3 w-100 pl-0 pr-0" id="accordion">
|
||||
{% set faqs = [
|
||||
{ "number": "1",
|
||||
"question": _("Is XRPL a private blockchain, owned by Ripple?"),
|
||||
"answer": _("No, the XRP Ledger is a decentralized, public blockchain. Any changes that would impact transaction processing or consensus need to be approved by at least 80%% of the network. Ripple is a contributor to the network, but its rights are the same as those of other contributors. In terms of validation, there are 38 validators, with Ripple running six of the 38.") },
|
||||
{ "number": "2",
|
||||
"question": _("Isn’t Proof of Work the best validation mechanism?"),
|
||||
"answer": _("Proof of Work (PoW) was the first mechanism to solve the double spend problem without requiring a trusted 3rd party. However the XRP Ledger’s consensus mechanism solves the same problem in a far faster, cheaper and more energy efficient way.") },
|
||||
{ "number": "3",
|
||||
"question": _("How can a blockchain be sustainable?"),
|
||||
"answer": _("It’s been widely reported that Bitcoin’s energy consumption, as of 2021, is equivalent to that used by Argentina, with much of the electricity Bitcoin miners use coming from polluting sources. The XRP Ledger confirms transactions through a “consensus” mechanism - which does not waste energy like proof of work does - and leverages carbon offsets to be one of the first truly carbon neutral blockchains. Explore the energy consumption of XRP compared to cash, credit cards and other popular cryptocurrencies with the <a href='/carbon-calculator.html'>Green Currency Calculator</a>.") },
|
||||
] %}
|
||||
{% for faq in faqs %}
|
||||
<div class="w-100 accordian-row mb-6">
|
||||
<h3 class="mb-0 h6" id="headingOne">
|
||||
<a href="#" class="white collapsed w-100 d-block" data-toggle="collapse" data-target="#collapseOne" aria-expanded="false" aria-controls="collapseOne">Is XRPL a private blockchain, owned by Ripple?</a>
|
||||
<h3 class="mb-0 h6" id="heading{{faq.number}}">
|
||||
<a href="#" class="white collapsed w-100 d-block" data-toggle="collapse" data-target="#collapse{{faq.number}}" aria-expanded="false" aria-controls="collapse{{faq.number}}">{{faq.question}}</a>
|
||||
</h3>
|
||||
<p id="collapseOne" class="collapse mt-3 mb-0" aria-labelledby="headingOne" data-parent="#accordion">
|
||||
No, the XRP Ledger is a decentralized, public blockchain. Any changes that would impact transaction processing or consensus need to be approved by at least 80% of the network. Ripple is a contributor to the network, but its rights are the same as those of other contributors. In terms of validation, there are 38 validators, with Ripple running six of the 38.
|
||||
</p>
|
||||
</div>
|
||||
<div class="w-100 accordian-row mb-6">
|
||||
<h3 class="mb-0 h6" id="headingTwo">
|
||||
<a href="#" class="white collapsed w-100 d-block" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">Isn’t Proof of Work the best validation mechanism?</a>
|
||||
</h3>
|
||||
<p id="collapseTwo" class="collapse mt-3 mb-0" aria-labelledby="headingTwo" data-parent="#accordion">
|
||||
Proof of Work (PoW) was the first mechanism to solve the double spend problem without requiring a trusted 3rd party. However the XRP Ledger’s consensus mechanism solves the same problem in a far faster, cheaper and more energy efficient way.
|
||||
</p>
|
||||
</div>
|
||||
<div class="w-100 accordian-row mb-6">
|
||||
<h3 class="mb-0 h6" id="headingTwo">
|
||||
<a href="#" class="white collapsed w-100 d-block" data-toggle="collapse" data-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">How can a blockchain be sustainable?</a>
|
||||
</h3>
|
||||
<p id="collapseThree" class="collapse mt-3 mb-0" aria-labelledby="headingTwo" data-parent="#accordion">
|
||||
It’s been widely reported that Bitcoin’s energy consumption, as of 2021, is equivalent to that used by Argentina, with much of the electricity Bitcoin miners use coming from polluting sources. The XRP Ledger confirms transactions through a “consensus” mechanism - which does not waste energy like proof of work does - and leverages carbon offsets to be one of the first truly carbon neutral blockchains. Explore the energy consumption of XRP compared to cash, credit cards and other popular cryptocurrencies with the <a href="/carbon-calculator.html">Green Currency Calculator</a>.
|
||||
</p>
|
||||
<p id="collapse{{faq.number}}" class="collapse mt-3 mb-0" aria-labelledby="heading{{faq.number}}" data-parent="#accordion">{{faq.answer}}</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<center>
|
||||
<a class="btn btn-primary btn-arrow mt-20" href="/faq.html">{% trans %}View Full FAQ{% endtrans %}</a>
|
||||
</center>
|
||||
|
||||
Reference in New Issue
Block a user