diff options
| author | Adam Soltys <[email protected]> | 2023-12-06 20:33:45 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-06 20:33:45 -0800 |
| commit | 6b3ff247e4125941a611369ed9bb74a2ffca57d8 (patch) | |
| tree | 91da939350398188834e5e002bc78011a2a8e5bf /src/routes/+layout.svelte | |
| parent | bb59ac3e4e7fcbf7f8a48820eab0ee21558183fc (diff) | |
| parent | d69c34cf389639eac82d24d1f1b02f038ef42399 (diff) | |
| download | coinos-ui-6b3ff247e4125941a611369ed9bb74a2ffca57d8.tar.gz coinos-ui-6b3ff247e4125941a611369ed9bb74a2ffca57d8.zip | |
Merge branch 'master' into swapee
Diffstat (limited to 'src/routes/+layout.svelte')
| -rw-r--r-- | src/routes/+layout.svelte | 42 |
1 files changed, 25 insertions, 17 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index d6ea7db7..fd405e93 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,8 +1,14 @@ <script> - import '../app.css'; + import { PUBLIC_DOMAIN } from "$env/static/public"; + import "../app.css"; + import { loading, t } from "$lib/translations"; - export let data; - let { host, pathname } = data; + export let data; + let { pathname } = data; + + let host = PUBLIC_DOMAIN.includes("localhost") + ? `http://${PUBLIC_DOMAIN}` + : `https://${PUBLIC_DOMAIN}`; </script> <svelte:head> @@ -10,30 +16,32 @@ <meta property="og:title" content="swapee" /> <meta name="twitter:title" content="swapee" /> - <meta property="og:image" content={`${host}/icons/logo.svg`} /> + <meta property="og:image" content={`${host}/images/logo.png`} /> - <meta property="og:type" content="website" /> - <meta property="og:description" content="An easy to use bitcoin web wallet" /> - <meta name="description" content="An easy to use bitcoin web wallet" /> + <meta property="og:type" content="website" /> + <meta property="og:description" content="An easy to use bitcoin web wallet" /> + <meta name="description" content="An easy to use bitcoin web wallet" /> <meta name="keywords" content="swapee easy bitcoin web wallet" /> - <meta name="twitter:image" content={`${host}/icons/logo.svg`} /> - <meta name="twitter:card" content="summary_large_image" /> + <meta name="twitter:image" content={`${host}/images/logo.png`} /> + <meta name="twitter:card" content="summary_large_image" /> <meta property="og:url" content={host + pathname} /> <meta name="twitter:site" content="@swapeewallet" /> <meta name="twitter:creator" content="@swapeewallet" /> </svelte:head> -<slot /> +{#if !$loading} + <slot /> +{/if} <style global> - :root { - --toastContainerTop: auto; - --toastContainerRight: auto; - --toastContainerBottom: 8rem; - --toastContainerLeft: calc(50vw - 8rem); - --toastBackground: #292929; - } + :root { + --toastContainerTop: auto; + --toastContainerRight: auto; + --toastContainerBottom: 8rem; + --toastContainerLeft: calc(50vw - 8rem); + --toastBackground: #292929; + } </style> |
