From 39369e2376771bf6b37b8dc0d0c204d503fd78b5 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Wed, 9 Sep 2020 02:31:29 +0530 Subject: [PATCH] UI changes --- components.js | 8 +- css/main.css | 92 +++-- css/main.min.css | 2 +- css/main.scss | 94 ++--- index.html | 897 +++++++++++++++++++++++++---------------------- 5 files changed, 564 insertions(+), 529 deletions(-) diff --git a/components.js b/components.js index 4bc3422..863d5cb 100644 --- a/components.js +++ b/components.js @@ -690,6 +690,7 @@ text-align: center; transition: color 0.3s; text-transform: capitalize; font-family: var(--font-family); +height: 100%; } @media (hover: hover){ :host(.active) .tab{ @@ -1933,7 +1934,8 @@ background: rgba(var(--text-color), 1); box-shadow: 0 0.2rem 0.2rem #00000020, 0 0.5rem 1rem #00000040; -webkit-tap-highlight-color: transparent; -transform: scale(0) +transform: scale(0); +z-index: 1; } .hide{ pointer-events: none; @@ -1950,9 +1952,10 @@ right: 1rem; } .left,.right{ position: absolute; -width: 2rem; +width: 3rem; height: 100%; transition: opacity 0.3s; +z-index: 1; } .left{ background: linear-gradient(to left, transparent, rgba(var(--foreground-color), 0.6)) @@ -2727,6 +2730,7 @@ height: 0.15rem; border-radius: 1rem 1rem 0 0; background: var(--accent-color); transition: transform 0.3s, width 0.3s; +pointer-events: none; } :host([variant="tab"]) .indicator{ height: 100%; diff --git a/css/main.css b/css/main.css index d211a2f..db4d79d 100644 --- a/css/main.css +++ b/css/main.css @@ -375,16 +375,16 @@ textarea { color: var(--accent-color); } -.container:empty ~ .empty { +*:empty + .empty-state { display: grid; } -.empty { +.empty-state { display: none; place-items: center; width: 100%; } -.empty svg { +.empty-state svg { stroke: rgba(var(--text-color), 0.8); height: 12em; width: 12em; @@ -526,7 +526,7 @@ form { margin-bottom: 1em; } -#sign_in_popup h1 { +#sign_in_popup h3 { margin-top: 2rem; } #sign_in_popup h4 { @@ -598,15 +598,13 @@ form { margin: 0.3em; border-radius: 0.4em; color: rgba(var(--text-color), 0.8); - font-size: 0.9em; - text-transform: uppercase; + font-size: 0.8em; + text-transform: capitalize; width: 100%; - letter-spacing: 0.08em; + font-weight: 600; } #navbar .navbar-item h5 { - font-size: 0.6em; margin-top: 0.4em; - font-weight: 700; } #navbar .active { color: var(--accent-color); @@ -631,51 +629,36 @@ form { #home_page p { margin-bottom: 3rem; } +#home_page .user-panel { + margin: 0 1.5rem; +} -#user_panel { +.user-panel { position: relative; padding: 1.5rem; - margin: 0 1.5rem; border-radius: 0.6rem; - background: linear-gradient(160deg, #ffffff10 50%, #00000040 80%), linear-gradient(-120deg, #ffffff10 50%, #00000040 10%), rgba(var(--text-color), 0.8); - box-shadow: 0 0.1rem 0.6rem #00000020; + background: radial-gradient(circle at top left, #EF6C00 20%, #C51162 30%, #4A148C 40%, #251f44); + box-shadow: 0 0.1rem 0.1rem #00000020, 0 2rem 1rem -1rem #00000040; color: rgba(var(--foreground-color), 1); + align-self: flex-start; } -#user_panel .icon { +.user-panel .icon { stroke: rgba(var(--foreground-color), 1); } -#user_panel::before, #user_panel::after { - content: ""; - position: absolute; - height: 2rem; - bottom: 0.8rem; - box-shadow: 0 1rem 0.2rem #00000030; - z-index: -1; - border-radius: 0.4rem; -} -#user_panel::before { - left: 0; - right: 50%; - transform: rotate(-3deg); -} -#user_panel::after { - left: 50%; - right: 0; - transform: rotate(3deg); -} -#user_panel .copy-row { +.user-panel .copy-row { margin-bottom: 1.5rem; + text-shadow: 0.1rem 0.1rem 0.1rem #000000; } -#user_panel .grid { +.user-panel .grid { margin-top: 0.5rem; grid-template-columns: 1fr 1fr; } -#user_panel .grid h5 { +.user-panel .grid h5 { font-weight: 500; color: rgba(var(--foreground-color), 0.8); } -#user_type { +.user-type { font-weight: 500; color: rgba(var(--foreground-color), 0.9); } @@ -755,7 +738,17 @@ sm-tab-header { position: sticky; top: 0; background: rgba(var(--foreground-color), 1); - z-index: 1; + z-index: 2; + margin-bottom: 1rem; + border-bottom: solid 1px rgba(var(--text-color), 0.2); +} + +sm-tab::part(tab) { + padding: 0.8rem 0; +} + +sm-panel { + width: 100%; } .request { @@ -968,7 +961,7 @@ sm-tab-header { align-items: center; flex-direction: column; } -#main_loader button { +#main_loader sm-button { margin-left: 0; margin-top: 1.5rem; } @@ -993,14 +986,23 @@ sm-tab-header { word-spacing: 0.16em; } +#upi_txId_section .copy-row { + margin-bottom: 1.5rem; +} + +#send_amount_to_deposit { + margin-bottom: 0 !important; +} + @media only screen and (max-width: 640px) { - #home_page { + #home_page, #deposit { display: grid; gap: 1.5rem; grid-template-areas: "." "left"; grid-template-columns: minmax(0, 1fr); + align-items: flex-start; } - #home_page .left { + #home_page .left, #deposit .left { grid-area: left; } @@ -1047,9 +1049,6 @@ sm-tab-header { height: 1.4rem; width: 1.4rem; } - #navbar .navbar-item h5 { - font-size: 0.8em; - } #navbar .navbar-item:hover .icon { stroke: rgba(var(--text-color), 1); } @@ -1075,14 +1074,11 @@ sm-tab-header { display: inline-flex; } - #home_page { + #home_page, #deposit { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr) 24rem; } - #activity_page sm-tab-header { - margin-bottom: 1rem; - } } @media only screen and (min-width: 800px) { .complaint { diff --git a/css/main.min.css b/css/main.min.css index 4cca7e7..8cafa5a 100644 --- a/css/main.min.css +++ b/css/main.min.css @@ -1 +1 @@ -.input input,body{color:rgba(var(--text-color),1)}.input,button,textarea{background:rgba(var(--text-color),.1)}.action,.input,button{position:relative}.input .placeholder,.options-tab .option,.request h5,button{text-transform:capitalize}*{box-sizing:border-box;padding:0;margin:0;font-family:Roboto,sans-serif}button,h1,h2,h3,h4,h5{font-weight:600;font-family:Poppins,sans-serif}:root{scroll-behavior:smooth}body{--accent-color:#303F9F;--text-color:17,17,17;--text-color-light:85,85,85;--foreground-color:255,255,255;--background-color:#e8e8e8;--dark-shade:#dadada;background:var(--foreground-color);font-size:16px}a{font-weight:600;text-decoration:none;color:var(--accent-color)}.dark-text{color:#111}h1{font-size:3.5rem}h2{font-size:2rem}h3{font-size:1.5rem}h4{font-size:1rem}h5{font-size:.8rem}p{line-height:1.5;max-width:60ch;color:rgba(var(--text-color),.9)}button{display:inline-flex;align-items:center;justify-content:center;padding:.6rem 1.2rem;cursor:pointer;border-radius:.3rem;color:var(--accent-color);transition:transform .3s;border:none;-webkit-tap-highlight-color:transparent}button:focus{outline:solid thin}button:disabled{cursor:default;background:rgba(var(--text-color),.5)}.action,.action[disabled] .primary-btn{background:0 0}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-cancel-button,input[type=search]::-webkit-search-decoration,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:0;box-shadow:none}::-moz-focus-inner{border:none}.bottom-padding{padding-bottom:1.5rem}.top-padding{padding-top:1em}.bottom-margin{margin-bottom:1.5rem}.top-margin{margin-top:1.5rem}.flex{display:flex}.grid{display:grid}.grid-2{grid-template-columns:auto auto;gap:1em}.align-center{align-items:center}.direction-column{flex-direction:column}.space-between{justify-content:space-between}.label{margin-bottom:.4rem}.light-text{color:rgba(var(--text-color-light),1)}.hide{opacity:0;pointer-events:none}.hide-completely{display:none!important}.action,.request{display:inline-flex}.breakable{word-break:break-all}.separator{padding:.1em}.no-transformations{transform:none!important}.loader{fill:none;stroke-width:10;stroke:var(--accent-color);height:2rem;width:2rem;overflow:visible;stroke-dashoffset:230;stroke-dasharray:230;padding:2px;justify-self:center}#logo,.action{align-items:center}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes load{50%{stroke-dashoffset:0}100%{stroke-dashoffset:-210}}.action{justify-content:center;padding:0}.action h4{padding:.5rem .8rem;font-size:.9rem;clip-path:circle(100%);transition:clip-path .3s;border-radius:.2rem}.action .btn{z-index:2}.action .loader{position:absolute;z-index:1;padding:.4em}.clip{clip-path:circle(0)!important}.animate-loader{animation:load 2.6s infinite,rotate 1s infinite linear}.expand{width:100%}.fade-left{animation:fadeleft .3s}.fade-right{animation:faderight .3s}@keyframes faderight{from{opacity:0;transform:translateX(-1em)}to{opacity:1;transform:none}}@keyframes fadeleft{from{opacity:0;transform:translateX(1em)}to{opacity:1;transform:none}}#logo{display:inline-grid;grid-template-columns:auto 1fr;gap:.6rem .4rem;margin-right:1rem}#logo h4{letter-spacing:.06rem;word-spacing:.12rem}#logo h5{font-weight:400}#logo #main_logo{height:1.6rem;width:1.6rem;fill:rgba(var(--text-color),1);stroke:none}textarea{width:100%;max-width:100%;border:none;border-radius:.2rem;resize:none;font-size:1rem;line-height:1.6;padding:.8rem}.input{display:flex;width:100%;align-items:center;padding:.8em;margin-bottom:1.5em;border-radius:.2rem;border:.1em solid transparent;cursor:text}.input:last-of-type{margin-bottom:0}.input:focus-within{border:.1em solid var(--accent-color)}.input .placeholder{opacity:.6;font-weight:500;font-size:1em;position:absolute;transition:transform .3s ease;transform-origin:left;pointer-events:none;will-change:contents}.input input{flex:1;font-size:1rem;border:none;background:0 0;outline:0}.animate-label input{transform:translateY(.5em)}.animate-label .placeholder{transform:translateY(-60%) scale(.7);opacity:1;color:var(--accent-color)}.btn,.primary-btn{color:rgba(var(--foreground-color),1)}.container:empty~.empty{display:grid}.empty{display:none;place-items:center;width:100%}.empty svg{stroke:rgba(var(--text-color),.8);height:12em;width:12em}.container-header{display:flex;align-items:center;flex-direction:row;width:100%;padding:1rem 0}.container-header h2{flex:1}.container-header button{align-self:center}.btn{background:var(--accent-color);padding:.4em 1em}.back-arrow{stroke:rgba(var(--text-color),1);stroke-width:6;fill:none;height:2rem;padding:.5rem .5rem .5rem 0;cursor:pointer}.card{border-radius:.6rem;padding:1.5em;background:rgba(var(--foreground-color),1)}.solid-background{background:rgba(var(--foreground-color),1)!important}form{width:100%}.popup-container{display:grid;position:fixed;top:0;bottom:0;left:0;right:0;place-items:center;background:rgba(0,0,0,.4);z-index:10;transition:opacity .3s ease}.popup-container .popup{flex-direction:column;align-self:flex-end;align-items:flex-start;flex-wrap:wrap;width:100%;border-radius:.5rem .5rem 0 0;padding:1.5rem;position:relative;display:flex;background:rgba(var(--foreground-color),1);transform:translateY(100%);transition:transform .3s;box-shadow:0 2rem 2rem rgba(0,0,0,.24);overflow-y:auto}.popup-container .popup h5{margin:.5rem 0}.popup-container .popup button:first-of-type{margin-left:auto}.popup-container .popup .container-header{display:flex;align-items:center;padding:0;margin-bottom:1rem}.popup-container .popup .container-header h4{flex:1}.popup-container .popup .container-header button{width:auto}.popup-container .popup .container-header .icon{cursor:pointer;padding-right:.4rem;margin-right:.3rem;stroke-width:8}.popup-container .popup p{margin-bottom:1.5rem!important}#confirmation,#prompt{flex-direction:column}#confirmation p,#prompt p{margin:1rem}#confirmation h4,#prompt h4{font-weight:500;margin-bottom:1.5rem}#confirmation .input,#prompt .input{margin-bottom:1rem}#confirmation .btns,#prompt .btns{display:flex;justify-content:right;width:100%}#confirmation .btns button,#prompt .btns button{background:0 0}#confirmation .btns button:first-of-type,#prompt .btns button:first-of-type{margin-right:.6em}.refresh{margin-top:.6em;margin-bottom:1em}#sign_in_popup h1{margin-top:2rem}#sign_in_popup h4{font-weight:500;margin-bottom:3rem}#sign_in_popup button{margin:1rem 0}#sign_in_popup p{margin-top:1rem;margin-bottom:0!important}#sign_in_popup .input{background:rgba(var(--text-color),.1)}.primary-btn{background:var(--accent-color);justify-content:center}#main_header{align-items:center;padding:1rem;justify-content:space-between}#display_balance .icon{height:1.4rem;width:1.4rem;padding:.3rem;stroke-width:10;cursor:pointer}.icon{height:1.2rem;width:1.2rem;fill:none;stroke:rgba(var(--text-color),.8);stroke-width:6;overflow:visible;stroke-linecap:round;stroke-linejoin:round}#navbar{display:flex;flex-direction:row;align-items:center;justify-content:space-evenly;position:fixed;left:0;right:0;bottom:0;top:auto;border-top:solid 1px rgba(var(--text-color),.2);border-right:none;z-index:3;background:rgba(var(--foreground-color),1)}#navbar .navbar-item{position:relative;text-align:center;cursor:pointer;padding:.3em;margin:.3em;border-radius:.4em;color:rgba(var(--text-color),.8);font-size:.9em;text-transform:uppercase;width:100%;letter-spacing:.08em}#navbar .navbar-item h5{font-size:.6em;margin-top:.4em;font-weight:700}#navbar .active{color:var(--accent-color)}#navbar .active .icon{stroke:var(--accent-color)}.banking{stroke-width:4}#user_panel .icon,.options-tab .option .icon{stroke:rgba(var(--foreground-color),1)}#home_page{padding:1rem 0 4rem}#home_page .left h4,#home_page sm-carousel::part(carousel){padding:0 1.5rem}#home_page p{margin-bottom:3rem}#user_panel{position:relative;padding:1.5rem;margin:0 1.5rem;border-radius:.6rem;background:linear-gradient(160deg,#fff10 50%,#00040 80%),linear-gradient(-120deg,#fff10 50%,#00040 10%),rgba(var(--text-color),.8);box-shadow:0 .1rem .6rem #00020;color:rgba(var(--foreground-color),1)}#user_panel::after,#user_panel::before{content:"";position:absolute;height:2rem;bottom:.8rem;box-shadow:0 1rem .2rem #00030;z-index:-1;border-radius:.4rem}#user_panel::before{left:0;right:50%;transform:rotate(-3deg)}#user_panel::after{left:50%;right:0;transform:rotate(3deg)}#user_panel .copy-row{margin-bottom:1.5rem}#user_panel .grid{margin-top:.5rem;grid-template-columns:1fr 1fr}#user_panel .grid h5{font-weight:500;color:rgba(var(--foreground-color),.8)}#user_type{font-weight:500;color:rgba(var(--foreground-color),.9)}.options-tab{margin:1rem 0}.options-tab .option{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;border-radius:.4rem;margin-right:1rem;margin-bottom:1rem;width:5rem;min-width:5rem;transition:transform .3s;cursor:pointer}.options-tab .option .icon{height:3rem;width:3rem;padding:.8rem;border-radius:4rem;margin-bottom:.5rem}.options-tab .option h4{font-size:.9rem;font-weight:500}.options-tab .option:active{transform:scale(.95)}.options-tab .option:nth-of-type(1) .icon{background:#D32F2F}.options-tab .option:nth-of-type(2) .icon{background:#7B1FA2}.options-tab .option:nth-of-type(3) .icon{background:#303F9F}.options-tab .option:nth-of-type(4) .icon{background:#1976D2}.options-tab .option:nth-of-type(5) .icon{background:#388E3C}.notification-dot::after{content:"";position:absolute;z-index:1;top:0;right:0;height:.6em;width:.6em;background-color:#E53935;border-radius:.4em;transition:transform .3s}.shrink.notification-dot::after{transform:scale(0)}#deposit .container-header,#withdraw .container-header{background:linear-gradient(rgba(var(--foreground-color),1) 90%,transparent)}.page .container-header,sm-tab-header{top:0;background:rgba(var(--foreground-color),1)}sm-tab-header{position:sticky;z-index:1}.request{flex-direction:column;padding:1.5em;border-radius:.4em;border:1px solid}.request h5{margin-bottom:.2rem}.request h3,.request h4{margin-bottom:1.5rem}.copy-row h4,.request button{margin-bottom:0}.request h4:last-of-type{margin-bottom:0}.request .action{align-self:flex-end}.request .amount{font-size:1.4em}.request button{width:auto;align-self:flex-end;margin-top:1.5rem}.request .copy-row{margin-bottom:1.5rem}.request .flex{align-items:center;justify-content:flex-end;margin-top:1.5rem}.request .flex button,.request .flex h5{margin:0}.deposited{color:#007732}.deposited::before{content:"+ "}.decline-request{margin-right:.5rem!important}.withdrawn{color:#d43125}.withdrawn::before{content:"- "}.container{display:grid;gap:1em;width:100%;grid-template-columns:repeat(auto-fill,minmax(16rem,1fr))}.copy-row,.page .container-header{display:grid;grid-template-columns:1fr auto}.page{padding:1rem 1.5rem;padding-bottom:4rem}.page .container-header{grid-template-areas:". ." "search search";gap:1rem;will-change:auto;z-index:2}.page .container-header .search{grid-area:search}.page .container-header .search input{padding:1em;border:none;width:100%;background:var(--dark-shade);font-size:1rem;font-weight:500;color:rgba(var(--text-color),1);border-radius:.2em}.page .container-header .search input:focus{outline:0;background:rgba(var(--text-color-light),.2)}.copy-row{align-items:center;gap:.5rem}.copy-row .icon{cursor:pointer;padding:.4rem;height:1.8rem;width:1.8rem}.copy-row .copy{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.time{margin-bottom:1.5rem!important;font-weight:500}#report_popup{width:32rem}#profile_page{display:flex;flex-direction:column}#profile_page button{align-self:flex-start}.complaint{display:grid;gap:1.5rem 0}.complaint .complaint-actions{align-items:center;margin:1.5rem 0 0}#helpline_page sm-select,.complaint .processed,.complaint .unprocessed{margin-bottom:1.5rem}.complaint .processed{color:#007732}.complaint .unprocessed{color:#d43125}.complaint button .icon{padding:.2rem;margin-right:.5rem;stroke:var(--accent-color);stroke-width:8}.complaints-container{padding-top:1.5rem;display:grid;align-items:flex-start;gap:1.5rem}.complaint-placeholder{animation:pulse infinite .6s alternate}.complaint-placeholder h4,.complaint-placeholder h5{border-radius:.2rem}.complaint-placeholder h5{background:rgba(var(--text-color),.1);padding:.5rem .6rem}.complaint-placeholder h4{background:rgba(var(--text-color),.2);padding:.8rem}.complaint-placeholder .demo-btn{padding:.8rem 3rem}@keyframes pulse{from{opacity:.4}to{opacity:1}}#main_loader{box-shadow:none;background:0 0;text-align:center;align-items:center;flex-direction:column}#main_loader button{margin-left:0;margin-top:1.5rem}#main_loader svg{height:2rem;width:2rem;stroke:var(--accent-color);stroke-width:6;fill:none;overflow:visible;stroke-linecap:round;stroke-dashoffset:210;stroke-dasharray:210;justify-self:center;align-self:center;margin-bottom:2rem}#main_loader h3{width:100%;text-transform:uppercase;font-weight:400;word-spacing:.16em}@media only screen and (max-width:640px){#home_page{display:grid;gap:1.5rem;grid-template-areas:"." "left";grid-template-columns:minmax(0,1fr)}#home_page .left{grid-area:left}sm-select{width:100%}}@media only screen and (min-width:640px){body{padding:0 2rem;margin-left:6rem}.popup-container .popup{transform:translateY(0) scale(.96);width:24rem;align-self:center;border-radius:.4rem;height:auto}#confirmation{width:24rem}#navbar{justify-content:center;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),.2)}#navbar .navbar-item{width:auto;padding:1.4em 0;margin:.6em}#navbar .navbar-item .icon{height:1.4rem;width:1.4rem}#navbar .navbar-item h5{font-size:.8em}#navbar .navbar-item:hover .icon{stroke:rgba(var(--text-color),1)}#navbar .navbar-item:hover h5{color:rgba(var(--text-color),1)}#navbar .navbar-item.active:hover .icon{stroke:var(--accent-color)}#navbar .navbar-item.active:hover h5{color:var(--accent-color)}.page{padding-bottom:2em}#sign_in_popup{width:24rem}#profile_page .copy-row{display:inline-flex}#home_page{display:grid;gap:1.5rem;grid-template-columns:minmax(0,1fr) 24rem}#activity_page sm-tab-header{margin-bottom:1rem}}@media only screen and (min-width:800px){.complaint{gap:0 1.5rem;grid-template-columns:1fr 1fr;grid-template-areas:". . " "header header"}.complaint .complaint-actions{grid-area:header}.complaint .left{border-right:1px solid rgba(var(--text-color),.2);padding-right:1.5rem}.complaint .right{display:flex;justify-content:center;flex-direction:column}}@media only screen and (min-width:1920px){body{font-size:24px}}@media only screen and (min-width:2048px){body{font-size:24px}}@media only screen and (max-width:320px){body{font-size:14px}}@media (prefers-color-scheme:dark){:root{--text-color:238,238,238;--text-color-light:170,170,170;--foreground-color:26,26,26;--background-color:#111;--dark-shade:#1a1a1a}}@media (prefers-color-scheme:light){:root{--text-color:17,17,17;--text-color-light:85,85,85;--foreground-color:255,255,255;--background-color:#e8e8e8;--dark-shade:#dadada}}@media (prefers-color-scheme:no-preference){:root{--text-color:17,17,17;--text-color-light:85,85,85;--foreground-color:255,255,255;--background-color:#e8e8e8;--dark-shade:#dadada}} \ No newline at end of file +#navbar .navbar-item,.input .placeholder,.options-tab .option,.request h5,button{text-transform:capitalize}.input,button,textarea{background:rgba(var(--text-color),.1)}.action,button{position:relative}#main_loader svg,.container-header button{align-self:center}*{box-sizing:border-box;padding:0;margin:0;font-family:Roboto,sans-serif}button,h1,h2,h3,h4,h5{font-weight:600;font-family:Poppins,sans-serif}:root{scroll-behavior:smooth}body{--accent-color:#303F9F;--text-color:17,17,17;--text-color-light:85,85,85;--foreground-color:255,255,255;--background-color:#e8e8e8;--dark-shade:#dadada;background:var(--foreground-color);color:rgba(var(--text-color),1);font-size:16px}a{font-weight:600;text-decoration:none;color:var(--accent-color)}.dark-text{color:#111}h1{font-size:3.5rem}h2{font-size:2rem}h3{font-size:1.5rem}h4{font-size:1rem}h5{font-size:.8rem}p{line-height:1.5;max-width:60ch;color:rgba(var(--text-color),.9)}button{display:inline-flex;align-items:center;justify-content:center;padding:.6rem 1.2rem;cursor:pointer;border-radius:.3rem;color:var(--accent-color);transition:transform .3s;border:none;-webkit-tap-highlight-color:transparent}button:focus{outline:solid thin}button:disabled{cursor:default;background:rgba(var(--text-color),.5)}.action,.action[disabled] .primary-btn{background:0 0}button:disabled~.loader{opacity:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.request .flex,.request button,.top-margin{margin-top:1.5rem}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-cancel-button,input[type=search]::-webkit-search-decoration,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:0;box-shadow:none}::-moz-focus-inner{border:none}.bottom-padding{padding-bottom:1.5rem}.top-padding{padding-top:1em}.bottom-margin{margin-bottom:1.5rem}.flex{display:flex}.grid{display:grid}.grid-2{grid-template-columns:auto auto;gap:1em}.align-center{align-items:center}.direction-column{flex-direction:column}.space-between{justify-content:space-between}.label{margin-bottom:.4rem}.light-text{color:rgba(var(--text-color-light),1)}.hide{opacity:0;pointer-events:none}.hide-completely{display:none!important}.action,.request{display:inline-flex}.breakable{word-break:break-all}.separator{padding:.1em}.no-transformations{transform:none!important}.loader{fill:none;stroke-width:10;stroke:var(--accent-color);height:2rem;width:2rem;overflow:visible;stroke-dashoffset:230;stroke-dasharray:230;padding:2px;justify-self:center}#logo,.action{align-items:center}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes load{50%{stroke-dashoffset:0}100%{stroke-dashoffset:-210}}.action{justify-content:center;padding:0}.action h4{padding:.5rem .8rem;font-size:.9rem;clip-path:circle(100%);transition:clip-path .3s;border-radius:.2rem}.action .btn{z-index:2}.action .loader{position:absolute;z-index:1;padding:.4em}.clip{clip-path:circle(0)!important}.animate-loader{animation:load 2.6s infinite,rotate 1s infinite linear}.expand{width:100%}.fade-left{animation:fadeleft .3s}.fade-right{animation:faderight .3s}@keyframes faderight{from{opacity:0;transform:translateX(-1em)}to{opacity:1;transform:none}}@keyframes fadeleft{from{opacity:0;transform:translateX(1em)}to{opacity:1;transform:none}}#logo{display:inline-grid;grid-template-columns:auto 1fr;gap:.6rem .4rem;margin-right:1rem}#logo h4{letter-spacing:.06rem;word-spacing:.12rem}#logo h5{font-weight:400}#logo #main_logo{height:1.6rem;width:1.6rem;fill:rgba(var(--text-color),1);stroke:none}textarea{width:100%;max-width:100%;border:none;border-radius:.2rem;resize:none;font-size:1rem;line-height:1.6;padding:.8rem}.input{display:flex;width:100%;align-items:center;position:relative;padding:.8em;margin-bottom:1.5em;border-radius:.2rem;border:.1em solid transparent;cursor:text}.input:last-of-type{margin-bottom:0}.input:focus-within{border:.1em solid var(--accent-color)}.input .placeholder{opacity:.6;font-weight:500;font-size:1em;position:absolute;transition:transform .3s ease;transform-origin:left;pointer-events:none;will-change:contents}.input input{flex:1;font-size:1rem;border:none;background:0 0;outline:0;color:rgba(var(--text-color),1)}.animate-label input{transform:translateY(.5em)}.animate-label .placeholder{transform:translateY(-60%) scale(.7);opacity:1;color:var(--accent-color)}.btn,.primary-btn{color:rgba(var(--foreground-color),1)}:empty+.empty-state{display:grid}.empty-state{display:none;place-items:center;width:100%}.empty-state svg{stroke:rgba(var(--text-color),.8);height:12em;width:12em}.container-header{display:flex;align-items:center;flex-direction:row;width:100%;padding:1rem 0}.container-header h2{flex:1}.btn{background:var(--accent-color);padding:.4em 1em}.back-arrow{stroke:rgba(var(--text-color),1);stroke-width:6;fill:none;height:2rem;padding:.5rem .5rem .5rem 0;cursor:pointer}.card{border-radius:.6rem;padding:1.5em;background:rgba(var(--foreground-color),1)}.solid-background{background:rgba(var(--foreground-color),1)!important}form{width:100%}.popup-container{display:grid;position:fixed;top:0;bottom:0;left:0;right:0;place-items:center;background:rgba(0,0,0,.4);z-index:10;transition:opacity .3s ease}.popup-container .popup{flex-direction:column;align-self:flex-end;align-items:flex-start;flex-wrap:wrap;width:100%;border-radius:.5rem .5rem 0 0;padding:1.5rem;position:relative;display:flex;background:rgba(var(--foreground-color),1);transform:translateY(100%);transition:transform .3s;box-shadow:0 2rem 2rem rgba(0,0,0,.24);overflow-y:auto}.popup-container .popup h5{margin:.5rem 0}.popup-container .popup button:first-of-type{margin-left:auto}.popup-container .popup .container-header{display:flex;align-items:center;padding:0;margin-bottom:1rem}.popup-container .popup .container-header h4{flex:1}.popup-container .popup .container-header button{width:auto}.popup-container .popup .container-header .icon{cursor:pointer;padding-right:.4rem;margin-right:.3rem;stroke-width:8}.popup-container .popup p{margin-bottom:1.5rem!important}#confirmation,#prompt{flex-direction:column}#confirmation p,#prompt p{margin:1rem}#confirmation h4,#prompt h4{font-weight:500;margin-bottom:1.5rem}#confirmation .input,#prompt .input{margin-bottom:1rem}#confirmation .btns,#prompt .btns{display:flex;justify-content:right;width:100%}#confirmation .btns button,#prompt .btns button{background:0 0}#confirmation .btns button:first-of-type,#prompt .btns button:first-of-type{margin-right:.6em}.refresh{margin-top:.6em;margin-bottom:1em}#sign_in_popup h3{margin-top:2rem}#sign_in_popup h4{font-weight:500;margin-bottom:3rem}#sign_in_popup button{margin:1rem 0}#sign_in_popup p{margin-top:1rem;margin-bottom:0!important}#sign_in_popup .input{background:rgba(var(--text-color),.1)}.primary-btn{background:var(--accent-color);justify-content:center}#main_header{align-items:center;padding:1rem;justify-content:space-between}#display_balance .icon{height:1.4rem;width:1.4rem;padding:.3rem;stroke-width:10;cursor:pointer}.icon{height:1.2rem;width:1.2rem;fill:none;stroke:rgba(var(--text-color),.8);stroke-width:6;overflow:visible;stroke-linecap:round;stroke-linejoin:round}#navbar .active .icon,.complaint button .icon{stroke:var(--accent-color)}#navbar{display:flex;flex-direction:row;align-items:center;justify-content:space-evenly;position:fixed;left:0;right:0;bottom:0;top:auto;border-top:solid 1px rgba(var(--text-color),.2);border-right:none;z-index:3;background:rgba(var(--foreground-color),1)}#navbar .navbar-item{position:relative;text-align:center;cursor:pointer;padding:.3em;margin:.3em;border-radius:.4em;color:rgba(var(--text-color),.8);font-size:.8em;width:100%;font-weight:600}#navbar .navbar-item h5{margin-top:.4em}#navbar .active{color:var(--accent-color)}.banking{stroke-width:4}.options-tab .option .icon,.user-panel .icon{stroke:rgba(var(--foreground-color),1)}#home_page{padding:1rem 0 4rem}#home_page .left h4,#home_page sm-carousel::part(carousel){padding:0 1.5rem}#home_page p{margin-bottom:3rem}#home_page .user-panel{margin:0 1.5rem}.user-panel{position:relative;padding:1.5rem;border-radius:.6rem;background:radial-gradient(circle at top left,#EF6C00 20%,#C51162 30%,#4A148C 40%,#251f44);box-shadow:0 .1rem .1rem #00020,0 2rem 1rem -1rem #00040;color:rgba(var(--foreground-color),1);align-self:flex-start}.request .action,.request button{align-self:flex-end}.user-panel .copy-row{margin-bottom:1.5rem;text-shadow:.1rem .1rem .1rem #000}.user-panel .grid{margin-top:.5rem;grid-template-columns:1fr 1fr}.user-panel .grid h5{font-weight:500;color:rgba(var(--foreground-color),.8)}.user-type{font-weight:500;color:rgba(var(--foreground-color),.9)}.options-tab{margin:1rem 0}.options-tab .option{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;border-radius:.4rem;margin-right:1rem;margin-bottom:1rem;width:5rem;min-width:5rem;transition:transform .3s;cursor:pointer}.options-tab .option .icon{height:3rem;width:3rem;padding:.8rem;border-radius:4rem;margin-bottom:.5rem}.options-tab .option h4{font-size:.9rem;font-weight:500}.options-tab .option:active{transform:scale(.95)}.options-tab .option:nth-of-type(1) .icon{background:#D32F2F}.options-tab .option:nth-of-type(2) .icon{background:#7B1FA2}.options-tab .option:nth-of-type(3) .icon{background:#303F9F}.options-tab .option:nth-of-type(4) .icon{background:#1976D2}.options-tab .option:nth-of-type(5) .icon{background:#388E3C}.notification-dot::after{content:"";position:absolute;z-index:1;top:0;right:0;height:.6em;width:.6em;background-color:#E53935;border-radius:.4em;transition:transform .3s}.shrink.notification-dot::after{transform:scale(0)}#deposit .container-header,#withdraw .container-header{background:linear-gradient(rgba(var(--foreground-color),1) 90%,transparent)}.page .container-header,sm-tab-header{top:0;background:rgba(var(--foreground-color),1);z-index:2}sm-tab-header{position:sticky;margin-bottom:1rem;border-bottom:solid 1px rgba(var(--text-color),.2)}sm-tab::part(tab){padding:.8rem 0}sm-panel{width:100%}.request{flex-direction:column;padding:1.5em;border-radius:.4em;border:1px solid}.request h5{margin-bottom:.2rem}.request h3,.request h4{margin-bottom:1.5rem}.copy-row h4,.request button{margin-bottom:0}.request h4:last-of-type{margin-bottom:0}.request .amount{font-size:1.4em}.request button{width:auto}.request .copy-row{margin-bottom:1.5rem}.request .flex{align-items:center;justify-content:flex-end}.request .flex button,.request .flex h5{margin:0}.deposited{color:#007732}.deposited::before{content:"+ "}.decline-request{margin-right:.5rem!important}.withdrawn{color:#d43125}.withdrawn::before{content:"- "}.container{display:grid;gap:1em;width:100%;grid-template-columns:repeat(auto-fill,minmax(16rem,1fr))}.copy-row,.page .container-header{display:grid;grid-template-columns:1fr auto}.page{padding:1rem 1.5rem;padding-bottom:4rem}.page .container-header{grid-template-areas:". ." "search search";gap:1rem;will-change:auto}.page .container-header .search{grid-area:search}.page .container-header .search input{padding:1em;border:none;width:100%;background:var(--dark-shade);font-size:1rem;font-weight:500;color:rgba(var(--text-color),1);border-radius:.2em}.page .container-header .search input:focus{outline:0;background:rgba(var(--text-color-light),.2)}.copy-row{align-items:center;gap:.5rem}.copy-row .icon{cursor:pointer;padding:.4rem;height:1.8rem;width:1.8rem}.copy-row .copy{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.time{margin-bottom:1.5rem!important;font-weight:500}#report_popup{width:32rem}#profile_page{display:flex;flex-direction:column}#profile_page button{align-self:flex-start}.complaint{display:grid;gap:1.5rem 0}.complaint .complaint-actions{align-items:center;margin:1.5rem 0 0}#helpline_page sm-select,.complaint .processed,.complaint .unprocessed{margin-bottom:1.5rem}.complaint .processed{color:#007732}.complaint .unprocessed{color:#d43125}.complaint button .icon{padding:.2rem;margin-right:.5rem;stroke-width:8}.complaints-container{padding-top:1.5rem;display:grid;align-items:flex-start;gap:1.5rem}.complaint-placeholder{animation:pulse infinite .6s alternate}.complaint-placeholder h4,.complaint-placeholder h5{border-radius:.2rem}.complaint-placeholder h5{background:rgba(var(--text-color),.1);padding:.5rem .6rem}.complaint-placeholder h4{background:rgba(var(--text-color),.2);padding:.8rem}.complaint-placeholder .demo-btn{padding:.8rem 3rem}@keyframes pulse{from{opacity:.4}to{opacity:1}}#main_loader{box-shadow:none;background:0 0;text-align:center;align-items:center;flex-direction:column}#main_loader sm-button{margin-left:0;margin-top:1.5rem}#main_loader svg{height:2rem;width:2rem;stroke:var(--accent-color);stroke-width:6;fill:none;overflow:visible;stroke-linecap:round;stroke-dashoffset:210;stroke-dasharray:210;justify-self:center;margin-bottom:2rem}#main_loader h3{width:100%;text-transform:uppercase;font-weight:400;word-spacing:.16em}#upi_txId_section .copy-row{margin-bottom:1.5rem}#send_amount_to_deposit{margin-bottom:0!important}@media only screen and (max-width:640px){#deposit,#home_page{display:grid;gap:1.5rem;grid-template-areas:"." "left";grid-template-columns:minmax(0,1fr);align-items:flex-start}#deposit .left,#home_page .left{grid-area:left}sm-select{width:100%}}@media only screen and (min-width:640px){body{padding:0 2rem;margin-left:6rem}.popup-container .popup{transform:translateY(0) scale(.96);width:24rem;align-self:center;border-radius:.4rem;height:auto}#confirmation{width:24rem}#navbar{justify-content:center;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),.2)}#navbar .navbar-item{width:auto;padding:1.4em 0;margin:.6em}#navbar .navbar-item .icon{height:1.4rem;width:1.4rem}#navbar .navbar-item:hover .icon{stroke:rgba(var(--text-color),1)}#navbar .navbar-item:hover h5{color:rgba(var(--text-color),1)}#navbar .navbar-item.active:hover .icon{stroke:var(--accent-color)}#navbar .navbar-item.active:hover h5{color:var(--accent-color)}.page{padding-bottom:2em}#sign_in_popup{width:24rem}#profile_page .copy-row{display:inline-flex}#deposit,#home_page{display:grid;gap:1.5rem;grid-template-columns:minmax(0,1fr) 24rem}}@media only screen and (min-width:800px){.complaint{gap:0 1.5rem;grid-template-columns:1fr 1fr;grid-template-areas:". . " "header header"}.complaint .complaint-actions{grid-area:header}.complaint .left{border-right:1px solid rgba(var(--text-color),.2);padding-right:1.5rem}.complaint .right{display:flex;justify-content:center;flex-direction:column}}@media only screen and (min-width:1920px){body{font-size:24px}}@media only screen and (min-width:2048px){body{font-size:24px}}@media only screen and (max-width:320px){body{font-size:14px}}@media (prefers-color-scheme:dark){:root{--text-color:238,238,238;--text-color-light:170,170,170;--foreground-color:26,26,26;--background-color:#111;--dark-shade:#1a1a1a}}@media (prefers-color-scheme:light){:root{--text-color:17,17,17;--text-color-light:85,85,85;--foreground-color:255,255,255;--background-color:#e8e8e8;--dark-shade:#dadada}}@media (prefers-color-scheme:no-preference){:root{--text-color:17,17,17;--text-color-light:85,85,85;--foreground-color:255,255,255;--background-color:#e8e8e8;--dark-shade:#dadada}} \ No newline at end of file diff --git a/css/main.scss b/css/main.scss index 30178f2..ab225ea 100644 --- a/css/main.scss +++ b/css/main.scss @@ -401,15 +401,14 @@ textarea { } } -.container:empty~.empty { +*:empty + .empty-state { display: grid; } -.empty { +.empty-state { display: none; place-items: center; width: 100%; - svg { stroke: rgba(var(--text-color), 0.8); height: 12em; @@ -564,7 +563,7 @@ form { } #sign_in_popup { - h1 { + h3 { margin-top: 2rem; } @@ -643,15 +642,12 @@ form { margin: 0.3em; border-radius: 0.4em; color: rgba(var(--text-color), 0.8); - font-size: 0.9em; - text-transform: uppercase; + font-size: 0.8em; + text-transform: capitalize; width: 100%; - letter-spacing: 0.08em; - + font-weight: 600; h5 { - font-size: 0.6em; margin-top: 0.4em; - font-weight: 700; } } @@ -684,46 +680,27 @@ form { p { margin-bottom: 3rem; } + .user-panel{ + margin: 0 1.5rem; + } } -#user_panel { +.user-panel { position: relative; padding: 1.5rem; - margin: 0 1.5rem; border-radius: 0.6rem; - background: linear-gradient(160deg, #ffffff10 50%, #00000040 80%), linear-gradient(-120deg, #ffffff10 50%, #00000040 10%), rgba(var(--text-color), 0.8); - box-shadow: 0 0.1rem 0.6rem #00000020; + //background: linear-gradient(160deg, #ffffff10 50%, #00000040 80%), linear-gradient(-120deg, #ffffff10 50%, #00000040 10%), midnightblue; + background: radial-gradient(circle at top left, #EF6C00 20%, #C51162 30%, #4A148C 40%, #251f44); + box-shadow: 0 0.1rem 0.1rem #00000020, 0 2rem 1rem -1rem #00000040; color: rgba(var(--foreground-color), 1); - + align-self: flex-start; .icon { stroke: rgba(var(--foreground-color), 1); } - &::before, - &::after { - content: ''; - position: absolute; - height: 2rem; - bottom: 0.8rem; - box-shadow: 0 1rem 0.2rem #00000030; - z-index: -1; - border-radius: 0.4rem; - } - - &::before { - left: 0; - right: 50%; - transform: rotate(-3deg); - } - - &::after { - left: 50%; - right: 0; - transform: rotate(3deg); - } - .copy-row { margin-bottom: 1.5rem; + text-shadow: 0.1rem 0.1rem 0.1rem #000000; } .grid { @@ -737,7 +714,7 @@ form { } } -#user_type { +.user-type { font-weight: 500; color: rgba(var(--foreground-color), 0.9); } @@ -838,7 +815,15 @@ sm-tab-header { position: sticky; top: 0; background: rgba(var(--foreground-color), 1); - z-index: 1; + z-index: 2; + margin-bottom: 1rem; + border-bottom: solid 1px rgba(var(--text-color), 0.2); +} +sm-tab::part(tab){ + padding: 0.8rem 0; +} +sm-panel{ + width: 100%; } .request { @@ -1088,7 +1073,7 @@ sm-tab-header { align-items: center; flex-direction: column; - button { + sm-button { margin-left: 0; margin-top: 1.5rem; } @@ -1115,14 +1100,22 @@ sm-tab-header { word-spacing: 0.16em; } } +#upi_txId_section{ + .copy-row{ + margin-bottom: 1.5rem; + } +} +#send_amount_to_deposit{ + margin-bottom: 0 !important; +} @media only screen and (max-width: 640px) { - #home_page { + #home_page, #deposit{ display: grid; gap: 1.5rem; grid-template-areas: '.''left'; grid-template-columns: minmax(0, 1fr); - + align-items: flex-start; .left { grid-area: left; } @@ -1174,11 +1167,6 @@ sm-tab-header { height: 1.4rem; width: 1.4rem; } - - h5 { - font-size: 0.8em; - } - &:hover { .icon { stroke: rgba(var(--text-color), 1); @@ -1215,18 +1203,10 @@ sm-tab-header { } } - #home_page { + #home_page, #deposit { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr) 24rem; - - .left {} - } - - #activity_page { - sm-tab-header { - margin-bottom: 1rem; - } } } diff --git a/index.html b/index.html index 53cd8ac..4170016 100644 --- a/index.html +++ b/index.html @@ -44,14 +44,14 @@

Loading Blockchain UPI

- + Reset @@ -248,8 +248,8 @@
Amount
@@ -303,44 +303,11 @@ - -
- -

Rupee actions

-
- +
+ - +

Send

-
-
- - - - - - - - - - +
+
+ + + + + + + + + +

deposit

-
-
- - - - - - - - - - - +
+
+ + + + + + + + + + +

Withdraw

-
-
- - request - - - - +
+
+ + request + + + +

Request

-
-
- - - - -

pay through cashier

- +
+
+ + + + +

pay through cashier

+
-
-
-

User

-
-

- - Copy - - - +
+

User

+
+

+ + Copy + + + +
+
+

Balance

+ + refresh balance + + + +
+
+
+
Rupee
+

0

-
-

Balance

- - refresh balance - - - +
+
FLO
+

0

-
-
-
Rupee
-

0

-
-
-
FLO
-

0

-
-
-

Deposit Requests

- - +
+

Transaction Requests

+ + Deposits + Withdrawals + Pay Through Cashier + + + +
+ + Load pending + +
+
+
+ + + + + Empty icon + + + + + + + + + +

No deposit requests.

+
+
+ +
+ Load pending +
+
+
+ + + + + Empty icon + + + + + + + + + +

No withdraw requests.

+
+
+ +
+ + Load pending + +
+
+
+ + + + + Empty icon + + + + + + + + + +

No pay requests.

+
+
+
-
-
- - - - - Empty icon - - - - - - - - - -

No deposit requests.

-
-
-
-
-

Withdraw Requests

- - -
-
-
- - - - - Empty icon - - - - - - - - - -

No withdraw requests.

-
-
-
-
-

Pay through cashier Requests

- - -
-
-
- - - - - Empty icon - - - - - - - - - -

No pay requests.

+
+

User

+
+

+ + Copy + + + +
+
+

Balance

+ + refresh balance + + + +
+
+
+
Rupee
+

0

+
+
+
FLO
+

0

+
+
-

Payment Requests

-

Your payment requests will appear here.

-
-

You don't have any requests.

-
+

Payment Requests

+ + Pending + Approved + Declined + + + +
+

You don't have any requests.

+
+ +
+

You don't have any requests.

+
+ +
+

You don't have any requests.

+
+
-

Activity

+

Activity

*If your request isn't completed in 12hrs, use REPORT to get assistance from our helpline.

@@ -700,23 +700,27 @@ System Notifications - -

You haven't deposited rupee yet.

+ +
+

You haven't deposited rupee yet.

- -

You haven't withdrawn rupee yet.

+ +
+

You haven't withdrawn rupee yet.

- -

You haven't paid through cashier yet.

+ +
+

You haven't paid through cashier yet.

- -

No messages from cashier.

+ +
+

No messages from cashier.

-

Complaints

+

Complaints

Select Cashier
@@ -726,20 +730,30 @@ Pay through cashier - -

No deposit complaints.

+ +
+

No deposit complaints.

- -

No withdraw complaints.

+ +
+

No withdraw complaints.

- -

No pay through cashier complaints.

+ +
+

No pay through cashier complaints.

-
-

Settings

+

Settings

+

My FLO ID

+
+

+ + Copy + + +
@@ -777,13 +791,14 @@ - + \ No newline at end of file