From b09219d02d4996f0a327a432fc5ed3664200e410 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Wed, 15 Mar 2023 01:16:39 +0530 Subject: [PATCH] Added KYC status of members --- components.js | 3 +- css/main.css | 74 +++++++++++++++++++++ css/main.min.css | 2 +- css/main.scss | 70 ++++++++++++++++++++ index.html | 30 +++++++++ members.html | 167 +++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 344 insertions(+), 2 deletions(-) create mode 100644 members.html diff --git a/components.js b/components.js index aa18c59..06df46c 100644 --- a/components.js +++ b/components.js @@ -1,2 +1,3 @@ /*jshint esversion: 6 */ -const themeToggle = document.createElement("template"); themeToggle.innerHTML = ' '; class ThemeToggle extends HTMLElement { constructor() { super(), this.attachShadow({ mode: "open" }).append(themeToggle.content.cloneNode(!0)), this.isChecked = !1, this.hasTheme = "light", this.toggleState = this.toggleState.bind(this), this.fireEvent = this.fireEvent.bind(this), this.handleThemeChange = this.handleThemeChange.bind(this) } static get observedAttributes() { return ["checked"] } daylight() { this.hasTheme = "light", document.body.dataset.theme = "light", this.setAttribute("aria-checked", "false") } nightlight() { this.hasTheme = "dark", document.body.dataset.theme = "dark", this.setAttribute("aria-checked", "true") } toggleState() { this.toggleAttribute("checked"), this.fireEvent() } handleKeyDown(e) { " " === e.key && this.toggleState() } handleThemeChange(e) { e.detail.theme !== this.hasTheme && ("dark" === e.detail.theme ? this.setAttribute("checked", "") : this.removeAttribute("checked")) } fireEvent() { this.dispatchEvent(new CustomEvent("themechange", { bubbles: !0, composed: !0, detail: { theme: this.hasTheme } })) } connectedCallback() { this.setAttribute("role", "switch"), this.setAttribute("aria-label", "theme toggle"), "dark" === localStorage.getItem(`${window.location.hostname}-theme`) ? (this.nightlight(), this.setAttribute("checked", "")) : "light" === localStorage.getItem(`${window.location.hostname}-theme`) ? (this.daylight(), this.removeAttribute("checked")) : window.matchMedia("(prefers-color-scheme: dark)").matches ? (this.nightlight(), this.setAttribute("checked", "")) : (this.daylight(), this.removeAttribute("checked")), this.addEventListener("click", this.toggleState), this.addEventListener("keydown", this.handleKeyDown), document.addEventListener("themechange", this.handleThemeChange) } disconnectedCallback() { this.removeEventListener("click", this.toggleState), this.removeEventListener("keydown", this.handleKeyDown), document.removeEventListener("themechange", this.handleThemeChange) } attributeChangedCallback(e, t, n) { "checked" === e && (this.hasAttribute("checked") ? (this.nightlight(), localStorage.setItem(`${window.location.hostname}-theme`, "dark")) : (this.daylight(), localStorage.setItem(`${window.location.hostname}-theme`, "light"))) } } window.customElements.define("theme-toggle", ThemeToggle); \ No newline at end of file +const themeToggle = document.createElement("template"); themeToggle.innerHTML = ' '; class ThemeToggle extends HTMLElement { constructor() { super(), this.attachShadow({ mode: "open" }).append(themeToggle.content.cloneNode(!0)), this.isChecked = !1, this.hasTheme = "light", this.toggleState = this.toggleState.bind(this), this.fireEvent = this.fireEvent.bind(this), this.handleThemeChange = this.handleThemeChange.bind(this) } static get observedAttributes() { return ["checked"] } daylight() { this.hasTheme = "light", document.body.dataset.theme = "light", this.setAttribute("aria-checked", "false") } nightlight() { this.hasTheme = "dark", document.body.dataset.theme = "dark", this.setAttribute("aria-checked", "true") } toggleState() { this.toggleAttribute("checked"), this.fireEvent() } handleKeyDown(e) { " " === e.key && this.toggleState() } handleThemeChange(e) { e.detail.theme !== this.hasTheme && ("dark" === e.detail.theme ? this.setAttribute("checked", "") : this.removeAttribute("checked")) } fireEvent() { this.dispatchEvent(new CustomEvent("themechange", { bubbles: !0, composed: !0, detail: { theme: this.hasTheme } })) } connectedCallback() { this.setAttribute("role", "switch"), this.setAttribute("aria-label", "theme toggle"), "dark" === localStorage.getItem(`${window.location.hostname}-theme`) ? (this.nightlight(), this.setAttribute("checked", "")) : "light" === localStorage.getItem(`${window.location.hostname}-theme`) ? (this.daylight(), this.removeAttribute("checked")) : window.matchMedia("(prefers-color-scheme: dark)").matches ? (this.nightlight(), this.setAttribute("checked", "")) : (this.daylight(), this.removeAttribute("checked")), this.addEventListener("click", this.toggleState), this.addEventListener("keydown", this.handleKeyDown), document.addEventListener("themechange", this.handleThemeChange) } disconnectedCallback() { this.removeEventListener("click", this.toggleState), this.removeEventListener("keydown", this.handleKeyDown), document.removeEventListener("themechange", this.handleThemeChange) } attributeChangedCallback(e, t, n) { "checked" === e && (this.hasAttribute("checked") ? (this.nightlight(), localStorage.setItem(`${window.location.hostname}-theme`, "dark")) : (this.daylight(), localStorage.setItem(`${window.location.hostname}-theme`, "light"))) } } window.customElements.define("theme-toggle", ThemeToggle); +const smCopy = document.createElement("template"); smCopy.innerHTML = '

