0.0.39
This commit is contained in:
parent
2be4b84cc6
commit
e281e81587
@ -223,7 +223,9 @@ input:focus{
|
||||
.input:focus-within{
|
||||
box-shadow: 0 0 0 0.1em var(--accent-color) inset;
|
||||
}
|
||||
|
||||
.disabled{
|
||||
pointer-events: none;
|
||||
}
|
||||
.label {
|
||||
user-select: none;
|
||||
opacity: .7;
|
||||
@ -343,6 +345,13 @@ customElements.define('sm-input',
|
||||
return this.shadowRoot.querySelector('input').checkValidity()
|
||||
}
|
||||
|
||||
set disabled(value) {
|
||||
if (value)
|
||||
this.shadowRoot.querySelector('.input').classList.add('disabled')
|
||||
else
|
||||
this.shadowRoot.querySelector('.input').classList.remove('disabled')
|
||||
}
|
||||
|
||||
focusIn = () => {
|
||||
this.shadowRoot.querySelector('input').focus()
|
||||
}
|
||||
@ -423,7 +432,10 @@ customElements.define('sm-input',
|
||||
}
|
||||
if (this.hasAttribute('readonly')) {
|
||||
this.input.setAttribute('readonly', '')
|
||||
this.readonly = true
|
||||
this.readonly = true
|
||||
}
|
||||
if (this.hasAttribute('readonly')) {
|
||||
this.inputParent.classList.add('disabled')
|
||||
}
|
||||
if (this.hasAttribute('helper-text')) {
|
||||
this.helperText.textContent = this.getAttribute('helper-text')
|
||||
|
||||
231
css/main.css
231
css/main.css
@ -10,13 +10,12 @@
|
||||
}
|
||||
|
||||
body {
|
||||
--accent-color: #2237CD;
|
||||
--accent-color: #4527A0;
|
||||
--text-color: 17, 17, 17;
|
||||
--text-color-light: 85, 85, 85;
|
||||
--foreground-color: 255, 255, 255;
|
||||
--background-color: #e8e8e8;
|
||||
--dark-shade: #dadada;
|
||||
background: linear-gradient(rgba(var(--foreground-color), 0.1), rgba(var(--foreground-color), 0.3)), url(back.svg) no-repeat fixed;
|
||||
color: rgba(var(--text-color), 1);
|
||||
font-size: 16px;
|
||||
background-size: cover;
|
||||
@ -99,40 +98,6 @@ button:disabled ~ .loader {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
input[type=number]::-webkit-inner-spin-button,
|
||||
input[type=number]::-webkit-outer-spin-button {
|
||||
-webkit-appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
input[type=text]::-ms-clear {
|
||||
display: none;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
input[type=text]::-ms-reveal {
|
||||
display: none;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
input[type=search]::-webkit-search-decoration,
|
||||
input[type=search]::-webkit-search-cancel-button,
|
||||
input[type=search]::-webkit-search-results-button,
|
||||
input[type=search]::-webkit-search-results-decoration {
|
||||
display: none;
|
||||
}
|
||||
|
||||
input[type=number] {
|
||||
-moz-appearance: textfield;
|
||||
}
|
||||
|
||||
input:invalid {
|
||||
outline: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
::-moz-focus-inner {
|
||||
border: none;
|
||||
}
|
||||
@ -300,25 +265,20 @@ input:invalid {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
#logo {
|
||||
display: inline-grid;
|
||||
.logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
grid-template-columns: auto 1fr;
|
||||
gap: 0.6rem 0.4rem;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
#logo h4 {
|
||||
letter-spacing: 0.06rem;
|
||||
word-spacing: 0.12rem;
|
||||
.logo h4 {
|
||||
font-weight: 500;
|
||||
font-size: clamp(1.1rem, 2vw, 1.2rem);
|
||||
}
|
||||
#logo h5 {
|
||||
font-weight: 400;
|
||||
}
|
||||
#logo #main_logo {
|
||||
height: 1.6rem;
|
||||
width: 1.6rem;
|
||||
.logo .main-logo {
|
||||
height: clamp(1.4rem, 2vw, 1.6rem);
|
||||
width: clamp(1.4rem, 2vw, 1.6rem);
|
||||
fill: rgba(var(--text-color), 1);
|
||||
stroke: none;
|
||||
margin-right: 0.2rem;
|
||||
}
|
||||
|
||||
textarea {
|
||||
@ -488,25 +448,10 @@ details p {
|
||||
|
||||
#main_header {
|
||||
align-items: center;
|
||||
padding: 1rem;
|
||||
padding: clamp(1rem, 2vw, 2rem) 1rem;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.display-balance {
|
||||
gap: 1rem;
|
||||
grid-auto-flow: row;
|
||||
}
|
||||
.display-balance .balance {
|
||||
width: 100%;
|
||||
}
|
||||
.display-balance .icon {
|
||||
height: 1.4rem;
|
||||
width: 1.4rem;
|
||||
padding: 0.3rem;
|
||||
stroke-width: 10;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.icon {
|
||||
height: 1.2rem;
|
||||
width: 1.2rem;
|
||||
@ -540,7 +485,8 @@ details p {
|
||||
padding: 0.3em;
|
||||
margin: 0.3em;
|
||||
border-radius: 0.4em;
|
||||
color: rgba(var(--text-color), 0.8);
|
||||
opacity: 0.6;
|
||||
color: rgba(var(--text-color), 1);
|
||||
font-size: 0.8em;
|
||||
text-transform: capitalize;
|
||||
width: 100%;
|
||||
@ -549,11 +495,11 @@ details p {
|
||||
#navbar .navbar-item h5 {
|
||||
margin-top: 0.4em;
|
||||
}
|
||||
#navbar .active {
|
||||
color: var(--accent-color);
|
||||
#navbar .navbar-item .icon {
|
||||
stroke: rgba(var(--text-color), 1);
|
||||
}
|
||||
#navbar .active .icon {
|
||||
stroke: var(--accent-color);
|
||||
#navbar .active {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.banking {
|
||||
@ -561,10 +507,9 @@ details p {
|
||||
}
|
||||
|
||||
#home_page {
|
||||
padding: 1rem 0 4rem 0;
|
||||
padding: 0 0 4rem 0;
|
||||
}
|
||||
#home_page .left {
|
||||
padding: 1.5rem 0;
|
||||
width: auto;
|
||||
border-radius: 0.6rem;
|
||||
}
|
||||
@ -575,54 +520,57 @@ details p {
|
||||
font-size: 2rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
#home_page .user-panel {
|
||||
margin: 0 1.5rem;
|
||||
}
|
||||
|
||||
.user-panel {
|
||||
position: relative;
|
||||
padding: 1.5rem;
|
||||
border-radius: 0.6rem;
|
||||
background: linear-gradient(135deg, var(--accent-color), #2F2B76);
|
||||
color: rgba(var(--foreground-color), 1);
|
||||
box-shadow: 0 0.1rem 0.1rem #00000010, 0 1rem 1rem -1rem #00000010;
|
||||
align-self: flex-start;
|
||||
}
|
||||
.user-panel .icon {
|
||||
stroke: rgba(var(--foreground-color), 1);
|
||||
}
|
||||
.user-panel .copy-row {
|
||||
margin-bottom: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: solid 1px rgba(var(--foreground-color), 0.3);
|
||||
}
|
||||
.user-panel sm-button {
|
||||
--text-color: rgba(var(--foreground-color), 1);
|
||||
background: rgba(var(--foreground-color), 0.2);
|
||||
border-radius: 2rem;
|
||||
}
|
||||
.user-panel .grid {
|
||||
gap: 1.5rem;
|
||||
|
||||
.display-balance {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
grid-template-areas: ". ." "flo flo";
|
||||
gap: 1rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
.user-panel .grid h5 {
|
||||
font-weight: 500;
|
||||
.display-balance .balance {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-radius: 1rem;
|
||||
padding: 1.5rem;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.user-panel .grid h4 {
|
||||
font-size: 1.2rem;
|
||||
.display-balance .balance h4 {
|
||||
margin-top: 2.5rem;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
.user-panel .grid P {
|
||||
font-size: 0.8rem;
|
||||
opacity: 0.9;
|
||||
.display-balance .balance h5 {
|
||||
opacity: 0.8;
|
||||
}
|
||||
.display-balance .balance:nth-of-type(1) {
|
||||
background: rgba(var(--text-color), 0.06);
|
||||
}
|
||||
.display-balance .balance:nth-of-type(2) {
|
||||
background: #C70039;
|
||||
color: rgba(var(--foreground-color), 1);
|
||||
margin-bottom: 0 !important;
|
||||
max-width: 30ch;
|
||||
}
|
||||
|
||||
.balance {
|
||||
display: grid;
|
||||
gap: 0 1rem;
|
||||
.display-balance .balance:nth-of-type(3) {
|
||||
grid-area: flo;
|
||||
background: #040618;
|
||||
color: rgba(var(--foreground-color), 1);
|
||||
}
|
||||
.display-balance .icon {
|
||||
height: 1.4rem;
|
||||
width: 1.4rem;
|
||||
padding: 0.3rem;
|
||||
stroke-width: 10;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.user-type {
|
||||
@ -630,13 +578,9 @@ details p {
|
||||
}
|
||||
|
||||
.options-tab {
|
||||
margin: 1rem 0;
|
||||
}
|
||||
.options-tab > .grid {
|
||||
min-width: 100vw;
|
||||
padding: 0 1.5rem;
|
||||
grid-auto-flow: column;
|
||||
gap: 0.2rem;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
.options-tab .option {
|
||||
position: relative;
|
||||
@ -646,8 +590,8 @@ details p {
|
||||
text-align: center;
|
||||
border-radius: 0.4rem;
|
||||
margin-bottom: 1rem;
|
||||
margin-right: 1rem;
|
||||
width: 5rem;
|
||||
min-width: 5rem;
|
||||
text-transform: capitalize;
|
||||
transition: transform 0.3s;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
@ -1041,7 +985,6 @@ sm-panel {
|
||||
gap: 0 1rem;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
grid-template-areas: "icon type amount" "icon receiver time";
|
||||
max-width: 70ch;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
@ -1155,17 +1098,24 @@ sm-panel {
|
||||
}
|
||||
#home_page .left, #deposit .left {
|
||||
grid-area: left;
|
||||
background: rgba(var(--text-color), 0.06);
|
||||
}
|
||||
|
||||
sm-select {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hide-on-mobile {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 640px) {
|
||||
.hide-on-desktop {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
body {
|
||||
padding: 0 2rem;
|
||||
margin-left: 6rem;
|
||||
margin-left: 10rem;
|
||||
}
|
||||
|
||||
sm-popup {
|
||||
@ -1181,36 +1131,44 @@ sm-panel {
|
||||
}
|
||||
|
||||
#navbar {
|
||||
justify-content: center;
|
||||
justify-content: flex-start;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
top: 0;
|
||||
right: auto;
|
||||
width: 6rem;
|
||||
border-top: none;
|
||||
border-right: solid 1px rgba(var(--text-color), 0.2);
|
||||
background: rgba(var(--text-color), 0.06);
|
||||
}
|
||||
#navbar .navbar-item {
|
||||
display: flex;
|
||||
border-radius: 0.5rem;
|
||||
width: auto;
|
||||
padding: 0.5rem 0;
|
||||
margin: 0.5rem 0.6rem;
|
||||
padding: 0.8rem 1.6rem;
|
||||
margin-bottom: 0.3rem;
|
||||
}
|
||||
#navbar .navbar-item .icon {
|
||||
height: 1.4rem;
|
||||
width: 1.4rem;
|
||||
height: 1.2rem;
|
||||
width: 1.2rem;
|
||||
margin-right: 0.8rem;
|
||||
}
|
||||
#navbar .navbar-item h5 {
|
||||
font-size: 0.9rem;
|
||||
margin: 0;
|
||||
}
|
||||
#navbar .navbar-item:hover {
|
||||
background: rgba(var(--foreground-color), 0.2);
|
||||
opacity: 1;
|
||||
}
|
||||
#navbar .navbar-item.active {
|
||||
background: rgba(var(--foreground-color), 1);
|
||||
color: var(--accent-color);
|
||||
#navbar .logo {
|
||||
margin: 1.5rem 1rem;
|
||||
}
|
||||
#navbar .navbar-item.active .icon {
|
||||
stroke: var(--accent-color);
|
||||
#navbar .logo h4 {
|
||||
font-size: 1rem;
|
||||
}
|
||||
#navbar .logo .main-logo {
|
||||
height: 1.2rem;
|
||||
width: 1.2rem;
|
||||
}
|
||||
|
||||
.page {
|
||||
@ -1221,17 +1179,20 @@ sm-panel {
|
||||
width: 24rem;
|
||||
}
|
||||
|
||||
.options-tab > .grid {
|
||||
gap: 1rem;
|
||||
min-width: auto;
|
||||
#home_page {
|
||||
padding-top: 0.5rem;
|
||||
}
|
||||
.options-tab .grid:first-of-type {
|
||||
padding-right: 0;
|
||||
#home_page .left {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
.options-tab .grid:last-of-type {
|
||||
padding-left: 0;
|
||||
#home_page .balance h4 {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
#settings_page > h4 {
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
#settings_page .copy-row {
|
||||
display: inline-grid;
|
||||
}
|
||||
@ -1247,8 +1208,6 @@ sm-panel {
|
||||
}
|
||||
.complaint .left {
|
||||
border-right: 1px solid rgba(var(--text-color), 0.2);
|
||||
}
|
||||
.complaint .left {
|
||||
padding-right: 1.5rem;
|
||||
}
|
||||
.complaint .right {
|
||||
@ -1265,7 +1224,7 @@ sm-panel {
|
||||
#home_page, #deposit {
|
||||
display: grid;
|
||||
gap: 1.5rem;
|
||||
grid-template-columns: minmax(0, 1fr) 24rem;
|
||||
grid-template-columns: minmax(0, 1fr) 22rem;
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 1920px) {
|
||||
|
||||
2
css/main.min.css
vendored
2
css/main.min.css
vendored
File diff suppressed because one or more lines are too long
250
css/main.scss
250
css/main.scss
@ -10,13 +10,12 @@
|
||||
}
|
||||
|
||||
body {
|
||||
--accent-color: #2237CD;
|
||||
--accent-color: #4527A0;
|
||||
--text-color: 17, 17, 17;
|
||||
--text-color-light: 85, 85, 85;
|
||||
--foreground-color: 255, 255, 255;
|
||||
--background-color: #e8e8e8;
|
||||
--dark-shade: #dadada;
|
||||
background: linear-gradient(rgba(var(--foreground-color), 0.1), rgba(var(--foreground-color), 0.3)),url(back.svg) no-repeat fixed;
|
||||
color: rgba(var(--text-color), 1);
|
||||
font-size: 16px;
|
||||
background-size: cover;
|
||||
@ -99,41 +98,6 @@ button {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
input[type=number]::-webkit-inner-spin-button,
|
||||
input[type=number]::-webkit-outer-spin-button {
|
||||
-webkit-appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
input[type=text]::-ms-clear {
|
||||
display: none;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
input[type=text]::-ms-reveal {
|
||||
display: none;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
input[type="search"]::-webkit-search-decoration,
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-results-button,
|
||||
input[type="search"]::-webkit-search-results-decoration {
|
||||
display: none;
|
||||
}
|
||||
|
||||
input[type=number] {
|
||||
-moz-appearance: textfield;
|
||||
}
|
||||
|
||||
input:invalid {
|
||||
outline: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
::-moz-focus-inner {
|
||||
border: none;
|
||||
}
|
||||
@ -313,27 +277,19 @@ input:invalid {
|
||||
}
|
||||
}
|
||||
|
||||
#logo {
|
||||
display: inline-grid;
|
||||
.logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
grid-template-columns: auto 1fr;
|
||||
gap: 0.6rem 0.4rem;
|
||||
margin-right: 1rem;
|
||||
|
||||
h4 {
|
||||
letter-spacing: 0.06rem;
|
||||
word-spacing: 0.12rem;
|
||||
h4{
|
||||
font-weight: 500;
|
||||
font-size: clamp(1.1rem, 2vw, 1.2rem);
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
#main_logo {
|
||||
height: 1.6rem;
|
||||
width: 1.6rem;
|
||||
.main-logo {
|
||||
height: clamp(1.4rem, 2vw, 1.6rem);
|
||||
width: clamp(1.4rem, 2vw, 1.6rem);
|
||||
fill: rgba(var(--text-color), 1);
|
||||
stroke: none;
|
||||
margin-right: 0.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@ -517,25 +473,10 @@ details{
|
||||
|
||||
#main_header {
|
||||
align-items: center;
|
||||
padding: 1rem;
|
||||
padding: clamp(1rem, 2vw, 2rem) 1rem;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.display-balance {
|
||||
gap: 1rem;
|
||||
grid-auto-flow: row;
|
||||
.balance{
|
||||
width: 100%;
|
||||
}
|
||||
.icon {
|
||||
height: 1.4rem;
|
||||
width: 1.4rem;
|
||||
padding: 0.3rem;
|
||||
stroke-width: 10;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.icon {
|
||||
height: 1.2rem;
|
||||
width: 1.2rem;
|
||||
@ -569,7 +510,8 @@ details{
|
||||
padding: 0.3em;
|
||||
margin: 0.3em;
|
||||
border-radius: 0.4em;
|
||||
color: rgba(var(--text-color), 0.8);
|
||||
opacity: 0.6;
|
||||
color: rgba(var(--text-color), 1);
|
||||
font-size: 0.8em;
|
||||
text-transform: capitalize;
|
||||
width: 100%;
|
||||
@ -577,14 +519,13 @@ details{
|
||||
h5 {
|
||||
margin-top: 0.4em;
|
||||
}
|
||||
.icon{
|
||||
stroke: rgba(var(--text-color), 1);
|
||||
}
|
||||
}
|
||||
|
||||
.active {
|
||||
color: var(--accent-color);
|
||||
|
||||
.icon {
|
||||
stroke: var(--accent-color);
|
||||
}
|
||||
.active{
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@ -593,9 +534,8 @@ details{
|
||||
}
|
||||
|
||||
#home_page {
|
||||
padding: 1rem 0 4rem 0;
|
||||
padding: 0 0 4rem 0;
|
||||
.left {
|
||||
padding: 1.5rem 0;
|
||||
width: auto;
|
||||
border-radius: 0.6rem;
|
||||
h3, h4, p {
|
||||
@ -606,68 +546,68 @@ details{
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
}
|
||||
.user-panel{
|
||||
margin: 0 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.user-panel {
|
||||
position: relative;
|
||||
padding: 1.5rem;
|
||||
border-radius: 0.6rem;
|
||||
background: linear-gradient(135deg, var(--accent-color), #2F2B76);
|
||||
color: rgba(var(--foreground-color), 1);
|
||||
box-shadow: 0 0.1rem 0.1rem #00000010, 0 1rem 1rem -1rem #00000010;
|
||||
align-self: flex-start;
|
||||
.icon{
|
||||
stroke: rgba(var(--foreground-color), 1);
|
||||
}
|
||||
.copy-row {
|
||||
margin-bottom: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: solid 1px rgba(var(--foreground-color), 0.3);
|
||||
}
|
||||
sm-button{
|
||||
--text-color: rgba(var(--foreground-color), 1);
|
||||
background: rgba(var(--foreground-color), 0.2);
|
||||
border-radius: 2rem;
|
||||
}
|
||||
.grid {
|
||||
gap: 1.5rem;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
margin-top: 1rem;
|
||||
h5 {
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
.display-balance {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
grid-template-areas: '. .' 'flo flo';
|
||||
gap: 1rem;
|
||||
margin-top: 1rem;
|
||||
.balance{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-radius: 1rem;
|
||||
padding: 1.5rem;
|
||||
justify-content: flex-end;
|
||||
h4{
|
||||
font-size: 1.2rem;
|
||||
margin-top: 2.5rem;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
P{
|
||||
font-size: 0.8rem;
|
||||
opacity: 0.9;
|
||||
h5{
|
||||
opacity: 0.8;
|
||||
}
|
||||
&:nth-of-type(1){
|
||||
background: rgba(var(--text-color), 0.06);
|
||||
}
|
||||
&:nth-of-type(2){
|
||||
background: #C70039 ;
|
||||
color: rgba(var(--foreground-color), 1);
|
||||
}
|
||||
&:nth-of-type(3){
|
||||
grid-area: flo;
|
||||
background: #040618;
|
||||
color: rgba(var(--foreground-color), 1);
|
||||
margin-bottom: 0 !important;
|
||||
max-width: 30ch;
|
||||
}
|
||||
}
|
||||
}
|
||||
.balance{
|
||||
display: grid;
|
||||
gap: 0 1rem;
|
||||
.icon {
|
||||
height: 1.4rem;
|
||||
width: 1.4rem;
|
||||
padding: 0.3rem;
|
||||
stroke-width: 10;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.user-type {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.options-tab {
|
||||
margin: 1rem 0;
|
||||
& > .grid{
|
||||
min-width: 100vw;
|
||||
padding: 0 1.5rem;
|
||||
grid-auto-flow: column;
|
||||
gap: 0.2rem;
|
||||
}
|
||||
.options-tab {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
padding: 1.5rem;
|
||||
.option {
|
||||
position: relative;
|
||||
display: flex;
|
||||
@ -676,8 +616,8 @@ details{
|
||||
text-align: center;
|
||||
border-radius: 0.4rem;
|
||||
margin-bottom: 1rem;
|
||||
margin-right: 1rem;
|
||||
width: 5rem;
|
||||
min-width: 5rem;
|
||||
text-transform: capitalize;
|
||||
transition: transform 0.3s;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
@ -1112,7 +1052,6 @@ sm-panel{
|
||||
gap: 0 1rem;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
grid-template-areas: 'icon type amount' 'icon receiver time';
|
||||
max-width: 70ch;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
.icon{
|
||||
@ -1222,18 +1161,23 @@ sm-panel{
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
.left {
|
||||
grid-area: left;
|
||||
background: rgba(var(--text-color), 0.06);
|
||||
}
|
||||
}
|
||||
sm-select {
|
||||
width: 100%;
|
||||
}
|
||||
.hide-on-mobile{
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 640px) {
|
||||
.hide-on-desktop{
|
||||
display: none !important;
|
||||
}
|
||||
body {
|
||||
padding: 0 2rem;
|
||||
margin-left: 6rem;
|
||||
margin-left: 10rem;
|
||||
}
|
||||
sm-popup{
|
||||
background: rgba(var(--foreground-color), 1);
|
||||
@ -1247,34 +1191,42 @@ sm-panel{
|
||||
}
|
||||
|
||||
#navbar {
|
||||
justify-content: center;
|
||||
justify-content: flex-start;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
top: 0;
|
||||
right: auto;
|
||||
width: 6rem;
|
||||
border-top: none;
|
||||
border-right: solid 1px rgba(var(--text-color), 0.2);
|
||||
background: rgba(var(--text-color), 0.06);
|
||||
.navbar-item {
|
||||
display: flex;
|
||||
border-radius: 0.5rem;
|
||||
width: auto;
|
||||
padding: 0.5rem 0;
|
||||
margin: 0.5rem 0.6rem;
|
||||
padding: 0.8rem 1.6rem;
|
||||
margin-bottom: 0.3rem;
|
||||
.icon {
|
||||
height: 1.4rem;
|
||||
width: 1.4rem;
|
||||
height: 1.2rem;
|
||||
width: 1.2rem;
|
||||
margin-right: 0.8rem;
|
||||
}
|
||||
h5{
|
||||
font-size: 0.9rem;
|
||||
margin: 0;
|
||||
}
|
||||
&:hover {
|
||||
background: rgba(var(--foreground-color), 0.2);
|
||||
opacity: 1;
|
||||
}
|
||||
&.active{
|
||||
background: rgba(var(--foreground-color), 1);
|
||||
color: var(--accent-color);
|
||||
.icon{
|
||||
stroke: var(--accent-color);
|
||||
}
|
||||
}
|
||||
.logo{
|
||||
margin: 1.5rem 1rem;
|
||||
h4{
|
||||
font-size: 1rem;
|
||||
}
|
||||
.main-logo{
|
||||
height: 1.2rem;
|
||||
width: 1.2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1286,19 +1238,22 @@ sm-panel{
|
||||
#sign_in_popup {
|
||||
width: 24rem;
|
||||
}
|
||||
.options-tab{
|
||||
& > .grid{
|
||||
gap: 1rem;
|
||||
min-width: auto;
|
||||
#home_page {
|
||||
padding-top: 0.5rem;
|
||||
.left {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
.grid:first-of-type{
|
||||
padding-right: 0;
|
||||
}
|
||||
.grid:last-of-type{
|
||||
padding-left: 0;
|
||||
.balance{
|
||||
h4{
|
||||
margin-top: 2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
#settings_page{
|
||||
& > h4{
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
.copy-row{
|
||||
display: inline-grid;
|
||||
}
|
||||
@ -1317,9 +1272,6 @@ sm-panel{
|
||||
|
||||
.left {
|
||||
border-right: 1px solid rgba(var(--text-color), 0.2);
|
||||
}
|
||||
|
||||
.left {
|
||||
padding-right: 1.5rem;
|
||||
}
|
||||
|
||||
@ -1336,7 +1288,7 @@ sm-panel{
|
||||
#home_page, #deposit {
|
||||
display: grid;
|
||||
gap: 1.5rem;
|
||||
grid-template-columns: minmax(0, 1fr) 24rem;
|
||||
grid-template-columns: minmax(0, 1fr) 22rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
208
index.html
208
index.html
@ -4,7 +4,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Blockchain UPI</title>
|
||||
<title>RanchiMall Pay</title>
|
||||
<link
|
||||
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">
|
||||
@ -322,28 +322,25 @@
|
||||
rows="10"></textarea>
|
||||
</sm-popup>
|
||||
|
||||
<header id="main_header" class="flex hide-completely">
|
||||
<svg viewBox="0 0 180 105.7" class="hide-completely">
|
||||
<path d="M22.5,35.5C27.7,32.6,33.6,31,40,31c19.9,0,36,16.1,36,36c0,16.6-11.2,30.6-26.5,34.7" />
|
||||
<path d="M4,4v63c0,16.2,10.7,30,25.5,34.4" />
|
||||
<line x1="94" y1="67.1" x2="126" y2="67.1" />
|
||||
<line x1="110" y1="50.5" x2="110" y2="83.8" />
|
||||
<line x1="144" y1="67.1" x2="176" y2="67.1" />
|
||||
<line x1="160" y1="50.5" x2="160" y2="83.8" />
|
||||
</svg>
|
||||
<div id="logo">
|
||||
<svg id="main_logo" viewBox="0 0 27.25 32">
|
||||
<header id="main_header" class="flex hide-on-desktop">
|
||||
<div class="logo">
|
||||
<svg class="main-logo" viewBox="0 0 27.25 32">
|
||||
<title>RanchiMall</title>
|
||||
<path
|
||||
d="M27.14,30.86c-.74-2.48-3-4.36-8.25-6.94a20,20,0,0,1-4.2-2.49,6,6,0,0,1-1.25-1.67,4,4,0,0,1,0-2.26c.37-1.08.79-1.57,3.89-4.55a11.66,11.66,0,0,0,3.34-4.67,6.54,6.54,0,0,0,.05-2.82C20,3.6,18.58,2,16.16.49c-.89-.56-1.29-.64-1.3-.24a3,3,0,0,1-.3.72l-.3.55L13.42.94C13,.62,12.4.26,12.19.15c-.4-.2-.73-.18-.72.05a9.39,9.39,0,0,1-.61,1.33s-.14,0-.27-.13C8.76.09,8-.27,8,.23A11.73,11.73,0,0,1,6.76,2.6C4.81,5.87,2.83,7.49.77,7.49c-.89,0-.88,0-.61,1,.22.85.33.92,1.09.69A5.29,5.29,0,0,0,3,8.33c.23-.17.45-.29.49-.26a2,2,0,0,1,.22.63A1.31,1.31,0,0,0,4,9.34a5.62,5.62,0,0,0,2.27-.87L7,8l.13.55c.19.74.32.82,1,.65a7.06,7.06,0,0,0,3.46-2.47l.6-.71-.06.64c-.17,1.63-1.3,3.42-3.39,5.42L6.73,14c-3.21,3.06-3,5.59.6,8a46.77,46.77,0,0,0,4.6,2.41c.28.13,1,.52,1.59.87,3.31,2,4.95,3.92,4.95,5.93a2.49,2.49,0,0,0,.07.77h0c.09.09,0,.1.9-.14a2.61,2.61,0,0,0,.83-.32,3.69,3.69,0,0,0-.55-1.83A11.14,11.14,0,0,0,17,26.81a35.7,35.7,0,0,0-5.1-2.91C9.37,22.64,8.38,22,7.52,21.17a3.53,3.53,0,0,1-1.18-2.48c0-1.38.71-2.58,2.5-4.23,2.84-2.6,3.92-3.91,4.67-5.65a3.64,3.64,0,0,0,.42-2A3.37,3.37,0,0,0,13.61,5l-.32-.74.29-.48c.17-.27.37-.63.46-.8l.15-.3.44.64a5.92,5.92,0,0,1,1,2.81,5.86,5.86,0,0,1-.42,1.94c0,.12-.12.3-.15.4a9.49,9.49,0,0,1-.67,1.1,28,28,0,0,1-4,4.29C8.62,15.49,8.05,16.44,8,17.78a3.28,3.28,0,0,0,1.11,2.76c.95,1,2.07,1.74,5.25,3.32,3.64,1.82,5.22,2.9,6.41,4.38A4.78,4.78,0,0,1,21.94,31a3.21,3.21,0,0,0,.14.92,1.06,1.06,0,0,0,.43-.05l.83-.22.46-.12-.06-.46c-.21-1.53-1.62-3.25-3.94-4.8a37.57,37.57,0,0,0-5.22-2.82A13.36,13.36,0,0,1,11,21.19a3.36,3.36,0,0,1-.8-4.19c.41-.85.83-1.31,3.77-4.15,2.39-2.31,3.43-4.13,3.43-6a5.85,5.85,0,0,0-2.08-4.29c-.23-.21-.44-.43-.65-.65A2.5,2.5,0,0,1,15.27.69a10.6,10.6,0,0,1,2.91,2.78A4.16,4.16,0,0,1,19,6.16a4.91,4.91,0,0,1-.87,3c-.71,1.22-1.26,1.82-4.27,4.67a9.47,9.47,0,0,0-2.07,2.6,2.76,2.76,0,0,0-.33,1.54,2.76,2.76,0,0,0,.29,1.47c.57,1.21,2.23,2.55,4.65,3.73a32.41,32.41,0,0,1,5.82,3.24c2.16,1.6,3.2,3.16,3.2,4.8a1.94,1.94,0,0,0,.09.76,4.54,4.54,0,0,0,1.66-.4C27.29,31.42,27.29,31.37,27.14,30.86ZM6.1,7h0a3.77,3.77,0,0,1-1.46.45L4,7.51l.68-.83a25.09,25.09,0,0,0,3-4.82A12,12,0,0,1,8.28.76c.11-.12.77.32,1.53,1l.63.58-.57.84A10.34,10.34,0,0,1,6.1,7Zm5.71-1.78A9.77,9.77,0,0,1,9.24,7.18h0a5.25,5.25,0,0,1-1.17.28l-.58,0,.65-.78a21.29,21.29,0,0,0,2.1-3.12c.22-.41.42-.76.44-.79s.5.43.9,1.24L12,5ZM13.41,3a2.84,2.84,0,0,1-.45.64,11,11,0,0,1-.9-.91l-.84-.9.19-.45c.34-.79.39-.8,1-.31A9.4,9.4,0,0,1,13.8,2.33q-.18.34-.39.69Z" />
|
||||
</svg>
|
||||
<span>
|
||||
<h5>RanchiMall</h5>
|
||||
<h4>BLOCKCHAIN UPI</h4>
|
||||
</span>
|
||||
<h4>RanchiMall Pay</h4>
|
||||
</div>
|
||||
</header>
|
||||
<nav id="navbar" class="hide-completely">
|
||||
<div class="logo hide-on-mobile">
|
||||
<svg class="main-logo" viewBox="0 0 27.25 32">
|
||||
<title>RanchiMall</title>
|
||||
<path
|
||||
d="M27.14,30.86c-.74-2.48-3-4.36-8.25-6.94a20,20,0,0,1-4.2-2.49,6,6,0,0,1-1.25-1.67,4,4,0,0,1,0-2.26c.37-1.08.79-1.57,3.89-4.55a11.66,11.66,0,0,0,3.34-4.67,6.54,6.54,0,0,0,.05-2.82C20,3.6,18.58,2,16.16.49c-.89-.56-1.29-.64-1.3-.24a3,3,0,0,1-.3.72l-.3.55L13.42.94C13,.62,12.4.26,12.19.15c-.4-.2-.73-.18-.72.05a9.39,9.39,0,0,1-.61,1.33s-.14,0-.27-.13C8.76.09,8-.27,8,.23A11.73,11.73,0,0,1,6.76,2.6C4.81,5.87,2.83,7.49.77,7.49c-.89,0-.88,0-.61,1,.22.85.33.92,1.09.69A5.29,5.29,0,0,0,3,8.33c.23-.17.45-.29.49-.26a2,2,0,0,1,.22.63A1.31,1.31,0,0,0,4,9.34a5.62,5.62,0,0,0,2.27-.87L7,8l.13.55c.19.74.32.82,1,.65a7.06,7.06,0,0,0,3.46-2.47l.6-.71-.06.64c-.17,1.63-1.3,3.42-3.39,5.42L6.73,14c-3.21,3.06-3,5.59.6,8a46.77,46.77,0,0,0,4.6,2.41c.28.13,1,.52,1.59.87,3.31,2,4.95,3.92,4.95,5.93a2.49,2.49,0,0,0,.07.77h0c.09.09,0,.1.9-.14a2.61,2.61,0,0,0,.83-.32,3.69,3.69,0,0,0-.55-1.83A11.14,11.14,0,0,0,17,26.81a35.7,35.7,0,0,0-5.1-2.91C9.37,22.64,8.38,22,7.52,21.17a3.53,3.53,0,0,1-1.18-2.48c0-1.38.71-2.58,2.5-4.23,2.84-2.6,3.92-3.91,4.67-5.65a3.64,3.64,0,0,0,.42-2A3.37,3.37,0,0,0,13.61,5l-.32-.74.29-.48c.17-.27.37-.63.46-.8l.15-.3.44.64a5.92,5.92,0,0,1,1,2.81,5.86,5.86,0,0,1-.42,1.94c0,.12-.12.3-.15.4a9.49,9.49,0,0,1-.67,1.1,28,28,0,0,1-4,4.29C8.62,15.49,8.05,16.44,8,17.78a3.28,3.28,0,0,0,1.11,2.76c.95,1,2.07,1.74,5.25,3.32,3.64,1.82,5.22,2.9,6.41,4.38A4.78,4.78,0,0,1,21.94,31a3.21,3.21,0,0,0,.14.92,1.06,1.06,0,0,0,.43-.05l.83-.22.46-.12-.06-.46c-.21-1.53-1.62-3.25-3.94-4.8a37.57,37.57,0,0,0-5.22-2.82A13.36,13.36,0,0,1,11,21.19a3.36,3.36,0,0,1-.8-4.19c.41-.85.83-1.31,3.77-4.15,2.39-2.31,3.43-4.13,3.43-6a5.85,5.85,0,0,0-2.08-4.29c-.23-.21-.44-.43-.65-.65A2.5,2.5,0,0,1,15.27.69a10.6,10.6,0,0,1,2.91,2.78A4.16,4.16,0,0,1,19,6.16a4.91,4.91,0,0,1-.87,3c-.71,1.22-1.26,1.82-4.27,4.67a9.47,9.47,0,0,0-2.07,2.6,2.76,2.76,0,0,0-.33,1.54,2.76,2.76,0,0,0,.29,1.47c.57,1.21,2.23,2.55,4.65,3.73a32.41,32.41,0,0,1,5.82,3.24c2.16,1.6,3.2,3.16,3.2,4.8a1.94,1.94,0,0,0,.09.76,4.54,4.54,0,0,0,1.66-.4C27.29,31.42,27.29,31.37,27.14,30.86ZM6.1,7h0a3.77,3.77,0,0,1-1.46.45L4,7.51l.68-.83a25.09,25.09,0,0,0,3-4.82A12,12,0,0,1,8.28.76c.11-.12.77.32,1.53,1l.63.58-.57.84A10.34,10.34,0,0,1,6.1,7Zm5.71-1.78A9.77,9.77,0,0,1,9.24,7.18h0a5.25,5.25,0,0,1-1.17.28l-.58,0,.65-.78a21.29,21.29,0,0,0,2.1-3.12c.22-.41.42-.76.44-.79s.5.43.9,1.24L12,5ZM13.41,3a2.84,2.84,0,0,1-.45.64,11,11,0,0,1-.9-.91l-.84-.9.19-.45c.34-.79.39-.8,1-.31A9.4,9.4,0,0,1,13.8,2.33q-.18.34-.39.69Z" />
|
||||
</svg>
|
||||
<h4>RanchiMall Pay</h4>
|
||||
</div>
|
||||
<div title="homepage" id="home_page_btn" class="user-option navbar-item active"
|
||||
onclick="showPage(this, 'home_page')">
|
||||
<svg class="icon" viewBox="0 0 64 64">
|
||||
@ -391,100 +388,87 @@
|
||||
<h5>Complaints</h5>
|
||||
</div>
|
||||
<div title="profile page" class="navbar-item" onclick="showPage(this, 'settings_page')">
|
||||
<svg class="icon" viewBox="0 0 64 64">
|
||||
<title>settings</title>
|
||||
<path
|
||||
d="M41,62.92a1.7,1.7,0,0,1-1.45-.83L37,57.7a2.63,2.63,0,0,0-2.27-1.34h-.26a23.91,23.91,0,0,1-5,0h-.26A2.63,2.63,0,0,0,27,57.7l-2.54,4.39a1.67,1.67,0,0,1-1.44.83,1.72,1.72,0,0,1-.83-.22L10.33,55.86a1.67,1.67,0,0,1-.61-2.27l2.54-4.41a2.61,2.61,0,0,0-.12-2.85A23.77,23.77,0,0,1,9.65,42,2.65,2.65,0,0,0,7.24,40.5H2.17A1.67,1.67,0,0,1,.5,38.83V25.17A1.67,1.67,0,0,1,2.17,23.5H7.24A2.64,2.64,0,0,0,9.65,22a25,25,0,0,1,2.49-4.31,2.63,2.63,0,0,0,.12-2.85l-2.54-4.4a1.67,1.67,0,0,1,.61-2.27L22.17,1.3A1.72,1.72,0,0,1,23,1.08a1.67,1.67,0,0,1,1.44.83L27,6.3a2.63,2.63,0,0,0,2.27,1.34h.26a23.91,23.91,0,0,1,5,0h.26A2.63,2.63,0,0,0,37,6.3l2.53-4.39A1.7,1.7,0,0,1,41,1.08a1.72,1.72,0,0,1,.83.22L53.67,8.14a1.67,1.67,0,0,1,.61,2.27l-2.54,4.41a2.61,2.61,0,0,0,.12,2.85A24.46,24.46,0,0,1,54.35,22a2.65,2.65,0,0,0,2.41,1.52h5.07a1.67,1.67,0,0,1,1.67,1.67V38.83a1.67,1.67,0,0,1-1.67,1.67H56.76A2.63,2.63,0,0,0,54.35,42a24.63,24.63,0,0,1-2.49,4.31,2.63,2.63,0,0,0-.12,2.85l2.54,4.4a1.68,1.68,0,0,1-.61,2.27L41.83,62.7A1.72,1.72,0,0,1,41,62.92Z" />
|
||||
<path
|
||||
d="M23,1.58h0a1.16,1.16,0,0,1,1,.58l2.54,4.39a3.14,3.14,0,0,0,2.7,1.59l.31,0C30.37,8,31.19,8,32,8s1.63,0,2.44.12l.31,0a3.14,3.14,0,0,0,2.7-1.59L40,2.16a1.16,1.16,0,0,1,1-.58,1.1,1.1,0,0,1,.58.16L53.42,8.57a1.16,1.16,0,0,1,.42,1.59L51.3,14.57a3.15,3.15,0,0,0,.15,3.4,23.69,23.69,0,0,1,2.45,4.21A3.12,3.12,0,0,0,56.76,24h5.07A1.17,1.17,0,0,1,63,25.17V38.83A1.17,1.17,0,0,1,61.83,40H56.76a3.11,3.11,0,0,0-2.86,1.82,24.33,24.33,0,0,1-2.44,4.23,3.11,3.11,0,0,0-.15,3.39l2.53,4.4a1.13,1.13,0,0,1,.12.88,1.17,1.17,0,0,1-.54.71L41.58,62.26a1.08,1.08,0,0,1-.58.16,1.16,1.16,0,0,1-1-.58l-2.54-4.39a3.14,3.14,0,0,0-2.7-1.59l-.31,0C33.63,56,32.81,56,32,56s-1.63,0-2.44-.12l-.31,0a3.14,3.14,0,0,0-2.7,1.59L24,61.84a1.16,1.16,0,0,1-1,.58,1.1,1.1,0,0,1-.58-.16L10.58,55.43a1.16,1.16,0,0,1-.42-1.59l2.54-4.41a3.15,3.15,0,0,0-.15-3.4,23.69,23.69,0,0,1-2.45-4.21A3.12,3.12,0,0,0,7.24,40H2.17A1.17,1.17,0,0,1,1,38.83V25.17A1.17,1.17,0,0,1,2.17,24H7.24a3.11,3.11,0,0,0,2.86-1.82A24.33,24.33,0,0,1,12.54,18a3.11,3.11,0,0,0,.15-3.39l-2.53-4.4a1.16,1.16,0,0,1,.42-1.59L22.42,1.74A1.08,1.08,0,0,1,23,1.58m0-1a2.11,2.11,0,0,0-1.08.29L10.08,7.7a2.17,2.17,0,0,0-.79,3l2.54,4.4a2.15,2.15,0,0,1-.1,2.31,24.92,24.92,0,0,0-2.54,4.4A2.13,2.13,0,0,1,7.24,23H2.17A2.17,2.17,0,0,0,0,25.17V38.83A2.17,2.17,0,0,0,2.17,41H7.24a2.13,2.13,0,0,1,1.95,1.23,25.25,25.25,0,0,0,2.55,4.39,2.13,2.13,0,0,1,.09,2.31L9.29,53.34a2.17,2.17,0,0,0,.79,3l11.84,6.83a2.11,2.11,0,0,0,1.08.29,2.17,2.17,0,0,0,1.88-1.08L27.41,58a2.14,2.14,0,0,1,1.84-1.09h.21a24.88,24.88,0,0,0,5.08,0h.21A2.14,2.14,0,0,1,36.59,58l2.53,4.39A2.17,2.17,0,0,0,41,63.42a2.11,2.11,0,0,0,1.08-.29L53.92,56.3a2.17,2.17,0,0,0,.79-3l-2.54-4.4a2.15,2.15,0,0,1,.1-2.31,24.92,24.92,0,0,0,2.54-4.4A2.13,2.13,0,0,1,56.76,41h5.07A2.17,2.17,0,0,0,64,38.83V25.17A2.17,2.17,0,0,0,61.83,23H56.76a2.13,2.13,0,0,1-1.95-1.23,25.25,25.25,0,0,0-2.55-4.39,2.13,2.13,0,0,1-.09-2.31l2.54-4.41a2.17,2.17,0,0,0-.79-3L42.08.87A2.11,2.11,0,0,0,41,.58a2.17,2.17,0,0,0-1.88,1.08L36.59,6.05a2.14,2.14,0,0,1-1.84,1.09h-.21a24.88,24.88,0,0,0-5.08,0h-.21a2.14,2.14,0,0,1-1.84-1.09L24.88,1.66A2.17,2.17,0,0,0,23,.58Z" />
|
||||
<circle class="a" cx="32" cy="32" r="11.5" />
|
||||
<path d="M32,21A11,11,0,1,1,21,32,11,11,0,0,1,32,21m0-1A12,12,0,1,0,44,32,12,12,0,0,0,32,20Z" />
|
||||
<svg viewBox="0 0 64 64" class="icon">
|
||||
<path d="M31.6,0.5c8.3,0,14.2,5.6,14.2,15S41.1,32.9,32,32.9s-13.8-8-13.8-17.3s5.9-15,14.2-15"/>
|
||||
<path d="M25.4,33.4c-2.5,4.7-10.5,7.1-16.4,9.7c-2.4,1-4.4,14-1.6,14c7.7,4.4,16.4,6.6,25.2,6.4
|
||||
c8.5,0.3,16.9-2,24.2-6.4c2.8,0,0.8-12.9-1.6-14c-5.9-2.6-13.9-5-16.4-9.7"/>
|
||||
</svg>
|
||||
<h5>Settings</h5>
|
||||
<h5>Me</h5>
|
||||
</div>
|
||||
</nav>
|
||||
<main class="hide-completely">
|
||||
<section class="page hide-completely" id="home_page">
|
||||
<div class="left">
|
||||
<h4>Rupee actions</h4>
|
||||
<sm-carousel class="options-tab" indicator>
|
||||
<div class="grid">
|
||||
<div class="option" onclick="showPopup('cash_transfer')">
|
||||
<svg class="icon" viewBox="0 0 64 64">
|
||||
<path
|
||||
d="M47.28,16.8,29.6,34.64a3.3,3.3,0,0,1-3.59.71L2.5,25.42a3.28,3.28,0,0,1,.26-6.13L59.21.87A3.28,3.28,0,0,1,63.32,5l-18.93,56a3.26,3.26,0,0,1-6.12.18l-6.4-15.68" />
|
||||
</svg>
|
||||
<h4>Send</h4>
|
||||
</div>
|
||||
<div class="option" onclick="showPopup('deposit_rupee')">
|
||||
<svg class="icon" viewBox="0 0 64 64">
|
||||
<title>deposit</title>
|
||||
<path d="M29.58,35.76V60.47H5.13A4.63,4.63,0,0,1,.5,55.83V9.63" />
|
||||
<path d="M59.5,47v8.85a4.63,4.63,0,0,1-4.63,4.64H42.16" />
|
||||
<path
|
||||
d="M49.44,3.53H6.09A5.59,5.59,0,0,0,.5,9.12h0a5.59,5.59,0,0,0,5.59,5.59H38.91l14.38,0a6,6,0,0,1,6.21,6V32" />
|
||||
<path
|
||||
d="M54.39,32h6.08a3,3,0,0,1,3,3V44a3,3,0,0,1-3,3H54.39a7.49,7.49,0,0,1-7.49-7.49v0A7.49,7.49,0,0,1,54.39,32Z" />
|
||||
<polyline points="38.61 44.12 29.54 35.05 20.39 44.2" />
|
||||
</svg>
|
||||
<h4>deposit</h4>
|
||||
</div>
|
||||
<div class="option" onclick="showPopup('withdraw_rupee')">
|
||||
<svg class="icon" viewBox="0 0 64 64">
|
||||
<title>withdraw</title>
|
||||
<path d="M15.18,60.47h-10A4.63,4.63,0,0,1,.5,55.83V9.63" />
|
||||
<line x1="29.42" y1="59.04" x2="29.42" y2="34.34" />
|
||||
<path d="M59.5,47v8.85a4.63,4.63,0,0,1-4.63,4.64H43.62" />
|
||||
<path
|
||||
d="M49.44,3.53H6.09A5.59,5.59,0,0,0,.5,9.12h0a5.59,5.59,0,0,0,5.59,5.59H38.91l14.38,0a6,6,0,0,1,6.21,6V32" />
|
||||
<path
|
||||
d="M54.39,32h6.08a3,3,0,0,1,3,3V44a3,3,0,0,1-3,3H54.39a7.49,7.49,0,0,1-7.49-7.49v0A7.49,7.49,0,0,1,54.39,32Z" />
|
||||
<polyline points="20.39 50.69 29.45 59.76 38.61 50.6" />
|
||||
</svg>
|
||||
<h4>Withdraw</h4>
|
||||
</div>
|
||||
<div class="option" onclick="showPopup('request_rupee')">
|
||||
<svg class="icon request-icon" viewBox="0 0 64 64">
|
||||
<path
|
||||
d="M47.28,16.8,29.6,34.64a3.3,3.3,0,0,1-3.59.71L2.5,25.42a3.28,3.28,0,0,1,.26-6.13L59.21.87A3.28,3.28,0,0,1,63.32,5l-18.93,56a3.26,3.26,0,0,1-6.12.18l-6.4-15.68" />
|
||||
</svg>
|
||||
<h4>Request</h4>
|
||||
</div>
|
||||
<section class="options-tab">
|
||||
<div class="option" onclick="showPopup('cash_transfer')">
|
||||
<svg class="icon" viewBox="0 0 64 64">
|
||||
<path
|
||||
d="M47.28,16.8,29.6,34.64a3.3,3.3,0,0,1-3.59.71L2.5,25.42a3.28,3.28,0,0,1,.26-6.13L59.21.87A3.28,3.28,0,0,1,63.32,5l-18.93,56a3.26,3.26,0,0,1-6.12.18l-6.4-15.68" />
|
||||
</svg>
|
||||
<h4>Send</h4>
|
||||
</div>
|
||||
<div class="grid">
|
||||
<div class="option" onclick="showPopup('pay_anyone')">
|
||||
<svg class="icon" viewBox="0 0 64 64">
|
||||
<path d="M32,37.75A10.19,10.19,0,1,0,21.81,27.44V46.62" />
|
||||
<rect height="64" width="64" rx="8"></rect>
|
||||
</svg>
|
||||
<h4>pay through cashier</h4>
|
||||
</a>
|
||||
</div>
|
||||
<div class="option" onclick="showPopup('deposit_rupee')">
|
||||
<svg class="icon" viewBox="0 0 64 64">
|
||||
<title>deposit</title>
|
||||
<path d="M29.58,35.76V60.47H5.13A4.63,4.63,0,0,1,.5,55.83V9.63" />
|
||||
<path d="M59.5,47v8.85a4.63,4.63,0,0,1-4.63,4.64H42.16" />
|
||||
<path
|
||||
d="M49.44,3.53H6.09A5.59,5.59,0,0,0,.5,9.12h0a5.59,5.59,0,0,0,5.59,5.59H38.91l14.38,0a6,6,0,0,1,6.21,6V32" />
|
||||
<path
|
||||
d="M54.39,32h6.08a3,3,0,0,1,3,3V44a3,3,0,0,1-3,3H54.39a7.49,7.49,0,0,1-7.49-7.49v0A7.49,7.49,0,0,1,54.39,32Z" />
|
||||
<polyline points="38.61 44.12 29.54 35.05 20.39 44.2" />
|
||||
</svg>
|
||||
<h4>deposit</h4>
|
||||
</div>
|
||||
</sm-carousel>
|
||||
<div class="option" onclick="showPopup('withdraw_rupee')">
|
||||
<svg class="icon" viewBox="0 0 64 64">
|
||||
<title>withdraw</title>
|
||||
<path d="M15.18,60.47h-10A4.63,4.63,0,0,1,.5,55.83V9.63" />
|
||||
<line x1="29.42" y1="59.04" x2="29.42" y2="34.34" />
|
||||
<path d="M59.5,47v8.85a4.63,4.63,0,0,1-4.63,4.64H43.62" />
|
||||
<path
|
||||
d="M49.44,3.53H6.09A5.59,5.59,0,0,0,.5,9.12h0a5.59,5.59,0,0,0,5.59,5.59H38.91l14.38,0a6,6,0,0,1,6.21,6V32" />
|
||||
<path
|
||||
d="M54.39,32h6.08a3,3,0,0,1,3,3V44a3,3,0,0,1-3,3H54.39a7.49,7.49,0,0,1-7.49-7.49v0A7.49,7.49,0,0,1,54.39,32Z" />
|
||||
<polyline points="20.39 50.69 29.45 59.76 38.61 50.6" />
|
||||
</svg>
|
||||
<h4>Withdraw</h4>
|
||||
</div>
|
||||
<div class="option" onclick="showPopup('request_rupee')">
|
||||
<svg class="icon request-icon" viewBox="0 0 64 64">
|
||||
<path
|
||||
d="M47.28,16.8,29.6,34.64a3.3,3.3,0,0,1-3.59.71L2.5,25.42a3.28,3.28,0,0,1,.26-6.13L59.21.87A3.28,3.28,0,0,1,63.32,5l-18.93,56a3.26,3.26,0,0,1-6.12.18l-6.4-15.68" />
|
||||
</svg>
|
||||
<h4>Request</h4>
|
||||
</div>
|
||||
<div class="option" onclick="showPopup('pay_anyone')">
|
||||
<svg class="icon" viewBox="0 0 64 64">
|
||||
<path d="M32,37.75A10.19,10.19,0,1,0,21.81,27.44V46.62" />
|
||||
<rect height="64" width="64" rx="8"></rect>
|
||||
</svg>
|
||||
<h4>pay through cashier</h4>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="user-panel">
|
||||
<h5 class="light-text">My FLO ID</h5>
|
||||
<div class="copy-row">
|
||||
<h4 class="user-flo-id copy"></h4>
|
||||
<svg class="icon" onclick="copyToClipboard(this.parentNode)" viewBox="0 0 64 64">
|
||||
<title>Copy</title>
|
||||
<rect x="16" y="16" width="48" height="48" rx="6" />
|
||||
<path d="M.5,47.52V6.5a6,6,0,0,1,6-6h41" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="flex align-items space-between">
|
||||
<h4>Balance</h4>
|
||||
<h4>My Balances</h4>
|
||||
<sm-button class="small round" onclick="refresh_balance(this)">Check Balance</sm-button>
|
||||
</div>
|
||||
<div class="display-balance grid">
|
||||
<div class="balance">
|
||||
<h5>Rupee</h5>
|
||||
<h4 class="token-balance">0</h4>
|
||||
<h5>Rupee</h5>
|
||||
</div>
|
||||
<div class="balance">
|
||||
<h5>Unconfirmed Rupee</h5>
|
||||
<h4 class="uncnf-token-balance">0</h4>
|
||||
<h5>In-process</h5>
|
||||
</div>
|
||||
<div class="balance">
|
||||
<h4 class="flo-balance">0</h4>
|
||||
<h5>FLO</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -682,17 +666,8 @@
|
||||
</sm-tab-panels>
|
||||
</div>
|
||||
<div class="user-panel">
|
||||
<h4 class="user-type">User</h4>
|
||||
<div class="copy-row">
|
||||
<h4 class="user-flo-id copy"></h4>
|
||||
<svg class="icon" onclick="copyToClipboard(this.parentNode)" viewBox="0 0 64 64">
|
||||
<title>Copy</title>
|
||||
<rect x="16" y="16" width="48" height="48" rx="6" />
|
||||
<path d="M.5,47.52V6.5a6,6,0,0,1,6-6h41" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="flex align-items space-between">
|
||||
<h4>Balance</h4>
|
||||
<h4>My Balances</h4>
|
||||
<sm-button class="small round" onclick="refresh_balance(this)">Check Balance</sm-button>
|
||||
</div>
|
||||
<div class="display-balance grid">
|
||||
@ -791,16 +766,18 @@
|
||||
</section>
|
||||
<section id="settings_page" class="page hide-completely">
|
||||
<h3 class="bottom-margin">Settings<h3>
|
||||
<h4>My FLO ID</h4>
|
||||
<div class="copy-row">
|
||||
<h4 class="user-flo-id copy"></h4>
|
||||
<svg class="icon" onclick="copyToClipboard(this.parentNode)" viewBox="0 0 64 64">
|
||||
<title>Copy</title>
|
||||
<rect x="16" y="16" width="48" height="48" rx="6" />
|
||||
<path d="M.5,47.52V6.5a6,6,0,0,1,6-6h41" />
|
||||
</svg>
|
||||
</div>
|
||||
<button class="primary-btn top-margin" onclick="signOut()">Sign out</button>
|
||||
<section>
|
||||
<h4>My FLO ID</h4>
|
||||
<div class="copy-row">
|
||||
<h4 class="user-flo-id copy"></h4>
|
||||
<svg class="icon" onclick="copyToClipboard(this.parentNode)" viewBox="0 0 64 64">
|
||||
<title>Copy</title>
|
||||
<rect x="16" y="16" width="48" height="48" rx="6" />
|
||||
<path d="M.5,47.52V6.5a6,6,0,0,1,6-6h41" />
|
||||
</svg>
|
||||
</div>
|
||||
</section>
|
||||
<button class="primary-btn top-margin" onclick="signOut()">Sign out</button>
|
||||
<h4>My UPIs</h4>
|
||||
<div class="upi-container"></div>
|
||||
<div class="empty-state">Add UPI address for easier access during various transactions.</div>
|
||||
@ -1489,8 +1466,8 @@
|
||||
const currentYear = new Date().getFullYear()
|
||||
function formatedTime(time, relative) {
|
||||
try {
|
||||
if(time.indexOf('_'))
|
||||
time = time.split('_')[0]
|
||||
if(String(time).indexOf('_'))
|
||||
time = String(time).split('_')[0]
|
||||
let timeFrag = new Date(parseInt(time)).toString().split(' '),
|
||||
day = timeFrag[0],
|
||||
month = timeFrag[1],
|
||||
@ -1674,7 +1651,7 @@
|
||||
let parent = e.target.closest('.request'),
|
||||
paymentRequestId = parent.dataset.paymentRequestId;
|
||||
if (await confirmation(
|
||||
`Do want to decline this request? This will remove the request.`)) {
|
||||
`Do want to decline this request?`)) {
|
||||
const all_reqs = floDapps.getNextGeneralData(token_app.master_configurations
|
||||
.TYPE_REQUEST_PAYMENT, "0").reverse();
|
||||
|
||||
@ -11933,13 +11910,13 @@
|
||||
if (typeof get_user_unconfirmed_rupee_balance == "number" && !isNaN(get_user_unconfirmed_rupee_balance)) {
|
||||
document.querySelectorAll('.uncnf-token-balance').forEach(elem => elem.textContent = get_user_unconfirmed_rupee_balance);
|
||||
}
|
||||
/*
|
||||
|
||||
const get_user_flo_balance = await floBlockchainAPI.getBalance(myFloID)
|
||||
console.log(get_user_flo_balance)
|
||||
if (typeof get_user_flo_balance !== "number" || isNaN(get_user_flo_balance)) {
|
||||
get_user_flo_balance = 0;
|
||||
}
|
||||
document.querySelectorAll('.flo-balance').forEach(elem => elem.textContent = get_user_flo_balance);*/
|
||||
document.querySelectorAll('.flo-balance').forEach(elem => elem.textContent = get_user_flo_balance);
|
||||
}
|
||||
if (refreshButton) {
|
||||
notify('Balance Updated')
|
||||
@ -12378,7 +12355,6 @@
|
||||
withdrawActivityContainer.append(frag)
|
||||
|
||||
for (cashier_message of pay_thru_cashier_msg) {
|
||||
console.log(cashier_message)
|
||||
let {
|
||||
receiver_flo_id,
|
||||
upi_txid,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user