From d6bb2912162414d14b5a87a4958c64488ae3f83b Mon Sep 17 00:00:00 2001 From: Murillo Pinheiro de Oliveira Date: Thu, 22 Feb 2024 19:33:20 -0300 Subject: updated: dark theme and layout pages --- src/components/Code.svelte | 2 +- src/components/Footer.svelte | 99 ++++++++++++---------------- src/components/LandingHeader.svelte | 40 +++++------ src/components/buttons/ThemeToggle.svelte | 2 +- src/routes/(app)/send/[...text]/+page.svelte | 6 +- src/routes/(app)/support/+page.svelte | 10 +-- src/routes/(static)/+layout.svelte | 6 +- src/routes/(static)/docs/+page.svelte | 70 +++++++++++++------- src/routes/(static)/privacy/+page.svelte | 31 ++++++++- src/routes/+page.svelte | 67 ++++--------------- 10 files changed, 168 insertions(+), 165 deletions(-) (limited to 'src') diff --git a/src/components/Code.svelte b/src/components/Code.svelte index c8c1058a..9d54cc7b 100644 --- a/src/components/Code.svelte +++ b/src/components/Code.svelte @@ -6,7 +6,7 @@
{samples[sample]}
diff --git a/src/components/Footer.svelte b/src/components/Footer.svelte index 92fb23c6..f77e6b41 100644 --- a/src/components/Footer.svelte +++ b/src/components/Footer.svelte @@ -14,62 +14,47 @@ { url: "/support", titleID: "support" }, ]; + diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte index 009ab063..e0a2aad0 100644 --- a/src/components/LandingHeader.svelte +++ b/src/components/LandingHeader.svelte @@ -19,13 +19,14 @@
-
\ No newline at end of file diff --git a/src/routes/(static)/docs/+page.svelte b/src/routes/(static)/docs/+page.svelte index 451b57f3..0f5e20cf 100644 --- a/src/routes/(static)/docs/+page.svelte +++ b/src/routes/(static)/docs/+page.svelte @@ -15,23 +15,23 @@
-

Documentation

+

Documentation

-

+

Swapee has a simple REST API that can be used to register accounts and make payments and queries.

-

API Base URL

-
+

API Base URL

+
{api}
-

Auth Token

-

+

Auth Token

+

{#if user && token} This token authorizes you to use the API as {user.username}. {:else} @@ -42,7 +42,7 @@ Save it in a variable called $token to run the examples.

-
+
{tokenSample}
-

POST /register

-

+

POST /register

+

Register a new user account with a username and password

-

POST /login

-

Login to an account to get its auth token

+

POST /login

+

Login to an account to get its auth token

-

POST /invoice

-

Create an invoice.

+

POST /invoice

+

Create an invoice.

-
+
Request params
type
@@ -93,28 +93,28 @@

Specify a webhook to be called when an invoice is paid

-

GET /invoice/:hash

-

+

GET /invoice/:hash

+

Fetch an invoice by passing a bitcoin address or lightning payment hash

-

POST /payments

-

Send a lightning payment

+

POST /payments

+

Send a lightning payment

-

Send a bitcoin payment

+

Send a bitcoin payment

-

Send an internal payment to another user

+

Send an internal payment to another user

-

GET /payments

-

+

GET /payments

+

Get all payments sent or received by the current user

-
+
Query params
start
@@ -129,3 +129,27 @@
+ + \ No newline at end of file diff --git a/src/routes/(static)/privacy/+page.svelte b/src/routes/(static)/privacy/+page.svelte index 4e1e30fa..ffd99f38 100644 --- a/src/routes/(static)/privacy/+page.svelte +++ b/src/routes/(static)/privacy/+page.svelte @@ -1,5 +1,5 @@ -
-

Privacy Policy

+
+

Privacy Policy

At Swapee.me, creators of the mystical Lightning Wallet, we hold your privacy and personal information in the highest regard. This unique privacy policy outlines our commitment to @@ -65,3 +65,30 @@ these mystifying worlds, for we bear no responsibility for their mystical ways.

+ + \ No newline at end of file diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 1b1d8901..1e8b6293 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -3,8 +3,10 @@ import * as Accordion from "$lib/shadcn/components/ui/accordion"; import { Separator } from "$lib/shadcn/components/ui/separator"; import { page } from '$app/stores'; + import { t } from "$lib/translations"; import { scroll } from '$lib/utils'; import ThemeToggle from "../components/buttons/ThemeToggle.svelte"; + import Footer from "../components/Footer.svelte"; export let data; let about, faq; @@ -134,7 +136,7 @@ The easiest way to get
started with bitcoin. -

+

A simple but powerful web wallet for everyone. *No software or hardware required.*

Start in Seconds @@ -153,8 +155,8 @@
-
Create your account
-

+

Create your account
+

A username and password is all you need to get started. Don’t forget it!

-
Ask for payments
-

+

Ask for payments
+

It’s the same as you normally would traditionally, but with bitcoin.

@@ -174,8 +176,8 @@
-
That's all!
-

+

That's all!
+

Spend your coins immediately or save it and watch it grow, the choice is yours.

@@ -195,7 +197,7 @@ Lightning Network
Brings Instant Payments -

+

Say goodbye to the headaches of waiting for bank settlements and dealing with chargebacks with our payment solution. With instant settlement and no 3% credit card processing fees, merchants can enjoy hassle-free retail payments. @@ -232,7 +234,7 @@

Simple to uses

-

+

Just enter an amount in your local currency, share the QR code and you’re done. We do all the heavy lifting so you can focus on your business. You always have the option of taking custody of your funds by withdrawing instantly at any time. @@ -263,7 +265,7 @@

Brand it your way!

-

+

You have complete control over your profile page's aesthetic. Customize it with your preferred color scheme, avatar, and banner to reflect your brand, personality and interests. @@ -301,7 +303,7 @@

{askedQuestionAccordion.title}

- +

{askedQuestionAccordion.description}

@@ -330,45 +332,4 @@
- - +