From eee9bb2a2af9a448745eb440ef844ec83dbf57b4 Mon Sep 17 00:00:00 2001
From: fred
Date: Fri, 10 Mar 2023 18:33:28 +0100
Subject: [PATCH] 1st TW & FoF UX
---
templates/astro.js | 13 +++++++++++--
templates/register.html | 13 ++++++++-----
www/G1PalPay/index.html | 6 +++---
www/PasseportTerre/index.html | 7 ++++++-
4 files changed, 28 insertions(+), 11 deletions(-)
diff --git a/templates/astro.js b/templates/astro.js
index 385d7488..e12a77e4 100644
--- a/templates/astro.js
+++ b/templates/astro.js
@@ -2,21 +2,30 @@
async function homeAstroportStation() {
try {
- let one = await fetch('http://127.0.0.1:1234/?qrcode=station'); // Gets a promise
+ let one = await fetch('/?qrcode=station'); // Gets a promise
var doc = await one.text();
var regex = /url='([^']+)/i; // Get response PORT
var redirectURL = doc.match(regex)[1]
console.log(redirectURL)
+ document.getElementById("ainfo").innerHTML = "Teleportation ... (3s) " + redirectURL;
setTimeout(function() {
// let two = await fetch(redirectURL);
// document.mydiv.innerHTML = await two.text(); // Replaces body with response
window.location.href = redirectURL
// window.open( redirectURL, "AstroTab");
- }, 15000);
+ }, 3000);
} catch (err) {
console.log('Fetch error:' + err); // Error handling
}
}
+
+function promptUser(g1pub) {
+ let salt = prompt("Identifiant");
+ let pepper = prompt("Code Secret");
+ let resultText = `/?salt=${salt}&pepper=${pepper}&star=1&friend=${g1pub}`;
+ console.log(resultText)
+ document.getElementById("debug").innerHTML = resultText;
+}
diff --git a/templates/register.html b/templates/register.html
index 0a49a61d..152117eb 100644
--- a/templates/register.html
+++ b/templates/register.html
@@ -3,6 +3,7 @@
[Astroport] :: Station _HOSTNAME_ :: _IPFSNODEID_
+
@@ -39,18 +40,20 @@ header {
-
+
+
- (♥ )BOX
-
- Click me.
-
+
+ ♥BOX
+
+
diff --git a/www/G1PalPay/index.html b/www/G1PalPay/index.html
index deb1ee20..9ab16ab5 100644
--- a/www/G1PalPay/index.html
+++ b/www/G1PalPay/index.html
@@ -102,7 +102,7 @@ a {
Oubliez la crise...
Utilisez la Monnaie Libre !
- Vivez de vos Dons.
+
@@ -115,7 +115,7 @@ a {
Téléchargez Cesium
Présentez le QRCode "Simple Portefeuille "
face à la Webcam
- Présentez un G1BILLET
+ ou bien scannez un G1BILLET
@@ -184,7 +184,7 @@ a {
-
+
Choisissez un Copain
diff --git a/www/PasseportTerre/index.html b/www/PasseportTerre/index.html
index 6d7d033e..90ff73ed 100644
--- a/www/PasseportTerre/index.html
+++ b/www/PasseportTerre/index.html
@@ -176,7 +176,12 @@
ENTER THE GAME
-
+
+Prenez le contrôle de votre identité en ligne en créant un registre décentralisé de vos références.
+En collectant des "tampons" de validation de votre identité et de votre réputation en ligne,
+vous pouvez accéder aux expériences web3 les plus dignes de confiance et maximiser votre capacité à bénéficier de la Monnaie Libre.
+Plus vous vérifiez votre identité, plus vous aurez d'opportunités de voter et de participer sur le web3.
+