Merge branch 'feature_ffs-qrcode' into 'master'

QR code for FFS contribute

See merge request monero-project/monero-site!890
This commit is contained in:
Riccardo Spagni 2018-09-24 18:10:31 +02:00
commit d11a1599cd
4 changed files with 31 additions and 3 deletions

View file

@ -11,6 +11,10 @@
url: #
summary: This is for the best ideas ever!
author: rehrar
- name: QR Codes for Funding Required
url: /forum-funding-system/proposals/qr-code-for-fr.html
summary: The title says it all!
author: m2049r
- stage: Funding Required
proposals:

View file

@ -5,7 +5,7 @@ layout: base
<div class="site-wrap">
<div class="container ffs-breadcrumbs">
<p><a href="/forum-funding-system/">Forum Funding System</a> > <a href="/forum-funding-system/funding-required/">Funding Required</a> > {{page.title}}</p>
<p><a href="/forum-funding-system/">Forum Funding System</a> <a href="/forum-funding-system/funding-required/">Funding Required</a> > {{page.title}}</p>
</div>
<!-- FULL WIDTH BLOCK -->
@ -40,6 +40,19 @@ layout: base
<p>Have a valid Monero address. If you don't have one, you can read on getting started!</p>
<p>Send the amount of XMR that you wish to contribute to the address: <strong>{{page.address}}</strong></p>
<p>Make sure that you enter a payment ID of <strong>{{page.paymentid}}</strong> in order for us to be able to assign your contribution to this specific project!</p>
<p><div id="qrcode"></div></p>
<script src="{{ base.url | prepend: site.url }}/js/qrcode.min.js"></script>
<script type="text/javascript">
var qr_description = encodeURIComponent("{{page.title}}");
new QRCode(document.getElementById("qrcode"), {
text: "monero:{{page.address}}?tx_payment_id={{page.paymentid}}&tx_description="+qr_description,
width: 150,
height: 150,
colorDark : "#000000",
colorLight : "#ffffff",
correctLevel : QRCode.CorrectLevel.M
});
</script>
</div>
</div>
</div>

View file

@ -0,0 +1,10 @@
---
layout: ffs-fr
title: QR Codes for Funding Required
summary: The title says it all!
author: m2049r
address: 45ttEikQEZWN1m7VxaVN9rjQkpSdmpGZ82GwUps66neQ1PqbQMno4wMY8F5jiDt2GoHzCtMwa7PDPJUJYb1GYrMP4CwAwNp
paymentid: 6d32303439722e2e6d32303439722e2e6d32303439722e2e6d32303439722e2e
---
We need QR Codes for the Contribute-Button for "Funding Required" proposals.

1
js/qrcode.min.js vendored Normal file

File diff suppressed because one or more lines are too long