0.5.16
style (user): dark mode improvements
This commit is contained in:
parent
c997335914
commit
02e9a6626b
32
css/main.css
32
css/main.css
@ -6,7 +6,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
font-size: 16px;
|
font-size: clamp(16px, 1.2vmax, 40px);
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@ -91,7 +91,7 @@ p {
|
|||||||
}
|
}
|
||||||
|
|
||||||
strong {
|
strong {
|
||||||
font-weight: 500;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
@ -631,9 +631,9 @@ details p {
|
|||||||
background: url(sign-in-bg.svg) center, rgba(var(--foreground-color), 1);
|
background: url(sign-in-bg.svg) center, rgba(var(--foreground-color), 1);
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
padding: 0 6vw;
|
|
||||||
}
|
}
|
||||||
#sign_in_page .info {
|
#sign_in_page .info {
|
||||||
|
padding: 1.5rem;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
#sign_in_page .info h1 {
|
#sign_in_page .info h1 {
|
||||||
@ -644,10 +644,11 @@ details p {
|
|||||||
}
|
}
|
||||||
#sign_in_page .sign-in-box {
|
#sign_in_page .sign-in-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0 -2rem;
|
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
margin-top: auto;
|
||||||
justify-self: center;
|
justify-self: center;
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
|
padding-bottom: 3rem;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
background: rgba(var(--foreground-color), 1);
|
background: rgba(var(--foreground-color), 1);
|
||||||
}
|
}
|
||||||
@ -713,7 +714,7 @@ details p {
|
|||||||
animation: slide-down 0.3s forwards;
|
animation: slide-down 0.3s forwards;
|
||||||
}
|
}
|
||||||
#sign_in_page .sign-in-box #sign_in_with {
|
#sign_in_page .sign-in-box #sign_in_with {
|
||||||
margin-top: 1.5rem;
|
margin-top: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes slide-down {
|
@keyframes slide-down {
|
||||||
@ -733,7 +734,7 @@ details p {
|
|||||||
|
|
||||||
#main_header {
|
#main_header {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: clamp(1rem, 2vw, 2rem) 1rem;
|
padding: 1.5rem 1rem;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1184,7 +1185,7 @@ sm-panel {
|
|||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
.copy-row h4 {
|
.copy-row h4 {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0 !important;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
.copy-row .icon {
|
.copy-row .icon {
|
||||||
@ -1760,7 +1761,7 @@ sm-panel {
|
|||||||
border-radius: 2rem;
|
border-radius: 2rem;
|
||||||
margin-bottom: 0.6rem !important;
|
margin-bottom: 0.6rem !important;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: rgba(var(--foreground-color), 1);
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.person-name {
|
.person-name {
|
||||||
@ -1881,12 +1882,17 @@ sm-panel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#sign_in_page {
|
#sign_in_page {
|
||||||
|
padding: 0 6vw;
|
||||||
grid-auto-flow: column;
|
grid-auto-flow: column;
|
||||||
}
|
}
|
||||||
|
#sign_in_page .info {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
#sign_in_page .sign-in-box {
|
#sign_in_page .sign-in-box {
|
||||||
align-self: auto;
|
align-self: auto;
|
||||||
width: 26rem;
|
width: 26rem;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
|
margin-top: unset;
|
||||||
min-height: 80vh;
|
min-height: 80vh;
|
||||||
min-width: 26rem;
|
min-width: 26rem;
|
||||||
box-shadow: 0 0 0.3rem #00000016, 0 6rem 2rem -2rem #00000016;
|
box-shadow: 0 0 0.3rem #00000016, 0 6rem 2rem -2rem #00000016;
|
||||||
@ -2077,16 +2083,6 @@ sm-panel {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media only screen and (min-width: 1900px) {
|
|
||||||
:root {
|
|
||||||
font-size: 24px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media only screen and (min-width: 2400px) {
|
|
||||||
:root {
|
|
||||||
font-size: 36px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media only screen and (max-width: 320px) {
|
@media only screen and (max-width: 320px) {
|
||||||
:root {
|
:root {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|||||||
2
css/main.min.css
vendored
2
css/main.min.css
vendored
File diff suppressed because one or more lines are too long
@ -5,7 +5,7 @@
|
|||||||
font-family: 'Roboto', sans-serif;
|
font-family: 'Roboto', sans-serif;
|
||||||
}
|
}
|
||||||
:root{
|
:root{
|
||||||
font-size: 16px;
|
font-size: clamp(16px, 1.2vmax, 40px);
|
||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
--accent-color: #2752ca;
|
--accent-color: #2752ca;
|
||||||
@ -87,7 +87,7 @@ p {
|
|||||||
color: rgba(var(--text-color), 0.9);
|
color: rgba(var(--text-color), 0.9);
|
||||||
}
|
}
|
||||||
strong{
|
strong{
|
||||||
font-weight: 500;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
button {
|
button {
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -647,8 +647,8 @@ details{
|
|||||||
background: url(sign-in-bg.svg) center, rgba(var(--foreground-color), 1);
|
background: url(sign-in-bg.svg) center, rgba(var(--foreground-color), 1);
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
padding: 0 6vw;
|
|
||||||
.info{
|
.info{
|
||||||
|
padding: 1.5rem;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
h1{
|
h1{
|
||||||
line-height: 1.1;
|
line-height: 1.1;
|
||||||
@ -659,10 +659,11 @@ details{
|
|||||||
}
|
}
|
||||||
.sign-in-box{
|
.sign-in-box{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0 -2rem;
|
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
margin-top: auto;
|
||||||
justify-self: center;
|
justify-self: center;
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
|
padding-bottom: 3rem;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
background: rgba(var(--foreground-color), 1);
|
background: rgba(var(--foreground-color), 1);
|
||||||
sm-input{
|
sm-input{
|
||||||
@ -729,7 +730,7 @@ details{
|
|||||||
animation: slide-down 0.3s forwards;
|
animation: slide-down 0.3s forwards;
|
||||||
}
|
}
|
||||||
#sign_in_with{
|
#sign_in_with{
|
||||||
margin-top: 1.5rem;
|
margin-top: 2rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -751,7 +752,7 @@ details{
|
|||||||
|
|
||||||
#main_header {
|
#main_header {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: clamp(1rem, 2vw, 2rem) 1rem;
|
padding: 1.5rem 1rem;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1202,7 +1203,7 @@ sm-panel{
|
|||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
width: auto;
|
width: auto;
|
||||||
h4 {
|
h4 {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0 !important;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1795,7 +1796,7 @@ sm-panel{
|
|||||||
border-radius: 2rem;
|
border-radius: 2rem;
|
||||||
margin-bottom: 0.6rem !important;
|
margin-bottom: 0.6rem !important;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: rgba(var(--foreground-color), 1);
|
color: white;
|
||||||
}
|
}
|
||||||
.person-name{
|
.person-name{
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
@ -1915,11 +1916,16 @@ sm-panel{
|
|||||||
margin-left: 4rem;
|
margin-left: 4rem;
|
||||||
}
|
}
|
||||||
#sign_in_page{
|
#sign_in_page{
|
||||||
|
padding: 0 6vw;
|
||||||
grid-auto-flow: column;
|
grid-auto-flow: column;
|
||||||
|
.info{
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
.sign-in-box{
|
.sign-in-box{
|
||||||
align-self: auto;
|
align-self: auto;
|
||||||
width: 26rem;
|
width: 26rem;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
|
margin-top: unset;
|
||||||
min-height: 80vh;
|
min-height: 80vh;
|
||||||
min-width: 26rem;
|
min-width: 26rem;
|
||||||
box-shadow: 0 0 0.3rem #00000016, 0 6rem 2rem -2rem #00000016;
|
box-shadow: 0 0 0.3rem #00000016, 0 6rem 2rem -2rem #00000016;
|
||||||
@ -2113,16 +2119,6 @@ sm-panel{
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@media only screen and (min-width: 1900px){
|
|
||||||
:root {
|
|
||||||
font-size: 24px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media only screen and (min-width: 2400px){
|
|
||||||
:root {
|
|
||||||
font-size: 36px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media only screen and (max-width: 320px) {
|
@media only screen and (max-width: 320px) {
|
||||||
:root{
|
:root{
|
||||||
|
|||||||
31
index.html
31
index.html
@ -5,14 +5,6 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>RanchiMall Pay</title>
|
<title>RanchiMall Pay</title>
|
||||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-86RVPYPYDP"></script>
|
|
||||||
<script>
|
|
||||||
window.dataLayer = window.dataLayer || [];
|
|
||||||
function gtag(){dataLayer.push(arguments);}
|
|
||||||
gtag('js', new Date());
|
|
||||||
gtag('config', 'G-86RVPYPYDP');
|
|
||||||
</script>
|
|
||||||
<link
|
<link
|
||||||
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Roboto:wght@400;500;700&display=swap"
|
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Roboto:wght@400;500;700&display=swap"
|
||||||
rel="stylesheet">
|
rel="stylesheet">
|
||||||
@ -65,7 +57,7 @@
|
|||||||
<sm-button onclick="signOut()">Sign Out</sm-button>
|
<sm-button onclick="signOut()">Sign Out</sm-button>
|
||||||
</section>
|
</section>
|
||||||
<!-- Sign in page-->
|
<!-- Sign in page-->
|
||||||
<section id="sign_in_page" class="grid space-between hide-completely">
|
<section id="sign_in_page" class="grid hide-completely">
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<h4>RanchiMall Pay</h4>
|
<h4>RanchiMall Pay</h4>
|
||||||
<h1>Send & request money <br> using <br> UPI on Blockchain</h1>
|
<h1>Send & request money <br> using <br> UPI on Blockchain</h1>
|
||||||
@ -90,12 +82,12 @@
|
|||||||
</sm-panel>
|
</sm-panel>
|
||||||
<sm-panel>
|
<sm-panel>
|
||||||
<h3>Get started</h3>
|
<h3>Get started</h3>
|
||||||
<p>Create your FLO public and private key pair. <Strong>Don't forget to store them
|
<p>Create your FLO public and private key pair. <strong>Don't forget to store them
|
||||||
securely!</Strong></p>
|
securely.<br>Once lost, private key can't be recovered.</strong></p>
|
||||||
<sm-button id="generate_flo_id" onclick="generateId()" variant="primary">Get FLO credentials
|
<sm-button id="generate_flo_id" onclick="generateId()" variant="primary">Get FLO credentials
|
||||||
</sm-button>
|
</sm-button>
|
||||||
<section id="credentials_section" class="hide-completely">
|
<section id="credentials_section" class="hide-completely">
|
||||||
<h5>FLO ID</h5>
|
<h5>FLO ID (User ID)</h5>
|
||||||
<div class="copy-row">
|
<div class="copy-row">
|
||||||
<h4 id="generated_id" class="copy"></h4>
|
<h4 id="generated_id" class="copy"></h4>
|
||||||
<svg class="icon" onclick="copyToClipboard(this.parentNode)" viewBox="0 0 64 64">
|
<svg class="icon" onclick="copyToClipboard(this.parentNode)" viewBox="0 0 64 64">
|
||||||
@ -104,7 +96,7 @@
|
|||||||
<path d="M.5,47.52V6.5a6,6,0,0,1,6-6h41" />
|
<path d="M.5,47.52V6.5a6,6,0,0,1,6-6h41" />
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
<h5>Private key</h5>
|
<h5>Private key (Password)</h5>
|
||||||
<div class="copy-row">
|
<div class="copy-row">
|
||||||
<h4 id="generated_key" class="copy"></h4>
|
<h4 id="generated_key" class="copy"></h4>
|
||||||
<svg class="icon" onclick="copyToClipboard(this.parentNode)" viewBox="0 0 64 64">
|
<svg class="icon" onclick="copyToClipboard(this.parentNode)" viewBox="0 0 64 64">
|
||||||
@ -154,7 +146,7 @@
|
|||||||
<line x1="64" y1="0" x2="0" y2="64" />
|
<line x1="64" y1="0" x2="0" y2="64" />
|
||||||
<line x1="64" y1="64" x2="0" y2="0" />
|
<line x1="64" y1="64" x2="0" y2="0" />
|
||||||
</svg>
|
</svg>
|
||||||
<h4>Send Rupee</h4>
|
<h4>Send</h4>
|
||||||
<button id="send_tokens_btn" class="action expand" type="submit" disabled>
|
<button id="send_tokens_btn" class="action expand" type="submit" disabled>
|
||||||
<h4 class="expand primary-btn">
|
<h4 class="expand primary-btn">
|
||||||
Send
|
Send
|
||||||
@ -255,7 +247,7 @@
|
|||||||
<line x1="64" y1="0" x2="0" y2="64" />
|
<line x1="64" y1="0" x2="0" y2="64" />
|
||||||
<line x1="64" y1="64" x2="0" y2="0" />
|
<line x1="64" y1="64" x2="0" y2="0" />
|
||||||
</svg>
|
</svg>
|
||||||
<h4>Withdraw rupee</h4>
|
<h4>Withdraw</h4>
|
||||||
<button id="withdraw_cash_btn" class="action expand" type="submit" disabled>
|
<button id="withdraw_cash_btn" class="action expand" type="submit" disabled>
|
||||||
<h4 class="primary-btn expand">
|
<h4 class="primary-btn expand">
|
||||||
withdraw
|
withdraw
|
||||||
@ -302,7 +294,7 @@
|
|||||||
<line x1="64" y1="0" x2="0" y2="64" />
|
<line x1="64" y1="0" x2="0" y2="64" />
|
||||||
<line x1="64" y1="64" x2="0" y2="0" />
|
<line x1="64" y1="64" x2="0" y2="0" />
|
||||||
</svg>
|
</svg>
|
||||||
<h4>Request rupee</h3>
|
<h4>Request</h3>
|
||||||
<button id="request_rupee_btn" class="action expand" type="submit" disabled>
|
<button id="request_rupee_btn" class="action expand" type="submit" disabled>
|
||||||
<h4 class="primary-btn expand">
|
<h4 class="primary-btn expand">
|
||||||
request
|
request
|
||||||
@ -1163,7 +1155,7 @@
|
|||||||
<sm-switch id="haptic_feedback_switcher" class="justify-right" checked></sm-switch>
|
<sm-switch id="haptic_feedback_switcher" class="justify-right" checked></sm-switch>
|
||||||
</div>
|
</div>
|
||||||
<div class="user-option">
|
<div class="user-option">
|
||||||
<h4 class="top-margin">My UPIs</h4>
|
<h4 class="top-margin">My UPI ID</h4>
|
||||||
<div class="upi-container"></div>
|
<div class="upi-container"></div>
|
||||||
<p class="empty-state">Add your UPI addresses for withdrawing money from wallet back to your bank account.</p>
|
<p class="empty-state">Add your UPI addresses for withdrawing money from wallet back to your bank account.</p>
|
||||||
<sm-button variant="no-outline" onclick="showPopup('add_upi_popup')">+ Add UPI address
|
<sm-button variant="no-outline" onclick="showPopup('add_upi_popup')">+ Add UPI address
|
||||||
@ -13443,7 +13435,6 @@
|
|||||||
try {
|
try {
|
||||||
const send_tokens_btn = document.getElementById('send_tokens_btn');
|
const send_tokens_btn = document.getElementById('send_tokens_btn');
|
||||||
send_tokens_btn.onclick = async function () {
|
send_tokens_btn.onclick = async function () {
|
||||||
btnLoading('send_tokens_btn', 'start')
|
|
||||||
const token_sender = myFloID;
|
const token_sender = myFloID;
|
||||||
const token_receiver = document.getElementById('token_receiver').value.trim();
|
const token_receiver = document.getElementById('token_receiver').value.trim();
|
||||||
const token_amount = parseInt(document.getElementById('token_amount').value);
|
const token_amount = parseInt(document.getElementById('token_amount').value);
|
||||||
@ -13462,7 +13453,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (typeof sender_token_balance !== "object") {
|
if (typeof sender_token_balance !== "object") {
|
||||||
err_msg = `Failed to load Sender balance.`;
|
err_msg = `Failed to load balance.`;
|
||||||
notify(err_msg, 'error');
|
notify(err_msg, 'error');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -13475,6 +13466,8 @@
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
btnLoading('send_tokens_btn', 'start')
|
||||||
|
|
||||||
let flo_txid = await floBlockchainAPI.sendTx(myFloID, token_receiver, 0.001, myPrivKey,
|
let flo_txid = await floBlockchainAPI.sendTx(myFloID, token_receiver, 0.001, myPrivKey,
|
||||||
flo_comment)
|
flo_comment)
|
||||||
console.log(flo_txid);
|
console.log(flo_txid);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user