From b61609444ea53114f26f65da46de09284f878550 Mon Sep 17 00:00:00 2001 From: ennucore Date: Sat, 24 Dec 2022 15:34:06 +0100 Subject: [PATCH] The screens for domain owners --- .idea/workspace.xml | 28 +++++++++++---- src/assets/main.css | 7 ++-- src/components/ZoneTable.vue | 2 +- src/result.ts | 3 +- src/router/index.ts | 5 +++ src/views/Checkout.vue | 2 +- src/views/IHave.vue | 70 ++++++++++++++++++++++++++++++++++++ src/views/IKnow.vue | 32 +++++++++++++---- src/zone.ts | 4 ++- 9 files changed, 134 insertions(+), 19 deletions(-) create mode 100644 src/views/IHave.vue diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 9354b48..f32504c 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,12 +1,16 @@ - + + - + + + - + + @@ -198,6 +213,7 @@ - \ No newline at end of file diff --git a/src/assets/main.css b/src/assets/main.css index 84a5e8a..dfaf9f9 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -13,7 +13,7 @@ a, .green { text-decoration: none; - color: hsla(160, 100%, 37%, 1); + color: hsl(201, 100%, 37%); transition: 0.4s; } @@ -87,7 +87,10 @@ a, border-radius: 2rem; padding: 2.5rem 32px; text-align: center; - display: inline-block; + display: flex; + align-items: center; + place-content: center; + justify-content: center; font-size: 1.6rem; font-weight: bold; color: #282e46; diff --git a/src/components/ZoneTable.vue b/src/components/ZoneTable.vue index 63b87f2..422d1fc 100644 --- a/src/components/ZoneTable.vue +++ b/src/components/ZoneTable.vue @@ -33,7 +33,7 @@ export default { props: { zones: { type: Array[Zone], - default: [new Zone("example.ton", 3, 5), new Zone("agorata.ton", 3, 5)] + default: [new Zone("example.ton", 3, 5), new Zone("agorata.ton", 3, 5), new Zone("testtesttest.ton", 1, 1)] } } } diff --git a/src/result.ts b/src/result.ts index f3af68f..45dd957 100644 --- a/src/result.ts +++ b/src/result.ts @@ -70,7 +70,8 @@ export class TonLink { } getLink(): string { - let link = `ton://${this.address}/transfer?message=${this.message}`; + // todo: use tonapi to run dnsresolve on the address (or move the task to the backend) - domains don't work well in links + let link = `ton://transfer/${this.address}?message=${this.message}`; if (this.sum !== undefined) { link += `&amount=${this.sum}`; } diff --git a/src/router/index.ts b/src/router/index.ts index 6203e83..b05149d 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -26,6 +26,11 @@ const router = createRouter({ name: 'IKnow', component: () => import('../views/IKnow.vue') }, + { + path: '/i-have', + name: 'IHave', + component: () => import('../views/IHave.vue') + }, { path: '/tondns', name: 'tondns', diff --git a/src/views/Checkout.vue b/src/views/Checkout.vue index 3011cef..a6aa2bc 100644 --- a/src/views/Checkout.vue +++ b/src/views/Checkout.vue @@ -84,7 +84,7 @@ export default { imageOptions: { hideBackgroundDots: true, imageSize: 0.4, - margin: 5, + margin: 3, crossOrigin: 'anonymous', }, dotsOptions: { diff --git a/src/views/IHave.vue b/src/views/IHave.vue new file mode 100644 index 0000000..1706917 --- /dev/null +++ b/src/views/IHave.vue @@ -0,0 +1,70 @@ + + + + + \ No newline at end of file diff --git a/src/views/IKnow.vue b/src/views/IKnow.vue index 0ff7197..2d2fa00 100644 --- a/src/views/IKnow.vue +++ b/src/views/IKnow.vue @@ -4,22 +4,24 @@ TON DNS