diff --git a/css/uploader-style.css b/css/uploader-style.css index aed782c..acdcdba 100644 --- a/css/uploader-style.css +++ b/css/uploader-style.css @@ -536,6 +536,12 @@ summary { margin-left: -0.4rem; margin-right: 0.1rem; } +.page-footer h5 { + font-weight: 400; +} +.page-footer h4 { + font-weight: 600; +} @media screen and (min-width: 640px) { #main_header { diff --git a/css/uploader-style.min.css b/css/uploader-style.min.css index 8f6181f..1afd070 100644 --- a/css/uploader-style.min.css +++ b/css/uploader-style.min.css @@ -1 +1 @@ -a,button{color:inherit}a,a.button:any-link{text-decoration:none}*{padding:0;margin:0;box-sizing:border-box;font-family:Inter,sans-serif}:root{font-size:clamp(1rem,1.2vmax,3rem)}body,html{height:100%;scroll-behavior:smooth}body{--accent-color:#0eaf8f;--light-shade:rgba(var(--text-color), 0.06);--text-color:17,17,17;--text-color-light:100,100,100;--foreground-color:255,255,255;--background-color:#F6f6f6;--error-color:red;--green:#00843b;color:rgba(var(--text-color),1);background:var(--background-color);display:flex;flex-direction:column}a.button:any-link,button{position:relative;display:inline-flex;background:0 0;padding:.5rem .6rem;-webkit-tap-highlight-color:transparent;cursor:pointer}body[data-theme=dark]{--accent-color:#1abc9c;--green:#13ff5a;--text-color:240,240,240;--text-color-light:170,170,170;--foreground-color:20,20,20;--background-color:#0a0a0a;--error-color:rgb(255, 106, 106)}.full-bleed{grid-column:1/4}.h1{font-size:2.5rem}.h2{font-size:2rem}.h3{font-size:1.4rem}.h4{font-size:1rem}.h5{font-size:.8rem}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}p{font-size:.8;max-width:60ch;line-height:1.7;color:rgba(var(--text-color),.8)}#main_header a.button,button,file-input,tags-input{font-size:.9rem}p:not(:last-of-type){margin-bottom:1rem}img{object-fit:cover}a:focus-visible{box-shadow:0 0 0 .1rem rgba(var(--text-color),1) inset}button{overflow:hidden;align-items:center;outline:0;font-weight:500;border-radius:.2rem;border:none}button:focus-visible{outline:solid rgba(var(--text-color),1)}a.button:any-link{align-items:center;outline:0;font-weight:500;font-size:.8rem;border-radius:.3rem;align-self:flex-start;color:rgba(var(--text-color),.7);background-color:rgba(var(--text-color),.06)}a.button:any-link .icon{margin-right:.3rem;height:1.2rem}a:any-link:focus-visible{outline:solid rgba(var(--text-color),1)}.button{background-color:rgba(var(--text-color),.06)}sm-button{--border-radius:0.3rem}sm-popup{--width:min(24rem, 100%)}ul{list-style:none}.hide{opacity:0;pointer-events:none}.hide-completely{display:none!important}.no-transformations{transform:none!important}.overflow-ellipsis{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.breakable{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-word;-ms-hyphens:auto;-moz-hyphens:auto;-webkit-hyphens:auto;hyphens:auto}.flex{display:flex}.grid{display:grid}.flow-column{grid-auto-flow:column}.gap-0-5{gap:.5rem}.gap-1{gap:1rem}.gap-1-5{gap:1.5rem}.gap-2{gap:2rem}.gap-3{gap:3rem}.text-align-right{text-align:right}.align-start{align-items:flex-start}.align-center{align-items:center}.text-center{text-align:center}.justify-start{justify-content:start}.justify-center{justify-content:center}.justify-right{margin-left:auto}.align-self-center{align-self:center}.justify-self-center{justify-self:center}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.direction-column{flex-direction:column}.space-between{justify-content:space-between}#main_header,.popup__header{align-items:center;display:grid}.w-100{width:100%}.ripple{position:absolute;border-radius:50%;transform:scale(0);background:rgba(var(--text-color),.16);pointer-events:none}#main_header,.interact,.page-layout,.theme-switcher{position:relative}.interact{overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent}.observe-empty-state:empty{display:none}.observe-empty-state:not(:empty)~.empty-state{display:none}.icon{width:1.5rem;height:1.5rem;fill:rgba(var(--text-color),.9)}.button__icon{height:1.2rem;width:1.2rem}.button__icon--left{margin-right:.5rem}.button__icon--right{margin-left:.5rem}.page-layout{display:grid;grid-template-columns:1rem minmax(0,1fr) 1rem}.page-layout>*{grid-column:2/3}.popup__header{gap:.5rem;width:100%;padding:0 1.5rem 0 .5rem;grid-template-columns:auto 1fr}.popup__header__close{padding:.5rem;cursor:pointer}.button--primary{color:#fff;font-weight:500;padding:.5rem 1.2rem;background-color:var(--accent-color)}#confirmation_popup,#prompt_popup{flex-direction:column}#confirmation_popup h4,#prompt_popup h4{font-weight:500;margin-bottom:.5rem}#confirmation_popup sm-button,#prompt_popup sm-button{margin:0}#confirmation_popup .flex,#prompt_popup .flex{padding:0;margin-top:1rem}#confirmation_popup .flex sm-button:first-of-type,#prompt_popup .flex sm-button:first-of-type{margin-right:.6rem;margin-left:auto}#main_header{gap:1rem;padding:1rem;grid-template-columns:1fr auto auto}#main_header a.button{font-weight:500;border:thin solid var(--accent-color)}#main_header__logo{height:1.8rem;width:1.8rem}.theme-switcher{justify-self:flex-end;width:1.5rem;height:1.5rem;cursor:pointer;-webkit-tap-highlight-color:transparent}.theme-switcher .icon{position:absolute;transition:transform .6s}.theme-switcher__checkbox{display:none}.theme-switcher__checkbox:checked~.moon-icon{transform:scale(0) rotate(90deg)}.theme-switcher__checkbox:not(:checked)~.sun-icon{transform:scale(0) rotate(-90deg)}.fieldset{display:grid;gap:1rem;border:none;padding:1rem;border-radius:.5rem;background-color:rgba(var(--text-color),.06)}.torrent-upload-section{display:grid;place-items:center;flex:1;padding:0 0 2rem}#torrent_form{display:grid;padding:0 1rem;margin-bottom:3rem}.loader{height:1.6rem;width:1.6rem;stroke-width:8;overflow:visible;stroke:var(--accent-color);fill:none;stroke-dashoffset:180;stroke-dasharray:180;animation:load 3.6s linear infinite,spin 1s linear infinite}@keyframes load{50%{stroke-dashoffset:0}100%{stroke-dashoffset:-180}}@keyframes spin{100%{transform:rotate(360deg)}}.progress-bar{position:relative;display:flex;width:100%;align-items:center;height:.5rem;border-radius:2rem}.progress{position:absolute;left:0;height:100%;border-radius:2rem;transition:width .3s;background-color:var(--accent-color)}#overlay_content,#overlay_content>*{display:grid;gap:1.5rem;justify-content:center;justify-items:center;text-align:center}#upload_torrent_button{width:100%}sm-select{--max-height:40vh}file-input{--button-color:var(--background-color)}file-input .icon{height:1.2rem;width:1.2rem;fill:var(--background-color)}summary{user-select:none;cursor:pointer;justify-self:center;margin-bottom:1.5rem}.page-footer{display:grid;gap:1.5rem;padding:2rem 1.5rem;text-align:center;justify-items:center;background-color:rgba(var(--text-color),.06)}.page-footer .icon{height:1.6rem;width:1.6rem;margin-left:-.4rem;margin-right:.1rem}@media screen and (min-width:640px){#main_header{padding:1.5rem 2rem}#torrent_form{width:32rem}}@media (any-hover:hover){::-webkit-scrollbar{width:.5rem;height:.5rem}::-webkit-scrollbar-thumb{background:rgba(var(--text-color),.3);border-radius:1rem}::-webkit-scrollbar-thumb:hover{background:rgba(var(--text-color),.5)}} \ No newline at end of file +a,button{color:inherit}a,a.button:any-link{text-decoration:none}*{padding:0;margin:0;box-sizing:border-box;font-family:Inter,sans-serif}:root{font-size:clamp(1rem,1.2vmax,3rem)}body,html{height:100%;scroll-behavior:smooth}body{--accent-color:#0eaf8f;--light-shade:rgba(var(--text-color), 0.06);--text-color:17,17,17;--text-color-light:100,100,100;--foreground-color:255,255,255;--background-color:#F6f6f6;--error-color:red;--green:#00843b;color:rgba(var(--text-color),1);background:var(--background-color);display:flex;flex-direction:column}a.button:any-link,button{position:relative;display:inline-flex;background:0 0;padding:.5rem .6rem;font-weight:500;-webkit-tap-highlight-color:transparent;cursor:pointer}body[data-theme=dark]{--accent-color:#1abc9c;--green:#13ff5a;--text-color:240,240,240;--text-color-light:170,170,170;--foreground-color:20,20,20;--background-color:#0a0a0a;--error-color:rgb(255, 106, 106)}.full-bleed{grid-column:1/4}.h1{font-size:2.5rem}.h2{font-size:2rem}.h3{font-size:1.4rem}.h4{font-size:1rem}.h5{font-size:.8rem}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}p{font-size:.8;max-width:60ch;line-height:1.7;color:rgba(var(--text-color),.8)}#main_header a.button,button,file-input,tags-input{font-size:.9rem}p:not(:last-of-type){margin-bottom:1rem}img{object-fit:cover}a:focus-visible{box-shadow:0 0 0 .1rem rgba(var(--text-color),1) inset}button{overflow:hidden;align-items:center;outline:0;border-radius:.2rem;border:none}button:focus-visible{outline:solid rgba(var(--text-color),1)}a.button:any-link{align-items:center;outline:0;font-size:.8rem;border-radius:.3rem;align-self:flex-start;color:rgba(var(--text-color),.7);background-color:rgba(var(--text-color),.06)}a.button:any-link .icon{margin-right:.3rem;height:1.2rem}a:any-link:focus-visible{outline:solid rgba(var(--text-color),1)}.button{background-color:rgba(var(--text-color),.06)}sm-button{--border-radius:0.3rem}sm-popup{--width:min(24rem, 100%)}ul{list-style:none}.hide{opacity:0;pointer-events:none}.hide-completely{display:none!important}.no-transformations{transform:none!important}.overflow-ellipsis{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.breakable{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-word;-ms-hyphens:auto;-moz-hyphens:auto;-webkit-hyphens:auto;hyphens:auto}.flex{display:flex}.grid{display:grid}.flow-column{grid-auto-flow:column}.gap-0-5{gap:.5rem}.gap-1{gap:1rem}.gap-1-5{gap:1.5rem}.gap-2{gap:2rem}.gap-3{gap:3rem}.text-align-right{text-align:right}.align-start{align-items:flex-start}.align-center{align-items:center}.text-center{text-align:center}.justify-start{justify-content:start}.justify-center{justify-content:center}.justify-right{margin-left:auto}.align-self-center{align-self:center}.justify-self-center{justify-self:center}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.direction-column{flex-direction:column}.space-between{justify-content:space-between}#main_header,.popup__header{align-items:center;display:grid}.w-100{width:100%}.ripple{position:absolute;border-radius:50%;transform:scale(0);background:rgba(var(--text-color),.16);pointer-events:none}#main_header,.interact,.page-layout,.theme-switcher{position:relative}.interact{overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent}.observe-empty-state:empty{display:none}.observe-empty-state:not(:empty)~.empty-state{display:none}.icon{width:1.5rem;height:1.5rem;fill:rgba(var(--text-color),.9)}.button__icon{height:1.2rem;width:1.2rem}.button__icon--left{margin-right:.5rem}.button__icon--right{margin-left:.5rem}.page-layout{display:grid;grid-template-columns:1rem minmax(0,1fr) 1rem}.page-layout>*{grid-column:2/3}.popup__header{gap:.5rem;width:100%;padding:0 1.5rem 0 .5rem;grid-template-columns:auto 1fr}.popup__header__close{padding:.5rem;cursor:pointer}.button--primary{color:#fff;font-weight:500;padding:.5rem 1.2rem;background-color:var(--accent-color)}#confirmation_popup,#prompt_popup{flex-direction:column}#confirmation_popup h4,#prompt_popup h4{font-weight:500;margin-bottom:.5rem}#confirmation_popup sm-button,#prompt_popup sm-button{margin:0}#confirmation_popup .flex,#prompt_popup .flex{padding:0;margin-top:1rem}#confirmation_popup .flex sm-button:first-of-type,#prompt_popup .flex sm-button:first-of-type{margin-right:.6rem;margin-left:auto}#main_header{gap:1rem;padding:1rem;grid-template-columns:1fr auto auto}#main_header a.button{font-weight:500;border:thin solid var(--accent-color)}#main_header__logo{height:1.8rem;width:1.8rem}.theme-switcher{justify-self:flex-end;width:1.5rem;height:1.5rem;cursor:pointer;-webkit-tap-highlight-color:transparent}.theme-switcher .icon{position:absolute;transition:transform .6s}.theme-switcher__checkbox{display:none}.theme-switcher__checkbox:checked~.moon-icon{transform:scale(0) rotate(90deg)}.theme-switcher__checkbox:not(:checked)~.sun-icon{transform:scale(0) rotate(-90deg)}.fieldset{display:grid;gap:1rem;border:none;padding:1rem;border-radius:.5rem;background-color:rgba(var(--text-color),.06)}.torrent-upload-section{display:grid;place-items:center;flex:1;padding:0 0 2rem}#torrent_form{display:grid;padding:0 1rem;margin-bottom:3rem}.loader{height:1.6rem;width:1.6rem;stroke-width:8;overflow:visible;stroke:var(--accent-color);fill:none;stroke-dashoffset:180;stroke-dasharray:180;animation:load 3.6s linear infinite,spin 1s linear infinite}@keyframes load{50%{stroke-dashoffset:0}100%{stroke-dashoffset:-180}}@keyframes spin{100%{transform:rotate(360deg)}}.progress-bar{position:relative;display:flex;width:100%;align-items:center;height:.5rem;border-radius:2rem}.progress{position:absolute;left:0;height:100%;border-radius:2rem;transition:width .3s;background-color:var(--accent-color)}#overlay_content,#overlay_content>*{display:grid;gap:1.5rem;justify-content:center;justify-items:center;text-align:center}#upload_torrent_button{width:100%}sm-select{--max-height:40vh}file-input{--button-color:var(--background-color)}file-input .icon{height:1.2rem;width:1.2rem;fill:var(--background-color)}summary{user-select:none;cursor:pointer;justify-self:center;margin-bottom:1.5rem}.page-footer{display:grid;gap:1.5rem;padding:2rem 1.5rem;text-align:center;justify-items:center;background-color:rgba(var(--text-color),.06)}.page-footer .icon{height:1.6rem;width:1.6rem;margin-left:-.4rem;margin-right:.1rem}.page-footer h5{font-weight:400}.page-footer h4{font-weight:600}@media screen and (min-width:640px){#main_header{padding:1.5rem 2rem}#torrent_form{width:32rem}}@media (any-hover:hover){::-webkit-scrollbar{width:.5rem;height:.5rem}::-webkit-scrollbar-thumb{background:rgba(var(--text-color),.3);border-radius:1rem}::-webkit-scrollbar-thumb:hover{background:rgba(var(--text-color),.5)}} \ No newline at end of file diff --git a/css/uploader-style.scss b/css/uploader-style.scss index fa751bf..e6ffbd7 100644 --- a/css/uploader-style.scss +++ b/css/uploader-style.scss @@ -464,6 +464,12 @@ summary{ margin-left: -0.4rem; margin-right: 0.1rem; } + h5{ + font-weight: 400; + } + h4{ + font-weight: 600; + } } @media screen and (min-width: 640px) { #main_header{ diff --git a/uploader.html b/uploader.html index d6afd5f..6451921 100644 --- a/uploader.html +++ b/uploader.html @@ -40,7 +40,7 @@
- + @@ -111,19 +111,19 @@ @@ -573,7 +573,7 @@ const res = await confirmation('Upload into blockchain?', `Your net balance is ${balance}, Total fee for upload is ${totalFee}`); if (res) { sendDataToBlockchain(floID, name, file.name, type, description, tags, file.size, chunks, overlaytext).then(function (result) { - notify(result, 'success') + notify(result, 'success', true, true) getRef('torrent_form').reset() }).catch(function (error) { notify(error, 'error'); @@ -613,7 +613,7 @@ const progress = document.createElement("div"); progress.setAttribute("class", "progress"); ProgressBar.appendChild(progress); - overlaytext.innerHTML = `Uploading chunks to blockchain
Uploaded 0 of ${chunks.length}`; + overlaytext.innerHTML = `Uploading chunks to blockchain
0 of ${chunks.length} done.`; var progressWidth = 0; var lastTx = false; for (var i = chunks.length - 1, j = 1; i >= 0; i--, j++) {