From 69ae5e2b84a7eedc71c7219af2e25d6de815b801 Mon Sep 17 00:00:00 2001 From: secondl1ght <85003930+secondl1ght@users.noreply.github.com> Date: Fri, 22 Jul 2022 13:24:51 -0600 Subject: add numpad/generate invoice step 1 to receive page, refactoring --- src/components/AppHeader.svelte | 2 ++ src/components/LandingHeader.svelte | 13 +++++-- src/components/LandingHero.svelte | 9 +++-- src/components/PrimaryButton.svelte | 8 ----- src/components/SecondaryButton.svelte | 6 ---- src/components/index.js | 2 -- src/routes/receive.svelte | 65 ++++++++++++++++++++++++++++++++++- static/icons/chevron-left-white.svg | 3 ++ static/icons/chevron-left.svg | 3 ++ static/icons/qr.svg | 3 ++ static/icons/send.svg | 3 ++ static/icons/swap.svg | 3 ++ 12 files changed, 98 insertions(+), 22 deletions(-) delete mode 100644 src/components/PrimaryButton.svelte delete mode 100644 src/components/SecondaryButton.svelte create mode 100644 static/icons/chevron-left-white.svg create mode 100644 static/icons/chevron-left.svg create mode 100644 static/icons/qr.svg create mode 100644 static/icons/send.svg create mode 100644 static/icons/swap.svg diff --git a/src/components/AppHeader.svelte b/src/components/AppHeader.svelte index 580f442f..9998a4f6 100644 --- a/src/components/AppHeader.svelte +++ b/src/components/AppHeader.svelte @@ -1,4 +1,6 @@ diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte index d6d55863..89f4014f 100644 --- a/src/components/LandingHeader.svelte +++ b/src/components/LandingHeader.svelte @@ -1,7 +1,7 @@
@@ -20,7 +20,12 @@ of Sale. No software or hardware required.
- goto('/register')} /> +
diff --git a/src/components/PrimaryButton.svelte b/src/components/PrimaryButton.svelte deleted file mode 100644 index ef8f7718..00000000 --- a/src/components/PrimaryButton.svelte +++ /dev/null @@ -1,8 +0,0 @@ - - - diff --git a/src/components/SecondaryButton.svelte b/src/components/SecondaryButton.svelte deleted file mode 100644 index 723a7569..00000000 --- a/src/components/SecondaryButton.svelte +++ /dev/null @@ -1,6 +0,0 @@ - - - diff --git a/src/components/index.js b/src/components/index.js index 32082d8f..febf8dac 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -3,8 +3,6 @@ export { default as LandingHero } from './LandingHero.svelte'; export { default as LandingInfoCard } from './LandingInfoCard.svelte'; export { default as HowItWorksCard } from './HowItWorksCard.svelte'; export { default as FaqCard } from './FaqCard.svelte'; -export { default as PrimaryButton } from './PrimaryButton.svelte'; -export { default as SecondaryButton } from './SecondaryButton.svelte'; export { default as Icon } from './Icon.svelte'; export { default as Image } from './Image.svelte'; export { default as RegisterOrLogin } from './RegisterOrLogin.svelte'; diff --git a/src/routes/receive.svelte b/src/routes/receive.svelte index 1935b156..92138005 100644 --- a/src/routes/receive.svelte +++ b/src/routes/receive.svelte @@ -1,5 +1,68 @@ + + +
+
+ +
+
+ {useFiat ? `$${amountFiat}` : amountSats}{useFiat ? 'CAD' : 'SATS'} +
+ {useFiat ? `${amountSats} SATS` : `$${amountFiat} CAD`} +
+ + +
+ {#each numPad as value} + {#if value === '<'} + + {:else} + + {/if} + {/each} +
+ + +
+ + +
+
+
+ + + + diff --git a/static/icons/chevron-left-white.svg b/static/icons/chevron-left-white.svg new file mode 100644 index 00000000..c73054bf --- /dev/null +++ b/static/icons/chevron-left-white.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/chevron-left.svg b/static/icons/chevron-left.svg new file mode 100644 index 00000000..71bbaadb --- /dev/null +++ b/static/icons/chevron-left.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/qr.svg b/static/icons/qr.svg new file mode 100644 index 00000000..d88761ee --- /dev/null +++ b/static/icons/qr.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/send.svg b/static/icons/send.svg new file mode 100644 index 00000000..1d20f7aa --- /dev/null +++ b/static/icons/send.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/swap.svg b/static/icons/swap.svg new file mode 100644 index 00000000..4774add5 --- /dev/null +++ b/static/icons/swap.svg @@ -0,0 +1,3 @@ + + + -- cgit v1.2.3