aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(static)
diff options
context:
space:
mode:
authorMurillo Pinheiro de Oliveira <[email protected]>2024-02-22 19:33:20 -0300
committerMurillo Pinheiro de Oliveira <[email protected]>2024-02-22 19:33:20 -0300
commitd6bb2912162414d14b5a87a4958c64488ae3f83b (patch)
treeaf0ec31f96ede1c592575fd47a572a5787ed8250 /src/routes/(static)
parent5c80d3b511d7f83486d0f195400f382e5b721ec3 (diff)
downloadcoinos-ui-d6bb2912162414d14b5a87a4958c64488ae3f83b.tar.gz
coinos-ui-d6bb2912162414d14b5a87a4958c64488ae3f83b.zip
updated: dark theme and layout pages
Diffstat (limited to 'src/routes/(static)')
-rw-r--r--src/routes/(static)/+layout.svelte6
-rw-r--r--src/routes/(static)/docs/+page.svelte70
-rw-r--r--src/routes/(static)/privacy/+page.svelte31
3 files changed, 81 insertions, 26 deletions
diff --git a/src/routes/(static)/+layout.svelte b/src/routes/(static)/+layout.svelte
index 13073d5a..cfee0dd1 100644
--- a/src/routes/(static)/+layout.svelte
+++ b/src/routes/(static)/+layout.svelte
@@ -9,7 +9,11 @@
<SvelteToast options={{ reversed: true, intro: { y: 192 } }} />
<LandingHeader {user} />
-<main class="container flex px-10 md:px-40 mx-auto min-h-[600px] pb-20">
+<main class="container flex px-10 lg:px-40 mx-auto min-h-[600px] pb-20">
<slot />
</main>
<Footer />
+
+<style>
+
+</style> \ 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 @@
</script>
<div class="space-y-8 lg:text-xl mt-20 pt-20 md:pt-0 w-full max-w-full">
- <h1 class="text-4xl">Documentation</h1>
+ <h1 class="text-5xl f_bebas_neue tracking-[0.2rem] font-bold">Documentation</h1>
- <p class="text-secondary">
+ <p class="text-secondary dark:text-gray-200">
Swapee has a simple REST API that can be used to register accounts and make payments and
queries.
</p>
- <h2 class="text-2xl">API Base URL</h2>
- <div class="bg-black text-white rounded-lg p-4 flex gap-4">
+ <h2 class="text-3xl font-semibold f_bebas_neue tracking-[0.2rem]">API Base URL</h2>
+ <div class="bg-stone-900 dark:bg-stone-800 text-white rounded-lg p-4 px-5 flex gap-4">
<div>{api}</div>
<button class="ml-auto my-auto invert opacity-90" on:click={() => copy(api)}
><Icon icon="copy" style="w-10 max-w-none" /></button
>
</div>
- <h2 class="text-2xl">Auth Token</h2>
- <p class="text-secondary">
+ <h2 class="text-3xl font-semibold f_bebas_neue tracking-[0.2rem]">Auth Token</h2>
+ <p class="text-secondary dark:text-gray-200">
{#if user && token}
This token authorizes you to use the API as <b>{user.username}</b>.
{:else}
@@ -42,7 +42,7 @@
Save it in a variable called <b>$token</b> to run the examples.
</p>
- <div class="bg-black text-white rounded-lg p-4 flex gap-4">
+ <div class="bg-stone-900 dark:bg-stone-800 text-white rounded-lg p-4 px-5 flex gap-4">
<div class="w-full break-all">{tokenSample}</div>
<button
class="ml-auto my-auto invert opacity-90"
@@ -51,20 +51,20 @@
>
</div>
- <h2 class="text-2xl">POST /register</h2>
- <p class="text-secondary">
+ <h2 class="text-3xl font-semibold f_bebas_neue tracking-[0.2rem]">POST /register</h2>
+ <p class="text-secondary dark:text-gray-200">
Register a new user account with a username and password
</p>
<Code sample="register" />
- <h2 class="text-2xl">POST /login</h2>
- <p class="text-secondary">Login to an account to get its auth token</p>
+ <h2 class="text-3xl font-semibold f_bebas_neue tracking-[0.2rem]">POST /login</h2>
+ <p class="text-secondary dark:text-gray-200">Login to an account to get its auth token</p>
<Code sample="login" />
- <h2 class="text-2xl">POST /invoice</h2>
- <p class="text-secondary">Create an invoice.</p>
+ <h2 class="text-3xl font-semibold f_bebas_neue tracking-[0.2rem]">POST /invoice</h2>
+ <p class="text-secondary dark:text-gray-200">Create an invoice.</p>
- <div class="text-secondary">
+ <div class="text-secondary dark:text-gray-200">
<div>Request params</div>
<div class="grid grid-cols-3 ml-2">
<div class="font-bold">type</div>
@@ -93,28 +93,28 @@
<p>Specify a webhook to be called when an invoice is paid</p>
<Code sample="webhook" />
- <h2 class="text-2xl">GET /invoice/:hash</h2>
- <p class="text-secondary">
+ <h2 class="text-3xl font-semibold f_bebas_neue tracking-[0.2rem]">GET /invoice/:hash</h2>
+ <p class="text-secondary dark:text-gray-200">
Fetch an invoice by passing a bitcoin address or lightning payment hash
</p>
<Code sample="fetchInvoice" />
- <h2 class="text-2xl">POST /payments</h2>
- <p class="text-secondary">Send a lightning payment</p>
+ <h2 class="text-3xl font-semibold f_bebas_neue tracking-[0.2rem]">POST /payments</h2>
+ <p class="text-secondary dark:text-gray-200">Send a lightning payment</p>
<Code sample="lightning" />
- <p class="text-secondary">Send a bitcoin payment</p>
+ <p class="text-secondary dark:text-gray-200">Send a bitcoin payment</p>
<Code sample="bitcoin" />
- <p class="text-secondary">Send an internal payment to another user</p>
+ <p class="text-secondary dark:text-gray-200">Send an internal payment to another user</p>
<Code sample="internal" />
- <h2 class="text-2xl">GET /payments</h2>
- <p class="text-secondary">
+ <h2 class="text-3xl font-semibold f_bebas_neue tracking-[0.2rem]">GET /payments</h2>
+ <p class="text-secondary dark:text-gray-200">
Get all payments sent or received by the current user
</p>
- <div class="text-secondary">
+ <div class="text-secondary dark:text-gray-200">
<div>Query params</div>
<div class="grid grid-cols-3 ml-2">
<div class="font-bold">start</div>
@@ -129,3 +129,27 @@
</div>
<Code sample="payments" />
</div>
+
+<style>
+ h2 + p {
+ margin-top: 0.75rem !important;
+ }
+
+ h2 {
+ display: inline-block;
+ position: relative;
+ }
+
+ h2::after{
+ content: '';
+ position: absolute;
+ bottom: 0;
+ right: 0;
+ width: 100%;
+ left: 50%;
+ height: 3px;
+ border-radius: 2px;
+ background: #7105f3;
+ transform: translateX(-50%);
+}
+</style> \ 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 @@
-<div class="block space-y-5">
- <h1 class="text-2xl">Privacy Policy</h1>
+<div class="block space-y-5 mt-28 md:mt-8">
+ <h1 class="text-5xl f_bebas_neue tracking-[0.2rem] font-bold">Privacy Policy</h1>
<p>
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.
</p>
</div>
+
+<style>
+ h2 + p {
+ margin-top: 0.4rem !important;
+ margin-bottom: 1rem !important;
+ }
+
+ h2 {
+ display: inline-block;
+ position: relative;
+ font-weight: 700;
+ text-transform: uppercase;
+ }
+
+ /* h2::after{
+ content: '';
+ position: absolute;
+ bottom: 0;
+ right: 0;
+ width: 100%;
+ left: 50%;
+ height: 3px;
+ border-radius: 2px;
+ background: #7105f3;
+ transform: translateX(-50%);
+ } */
+ </style> \ No newline at end of file