This commit is contained in:
sairaj mote 2020-11-01 02:58:54 +05:30
parent ddeac88f33
commit a41cf4635c
4 changed files with 23 additions and 7 deletions

View File

@ -38,7 +38,7 @@ body[data-theme=dark] .flo-balance-card {
} }
a { a {
font-weight: 600; font-weight: 500;
text-decoration: none; text-decoration: none;
color: var(--accent-color); color: var(--accent-color);
} }
@ -558,11 +558,15 @@ details p {
line-height: 1.1em; line-height: 1.1em;
font-weight: 800; font-weight: 800;
font-size: clamp(1.5rem, 8vw, 4rem); font-size: clamp(1.5rem, 8vw, 4rem);
margin-top: 1rem;
}
#sign_in_page .info h4 {
color: var(--accent-color);
} }
#sign_in_page .sign-in-box { #sign_in_page .sign-in-box {
background: rgba(var(--foreground-color), 1); background: rgba(var(--foreground-color), 1);
z-index: 1; z-index: 1;
padding: 3rem 2rem; padding: 2rem;
border-radius: 1rem; border-radius: 1rem;
box-shadow: 0 0 1rem #00000016, 0 4rem 2rem -2rem #00000016; box-shadow: 0 0 1rem #00000016, 0 4rem 2rem -2rem #00000016;
justify-self: center; justify-self: center;
@ -590,6 +594,9 @@ details p {
#sign_in_page .sign-in-box p { #sign_in_page .sign-in-box p {
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
} }
#sign_in_page .sign-in-box p:last-of-type {
margin-top: 1.5rem;
}
.primary-btn { .primary-btn {
padding: 0.6rem 1.2rem !important; padding: 0.6rem 1.2rem !important;

2
css/main.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -36,7 +36,7 @@ body[data-theme="dark"]{
} }
a { a {
font-weight: 600; font-weight: 500;
text-decoration: none; text-decoration: none;
color: var(--accent-color); color: var(--accent-color);
} }
@ -574,12 +574,16 @@ details{
line-height: 1.1em; line-height: 1.1em;
font-weight: 800; font-weight: 800;
font-size: clamp(1.5rem, 8vw, 4rem); font-size: clamp(1.5rem, 8vw, 4rem);
margin-top: 1rem;
}
h4{
color: var(--accent-color);
} }
} }
.sign-in-box{ .sign-in-box{
background: rgba(var(--foreground-color), 1); background: rgba(var(--foreground-color), 1);
z-index: 1; z-index: 1;
padding: 3rem 2rem; padding: 2rem;
border-radius: 1rem; border-radius: 1rem;
box-shadow: 0 0 1rem #00000016, 0 4rem 2rem -2rem #00000016; box-shadow: 0 0 1rem #00000016, 0 4rem 2rem -2rem #00000016;
justify-self: center; justify-self: center;
@ -605,6 +609,9 @@ details{
} }
p { p {
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
&:last-of-type{
margin-top: 1.5rem;
}
} }
} }
} }

View File

@ -57,6 +57,7 @@
Sign In Sign In
</button> </button>
</form> </form>
<p>New here? <a href="https://flo-webwallet.duckdns.org/" target="_blank">Get your sign-in credentials.</a></p>
</div> </div>
</section> </section>
<sm-popup id="qr_code_popup"> <sm-popup id="qr_code_popup">
@ -1075,6 +1076,7 @@
<script id="onLoadStartUp"> <script id="onLoadStartUp">
const userFloIdContainers = document.querySelectorAll('.user-flo-id') const userFloIdContainers = document.querySelectorAll('.user-flo-id')
function onLoadStartUp() { function onLoadStartUp() {
floDapps.setCustomPrivKeyInput(signIn)
showLoader() showLoader()
console.log("Starting the app! Please Wait!") console.log("Starting the app! Please Wait!")
floDapps.launchStartUp().then(async result => { floDapps.launchStartUp().then(async result => {
@ -2654,7 +2656,7 @@
} }
} }
function signIn() { const signIn = () => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
hideLoader() hideLoader()
showSignIn() showSignIn()
@ -11702,7 +11704,7 @@
const defaultInput = function (type) { const defaultInput = function (type) {
return new Promise(async (resolve, reject) => { return new Promise(async (resolve, reject) => {
let inputVal = await signIn(`Enter ${type}: `) let inputVal = prompt(`Enter ${type}: `)
if (inputVal === null) if (inputVal === null)
reject(null) reject(null)
else { else {