', customElements.define("sm-copy", class extends HTMLElement { constructor() { super(), this.attachShadow({ mode: "open" }).append(smCopy.content.cloneNode(!0)), this.copyContent = this.shadowRoot.querySelector(".copy-content"), this.copyButton = this.shadowRoot.querySelector(".copy-button"), this.copy = this.copy.bind(this) } static get observedAttributes() { return ["value"] } set value(t) { this.setAttribute("value", t) } get value() { return this.getAttribute("value") } fireEvent() { this.dispatchEvent(new CustomEvent("copy", { composed: !0, bubbles: !0, cancelable: !0 })) } copy() { navigator.clipboard.writeText(this.copyContent.textContent).then(t => this.fireEvent()).catch(t => console.error(t)) } connectedCallback() { this.copyButton.addEventListener("click", this.copy) } attributeChangedCallback(t, n, o) { "value" === t && (this.copyContent.textContent = o) } disconnectedCallback() { this.copyButton.removeEventListener("click", this.copy) } }); \ No newline at end of file diff --git a/css/main.css b/css/main.css index 3d513d7..066234a 100644 --- a/css/main.css +++ b/css/main.css @@ -60,6 +60,10 @@ strong { display: grid; } +.gap-0-3 { + gap: 0.3rem; +} + .gap-0-5 { gap: 0.5rem; } @@ -162,8 +166,78 @@ main { fill: var(--accent-color); } +article { + display: grid; + gap: 1rem; + padding: 1.5rem max(1rem, 6vw); +} + +ul { + display: grid; + gap: 1rem; + margin-top: 1rem; +} + +.member-card { + display: flex; + flex-wrap: wrap; + gap: 1rem; + padding: max(1rem, 1.5vw); + border-radius: 0.5rem; + background-color: rgba(var(--foreground-color), 1); +} +.member-card h4 { + min-width: 12rem; +} +.member-card h5 { + font-weight: 400; +} +.member-card .kyc-wrapper { + display: flex; + align-items: center; + gap: 0.5rem; + font-size: 0.8rem; +} +.member-card .kyc-wrapper .icon { + width: 1.1rem; + height: 1.1rem; +} +.member-card .kyc-wrapper .kyc-status { + display: flex; + align-items: center; + gap: 0.1rem; + padding: 0.3rem; + border-radius: 3rem; + font-weight: 500; + background-color: rgba(var(--text-color), 0.1); + padding-right: 0.5rem; +} +.member-card .kyc-wrapper .kyc-status.pending { + background-color: var(--yellow); + color: rgba(var(--foreground-color), 1); +} +.member-card .kyc-wrapper .kyc-status.pending .icon { + fill: rgba(var(--foreground-color), 1); +} +.member-card .kyc-wrapper .kyc-status.verified { + background-color: var(--green); + color: rgba(var(--foreground-color), 1); +} +.member-card .kyc-wrapper .kyc-status.verified .icon { + fill: rgba(var(--foreground-color), 1); +} + +sm-copy { + font-weight: 500; + font-size: 0.9rem; + color: rgba(var(--text-color), 0.8); +} + @media screen and (min-width: 768px) { main { padding: 1.5rem 8vw; } + sm-copy { + min-width: 24rem; + } } \ No newline at end of file diff --git a/css/main.min.css b/css/main.min.css index 5d087c1..9d705ce 100644 --- a/css/main.min.css +++ b/css/main.min.css @@ -1 +1 @@ -*{padding:0;margin:0;box-sizing:border-box;font-family:"Inter",sans-serif}:root{font-size:clamp(1rem,1.2vmax,1.2rem)}html,body{height:100%}body{--accent-color: #3d5afe;--secondary-color: #ffac2e;--text-color: 20, 20, 20;--foreground-color: 252, 253, 255;--background-color: 241, 243, 248;--danger-color: rgb(255, 75, 75);--green: #1cad59;--yellow: rgb(220, 165, 0);color:rgba(var(--text-color), 1);background-color:rgba(var(--background-color), 1)}body[data-theme=dark]{--accent-color: #6d83ff;--secondary-color: #d60739;--text-color: 220, 220, 220;--foreground-color: 27, 28, 29;--background-color: 21, 22, 22;--danger-color: rgb(255, 106, 106);--green: #00e676;--yellow: rgb(255, 213, 5)}p,strong{font-size:.9rem;max-width:65ch;line-height:1.7;color:rgba(var(--text-color), 0.9)}.icon{width:1.2rem;height:1.2rem;fill:rgba(var(--text-color), 0.9)}.flex{display:flex}.grid{display:grid}.gap-0-5{gap:.5rem}.gap-1{gap:1rem}.align-content-start{align-content:start}.align-items-center{align-items:center}header{padding:1.5rem 1rem;justify-content:space-between}main{display:grid;gap:1rem;padding:1.5rem max(1rem,6vw);grid-template-columns:repeat(auto-fit, minmax(20rem, 1fr))}.app{display:flex;flex-direction:column;padding:max(1.5rem,3vw);background-color:rgba(var(--foreground-color), 1);border-radius:.5rem;gap:1rem}.app__icon{display:flex;justify-content:center;align-items:center;width:5rem;height:5rem;border-radius:.5rem;background-color:rgba(var(--background-color), 1);margin-bottom:1rem}.app__icon .icon{width:3rem;height:3rem;fill:rgba(var(--text-color), 0.9)}.app li{list-style:none;font-size:.9rem;color:rgba(var(--text-color), 0.8);margin-bottom:.8rem;line-height:1.5}.app a:not([class]){display:flex;align-items:center;text-decoration:none;color:var(--accent-color);font-weight:500}.app a:not([class]):hover{text-decoration:underline}.app a:not([class]) .icon{margin-left:.3rem;width:1em;height:1em;fill:var(--accent-color)}.ext-link{display:flex;gap:.5rem;align-items:center;text-decoration:none;background-color:var(--accent-color);padding:.5rem 1rem;border-radius:.5rem;color:rgba(var(--foreground-color), 1);font-weight:500;align-self:flex-start;margin-top:auto;transition:color .2s,background-color .2s}.ext-link .icon{fill:rgba(var(--foreground-color), 1);transition:fill .2s}.ext-link:hover{color:var(--accent-color);background-color:rgba(var(--foreground-color), 1);box-shadow:0 0 0 .1rem var(--accent-color) inset}.ext-link:hover .icon{fill:var(--accent-color)}@media screen and (min-width: 768px){main{padding:1.5rem 8vw}} \ No newline at end of file +*{padding:0;margin:0;box-sizing:border-box;font-family:"Inter",sans-serif}:root{font-size:clamp(1rem,1.2vmax,1.2rem)}html,body{height:100%}body{--accent-color: #3d5afe;--secondary-color: #ffac2e;--text-color: 20, 20, 20;--foreground-color: 252, 253, 255;--background-color: 241, 243, 248;--danger-color: rgb(255, 75, 75);--green: #1cad59;--yellow: rgb(220, 165, 0);color:rgba(var(--text-color), 1);background-color:rgba(var(--background-color), 1)}body[data-theme=dark]{--accent-color: #6d83ff;--secondary-color: #d60739;--text-color: 220, 220, 220;--foreground-color: 27, 28, 29;--background-color: 21, 22, 22;--danger-color: rgb(255, 106, 106);--green: #00e676;--yellow: rgb(255, 213, 5)}p,strong{font-size:.9rem;max-width:65ch;line-height:1.7;color:rgba(var(--text-color), 0.9)}.icon{width:1.2rem;height:1.2rem;fill:rgba(var(--text-color), 0.9)}.flex{display:flex}.grid{display:grid}.gap-0-3{gap:.3rem}.gap-0-5{gap:.5rem}.gap-1{gap:1rem}.align-content-start{align-content:start}.align-items-center{align-items:center}header{padding:1.5rem 1rem;justify-content:space-between}main{display:grid;gap:1rem;padding:1.5rem max(1rem,6vw);grid-template-columns:repeat(auto-fit, minmax(20rem, 1fr))}.app{display:flex;flex-direction:column;padding:max(1.5rem,3vw);background-color:rgba(var(--foreground-color), 1);border-radius:.5rem;gap:1rem}.app__icon{display:flex;justify-content:center;align-items:center;width:5rem;height:5rem;border-radius:.5rem;background-color:rgba(var(--background-color), 1);margin-bottom:1rem}.app__icon .icon{width:3rem;height:3rem;fill:rgba(var(--text-color), 0.9)}.app li{list-style:none;font-size:.9rem;color:rgba(var(--text-color), 0.8);margin-bottom:.8rem;line-height:1.5}.app a:not([class]){display:flex;align-items:center;text-decoration:none;color:var(--accent-color);font-weight:500}.app a:not([class]):hover{text-decoration:underline}.app a:not([class]) .icon{margin-left:.3rem;width:1em;height:1em;fill:var(--accent-color)}.ext-link{display:flex;gap:.5rem;align-items:center;text-decoration:none;background-color:var(--accent-color);padding:.5rem 1rem;border-radius:.5rem;color:rgba(var(--foreground-color), 1);font-weight:500;align-self:flex-start;margin-top:auto;transition:color .2s,background-color .2s}.ext-link .icon{fill:rgba(var(--foreground-color), 1);transition:fill .2s}.ext-link:hover{color:var(--accent-color);background-color:rgba(var(--foreground-color), 1);box-shadow:0 0 0 .1rem var(--accent-color) inset}.ext-link:hover .icon{fill:var(--accent-color)}article{display:grid;gap:1rem;padding:1.5rem max(1rem,6vw)}ul{display:grid;gap:1rem;margin-top:1rem}.member-card{display:flex;flex-wrap:wrap;gap:1rem;padding:max(1rem,1.5vw);border-radius:.5rem;background-color:rgba(var(--foreground-color), 1)}.member-card h4{min-width:12rem}.member-card h5{font-weight:400}.member-card .kyc-wrapper{display:flex;align-items:center;gap:.5rem;font-size:.8rem}.member-card .kyc-wrapper .icon{width:1.1rem;height:1.1rem}.member-card .kyc-wrapper .kyc-status{display:flex;align-items:center;gap:.1rem;padding:.3rem;border-radius:3rem;font-weight:500;background-color:rgba(var(--text-color), 0.1);padding-right:.5rem}.member-card .kyc-wrapper .kyc-status.pending{background-color:var(--yellow);color:rgba(var(--foreground-color), 1)}.member-card .kyc-wrapper .kyc-status.pending .icon{fill:rgba(var(--foreground-color), 1)}.member-card .kyc-wrapper .kyc-status.verified{background-color:var(--green);color:rgba(var(--foreground-color), 1)}.member-card .kyc-wrapper .kyc-status.verified .icon{fill:rgba(var(--foreground-color), 1)}sm-copy{font-weight:500;font-size:.9rem;color:rgba(var(--text-color), 0.8)}@media screen and (min-width: 768px){main{padding:1.5rem 8vw}sm-copy{min-width:24rem}} \ No newline at end of file diff --git a/css/main.scss b/css/main.scss index 8db36ac..ae39d39 100644 --- a/css/main.scss +++ b/css/main.scss @@ -56,6 +56,9 @@ strong { .grid { display: grid; } +.gap-0-3 { + gap: 0.3rem; +} .gap-0-5 { gap: 0.5rem; } @@ -152,9 +155,76 @@ main { } } } +article { + display: grid; + gap: 1rem; + padding: 1.5rem max(1rem, 6vw); +} +ul { + display: grid; + gap: 1rem; + margin-top: 1rem; +} +.member-card { + display: flex; + flex-wrap: wrap; + gap: 1rem; + padding: max(1rem, 1.5vw); + border-radius: 0.5rem; + background-color: rgba(var(--foreground-color), 1); + h4 { + min-width: 12rem; + } + h5 { + font-weight: 400; + } + .kyc-wrapper { + display: flex; + align-items: center; + gap: 0.5rem; + font-size: 0.8rem; + .icon { + width: 1.1rem; + height: 1.1rem; + } + .kyc-status { + display: flex; + align-items: center; + gap: 0.1rem; + padding: 0.3rem; + border-radius: 3rem; + font-weight: 500; + background-color: rgba(var(--text-color), 0.1); + padding-right: 0.5rem; + &.pending { + background-color: var(--yellow); + color: rgba(var(--foreground-color), 1); + .icon { + fill: rgba(var(--foreground-color), 1); + } + } + &.verified { + background-color: var(--green); + color: rgba(var(--foreground-color), 1); + .icon { + fill: rgba(var(--foreground-color), 1); + } + } + } + } +} + +sm-copy { + font-weight: 500; + font-size: 0.9rem; + color: rgba(var(--text-color), 0.8); +} @media screen and (min-width: 768px) { main { padding: 1.5rem 8vw; } + sm-copy { + min-width: 24rem; + } } diff --git a/index.html b/index.html index 3274838..e435de8 100644 --- a/index.html +++ b/index.html @@ -240,6 +240,36 @@ +
+
+ + + + + + +
+

+ Members & KYC details +

+

+ FLO/BTC addresses of project members and their KYC status +

+ + Open + + + + + + + + + +
diff --git a/members.html b/members.html new file mode 100644 index 0000000..db4a220 --- /dev/null +++ b/members.html @@ -0,0 +1,167 @@ + + + + + + + + Members + + + + + + + + +
+

+ + + + RanchiMall +

+ +
+
+
+ +

+ Project members +

+

+ FLO/BTC addresses used for El Salvador Project B and participants's KYC status. +

+
+
    +
    + + + + + \ No newline at end of file