diff --git a/gitbutler-ui/src/routes/[projectId]/components/BranchCard.svelte b/gitbutler-ui/src/routes/[projectId]/components/BranchCard.svelte index a8816b54a..236b46484 100644 --- a/gitbutler-ui/src/routes/[projectId]/components/BranchCard.svelte +++ b/gitbutler-ui/src/routes/[projectId]/components/BranchCard.svelte @@ -27,6 +27,7 @@ import { SETTINGS_CONTEXT, type SettingsStore } from '$lib/settings/userSettings'; import BranchCommits from './BranchCommits.svelte'; import type { Project } from '$lib/backend/projects'; + import ImgThemed from '$lib/components/ImgThemed.svelte'; import DropzoneOverlay from './DropzoneOverlay.svelte'; @@ -217,13 +218,39 @@ {/if} {:else if branch.commits.length == 0}
-

This is a new branch. Let's start creating!

-

Get some work done, then throw some files my way!

+
+
+ +
+

+ This is a new branch.
Let's start creating! +

+

+ Get some work done,
then throw some files my way +

+
{:else}
-

No uncommitted changes on this branch

+
+
+ +
+

+ No uncommitted changes on this branch +

+
{/if} - -
- textFilter$.next(e.detail)} /> -
- {#if $filteredBranches$?.length > 0} + {#if $filteredBranches$?.length > 0} + +
+ textFilter$.next(e.detail)} + /> +
{#each $filteredBranches$ as branch} {/each} - {:else if $branches$?.length > 0} - No branches match your filter - {:else} - You have no branches - {/if} +
+
+ {:else if $branches$.length > 0} +
+
+ +
+ No branches match your filter
- + {:else} +
+
+ +
+ You have no branches +
+ {/if}
@@ -203,6 +233,28 @@ .content { display: flex; flex-direction: column; + justify-content: center; + align-items: center; gap: var(--space-2); } + + /* EMPTY STATE */ + .branch-list__empty-state { + flex: 1; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + gap: var(--space-10); + } + + .branch-list__empty-state__image { + width: 8.125rem; + } + + .branch-list__empty-state__caption { + color: var(--clr-theme-scale-ntrl-60); + text-align: center; + max-width: 10rem; + } diff --git a/gitbutler-ui/src/styles/text-classes.css b/gitbutler-ui/src/styles/text-classes.css index 2bbd682d4..93f765629 100644 --- a/gitbutler-ui/src/styles/text-classes.css +++ b/gitbutler-ui/src/styles/text-classes.css @@ -58,6 +58,13 @@ line-height: var(--base-line-height); } +.text-base-15 { + font-family: var(--base-font-family); + font-size: 0.938rem; + font-weight: var(--base-font-weight); + line-height: var(--base-line-height); +} + .text-base-16 { font-family: var(--base-font-family); font-size: 1rem; @@ -108,6 +115,13 @@ line-height: var(--text-body-line-height); } +.text-base-body-15 { + font-family: var(--base-font-family); + font-size: 0.938rem; + font-weight: var(--base-font-weight); + line-height: var(--text-body-line-height); +} + .text-base-body-16 { font-family: var(--base-font-family); font-size: 1rem; diff --git a/gitbutler-ui/static/images/lane-new-dark.webp b/gitbutler-ui/static/images/lane-new-dark.webp new file mode 100644 index 000000000..bada67169 Binary files /dev/null and b/gitbutler-ui/static/images/lane-new-dark.webp differ diff --git a/gitbutler-ui/static/images/lane-new-light.webp b/gitbutler-ui/static/images/lane-new-light.webp new file mode 100644 index 000000000..8aae926bc Binary files /dev/null and b/gitbutler-ui/static/images/lane-new-light.webp differ diff --git a/gitbutler-ui/static/images/lane-no-changes-dark.webp b/gitbutler-ui/static/images/lane-no-changes-dark.webp new file mode 100644 index 000000000..a69058bb6 Binary files /dev/null and b/gitbutler-ui/static/images/lane-no-changes-dark.webp differ diff --git a/gitbutler-ui/static/images/lane-no-changes-light.webp b/gitbutler-ui/static/images/lane-no-changes-light.webp new file mode 100644 index 000000000..778d3f7c0 Binary files /dev/null and b/gitbutler-ui/static/images/lane-no-changes-light.webp differ diff --git a/gitbutler-ui/static/images/no-branches-dark.webp b/gitbutler-ui/static/images/no-branches-dark.webp new file mode 100644 index 000000000..1d6782b35 Binary files /dev/null and b/gitbutler-ui/static/images/no-branches-dark.webp differ diff --git a/gitbutler-ui/static/images/no-branches-light.webp b/gitbutler-ui/static/images/no-branches-light.webp new file mode 100644 index 000000000..3a00c90da Binary files /dev/null and b/gitbutler-ui/static/images/no-branches-light.webp differ