diff --git a/images/buy-background.png b/images/buy-background.png new file mode 100644 index 0000000..da89f91 Binary files /dev/null and b/images/buy-background.png differ diff --git a/images/question.png b/images/question.png new file mode 100644 index 0000000..96fb5b4 Binary files /dev/null and b/images/question.png differ diff --git a/src/components/worbli-buy.js b/src/components/worbli-buy.js new file mode 100644 index 0000000..4a4abb1 --- /dev/null +++ b/src/components/worbli-buy.js @@ -0,0 +1,72 @@ +import {html, PolymerElement} from '@polymer/polymer/polymer-element.js'; +import '../css/shared-styles.js'; +class WorbliBuy extends PolymerElement { + static get template() { + return html` + +
+
Where can I buy WORBLI tokens?
+
+
CHAINCE
+

or

+
CHAINRIFT
+
+
+ `; + } + static get properties() { + return { + join: { + type: Boolean, + reflectToAttribute: true, + notify: true, + }, + }; + } + +} window.customElements.define('worbli-buy', WorbliBuy); \ No newline at end of file diff --git a/src/components/worbli-header.js b/src/components/worbli-header.js index f03fd9c..ff49cee 100644 --- a/src/components/worbli-header.js +++ b/src/components/worbli-header.js @@ -180,6 +180,7 @@ _dashboard(){ if(loc === 'default') {this.set('route.path', `/dashboard/profile`)}; if(loc === 'started') {this.set('route.path', `/dashboard/profile`)}; if(loc === 'review') {this.set('route.path', `/dashboard/status`)}; + if(loc === 'rejected') {this.set('route.path', `/dashboard/status`)}; if(loc === 'approved') {this.set('route.path', `/dashboard/account`)}; if(loc === 'named') {this.set('route.path', `/dashboard/sharedrop`)}; if(loc === 'credited') {this.set('route.path', `/dashboard/account`)}; diff --git a/src/components/worbli-signin.js b/src/components/worbli-signin.js index 9434da3..3e704ef 100644 --- a/src/components/worbli-signin.js +++ b/src/components/worbli-signin.js @@ -183,6 +183,7 @@ _login(){ if (onfido_status === 'default'){this.set('route.path', '/dashboard/profile')} if (onfido_status === 'started'){this.set('route.path', '/dashboard/review')} if (onfido_status === 'review'){this.set('route.path', '/dashboard/status')} + if (onfido_status === 'rejected'){this.set('route.path', '/dashboard/status')} if (onfido_status === 'approved'){this.set('route.path', '/dashboard/account')} if (onfido_status === 'named'){this.set('route.path', '/dashboard/sharedrop')} if (onfido_status === 'credited'){this.set('route.path', '/dashboard/account')} diff --git a/src/routes/main-route.js b/src/routes/main-route.js index 7859415..ad34757 100644 --- a/src/routes/main-route.js +++ b/src/routes/main-route.js @@ -6,7 +6,7 @@ import '../components/side-bar/worbli-telegram.js'; import '../components/side-bar/worbli-support.js'; import '../components/side-bar/worbli-snapshot.js'; import '../components/side-bar/worbli-partners.js'; -import '../components/worbli-subscribe.js'; +import '../components/worbli-buy.js'; import '../components/worbli-title.js'; import '../components/worbli-tile.js'; class MainRoute extends PolymerElement { @@ -79,7 +79,7 @@ class MainRoute extends PolymerElement { - +