diff --git a/src/App/Header/Authenticate.svelte b/src/App/Header/Authenticate.svelte index 5ee7e414c..e32faec9c 100644 --- a/src/App/Header/Authenticate.svelte +++ b/src/App/Header/Authenticate.svelte @@ -8,7 +8,6 @@ import ConnectModal from "@app/modals/ConnectModal.svelte"; import IconButton from "@app/components/IconButton.svelte"; import IconSmall from "@app/components/IconSmall.svelte"; - import Link from "@app/components/Link.svelte"; import NodeId from "@app/components/NodeId.svelte"; import Popover from "@app/components/Popover.svelte"; @@ -17,23 +16,14 @@ .container { display: flex; flex-direction: column; - gap: 1.5rem; - } - .host { - display: flex; - justify-content: space-between; - align-items: center; - font-size: var(--font-size-small); + gap: 0.5rem; + min-width: 18rem; } .status { font-size: var(--font-size-tiny); color: var(--color-fill-gray); text-align: left; } - .separator { - height: 1px; - background-color: var(--color-border-hint); - } .avatar { height: 1.5rem; color: var(--color-fill-primary) !important; @@ -53,15 +43,11 @@ top: -0.375rem; right: -0.375rem; } - .row { - display: flex; - flex-direction: column; - gap: 0.5rem; - } .user { display: flex; justify-content: space-between; align-items: center; + gap: 1rem; } .identity { color: var(--color-fill-secondary); @@ -70,10 +56,7 @@ {#if $httpdStore.state === "authenticated"} - + diff --git a/src/App/Header/Connect.svelte b/src/App/Header/Connect.svelte index 60b084b8f..ac2e0a233 100644 --- a/src/App/Header/Connect.svelte +++ b/src/App/Header/Connect.svelte @@ -1,12 +1,17 @@ {#if $httpdStore.state === "stopped"} - + - -
-
- Use the - Radicle CLI - - to connect your device. -
-
- Run the following command to start the httpd daemon. -
- +
+
+ Use the + Radicle CLI + to connect your device.
- +
+ Run the following command to start the httpd daemon. +
+ +
{:else} - + + + +
+
Httpd server running
+ +
+ radicle.local + + + Browse + +
+
+
{/if} diff --git a/src/App/Header/NodeInfo.svelte b/src/App/Header/NodeInfo.svelte index d101f25a8..4a23c45c5 100644 --- a/src/App/Header/NodeInfo.svelte +++ b/src/App/Header/NodeInfo.svelte @@ -1,8 +1,9 @@ @@ -16,16 +17,13 @@ } - + - +
{#if running}
- Use the - Radicle CLI - + Use the + Radicle CLI to stop your node.
{:else}
- Use the - Radicle CLI - + Use the + Radicle CLI to start your node.
{/if} - +
diff --git a/src/components/Button.svelte b/src/components/Button.svelte index c03deb248..c4d766174 100644 --- a/src/components/Button.svelte +++ b/src/components/Button.svelte @@ -8,6 +8,7 @@ | "gray-white" | "none" | "outline" + | "primary-outline" | "primary" | "secondary" | "tab" = "gray"; @@ -137,6 +138,21 @@ color: var(--color-foreground-contrast); } + .primary-outline { + background-color: transparent; + color: var(--color-foreground-contrast); + border: 1px solid var(--color-border-hint); + } + .primary-outline[disabled] { + background-color: transparent; + color: var(--color-fill-gray); + } + .primary-outline:not([disabled]):hover { + background-color: transparent; + border: 1px solid var(--color-fill-primary); + color: var(--color-foreground-contrast); + } + .primary { color: var(--color-fill-primary); background-color: var(--color-fill-merged); @@ -207,6 +223,7 @@ class:gray-white={variant === "gray-white"} class:none={variant === "none"} class:outline={variant === "outline"} + class:primary-outline={variant === "primary-outline"} class:primary={variant === "primary"} class:secondary={variant === "secondary"} class:tab={variant === "tab"}>