diff --git a/web/lib/HabitatCommunity.js b/web/lib/HabitatCommunity.js index 5ead4d7..04f0f34 100644 --- a/web/lib/HabitatCommunity.js +++ b/web/lib/HabitatCommunity.js @@ -190,15 +190,13 @@ button, .button { display: none; padding-bottom: 1em; } -#sticky { - position: sticky; - top: .5em; - max-width: max-content; - padding: .5em 1em; - border-radius: 2em; - background-color: var(--color-bg); - border: 1px solid var(--color-bg-invert); - z-index: 9; +#t_cart { + bottom: 26px; + left: 0; + right: 0; + z-index: 100; + position: absolute; + display: flex; } #tabs * { outline: none; @@ -320,27 +318,20 @@ button, .button {
- - - -
-
- - -
-
-
+ + + `; @@ -694,4 +685,4 @@ button, .button { window.postMessage({ type: 'hbt-tx-bundle', value: batch }, window.location.origin); } } -customElements.define('habitat-community', HabitatCommunity); +customElements.define('habitat-community', HabitatCommunity); \ No newline at end of file diff --git a/web/lib/HabitatToggle.js b/web/lib/HabitatToggle.js index f62a198..8419952 100644 --- a/web/lib/HabitatToggle.js +++ b/web/lib/HabitatToggle.js @@ -2,9 +2,6 @@ const TEMPLATE = document.createElement('template'); TEMPLATE.innerHTML = ` +
+
- -

+
+
+ + + +

`; @@ -152,4 +164,4 @@ class HabitatToggle extends HTMLElement { this.shadowRoot.querySelector('#content').innerHTML = tooltipText; } } -customElements.define('habitat-toggle', HabitatToggle); +customElements.define('habitat-toggle', HabitatToggle); \ No newline at end of file diff --git a/web/lib/HabitatTransactionCart.js b/web/lib/HabitatTransactionCart.js index d696f97..98e63b1 100644 --- a/web/lib/HabitatTransactionCart.js +++ b/web/lib/HabitatTransactionCart.js @@ -6,73 +6,175 @@ import BalanceTracker from './BalanceTracker.js'; const TEMPLATE = document.createElement('template'); TEMPLATE.innerHTML = ` -
- -
- - - Pending Transactions - -
- - +
+
+ Your transactions + + + + + + + + + + + + + + + + + + +
Vote on rollup features200 HBT
Vote on liquidity140 HBT
Total345 HBT
+
+
+
+
+ Available tokens + 803 HBT +
+
+ Transactions + 2(=345 HBT) +
+
`; @@ -115,7 +217,7 @@ class HabitatTransactionCart extends HTMLElement { if (evt.data.type === 'hbt-tx-bundle') { this._txBundle = evt.data.value; - + console.log("hbt-tx-bundle") const container = this.shadowRoot.querySelector('#txBundle'); const grid = this.shadowRoot.querySelector('#txGrid'); grid.innerHTML = ''; @@ -140,6 +242,7 @@ class HabitatTransactionCart extends HTMLElement { } if (evt.data.type === 'hbt-balance-tracker-update') { + console.log("hbt-balance-tracker-update") const obj = evt.data.value; const token = await getTokenV2(obj.tokenAddress); const { available } = await BalanceTracker.stat(token, obj.delegationMode); @@ -148,4 +251,4 @@ class HabitatTransactionCart extends HTMLElement { } } } -customElements.define('habitat-transaction-cart', HabitatTransactionCart); +customElements.define('habitat-transaction-cart', HabitatTransactionCart); \ No newline at end of file