From d9b3fb663d5b5c2bcaa55d73b1ad28a52ddf2495 Mon Sep 17 00:00:00 2001 From: Arman Date: Fri, 7 Mar 2025 12:03:17 +0100 Subject: [PATCH] feat: overview screen --- src/lib/components/emptySearch.svelte | 40 +++-- src/lib/components/git/repositories.svelte | 151 ++++++++++-------- .../functions/create-function/+page.svelte | 108 ++++++------- .../functions/templates/+page.svelte | 15 -- .../template-[template]/+page.svelte | 10 -- 5 files changed, 155 insertions(+), 169 deletions(-) diff --git a/src/lib/components/emptySearch.svelte b/src/lib/components/emptySearch.svelte index 5a0b7e00d..220a79f3c 100644 --- a/src/lib/components/emptySearch.svelte +++ b/src/lib/components/emptySearch.svelte @@ -1,26 +1,32 @@ - - - - - - - + + + + + + + + -{#if !hidePagination} -
-

Total results: 0

- -
-{/if} + {#if !hidePagination} + +

Total results: 0

+ +
+ {/if} +
diff --git a/src/lib/components/git/repositories.svelte b/src/lib/components/git/repositories.svelte index 53f1fafc9..3e3c584ef 100644 --- a/src/lib/components/git/repositories.svelte +++ b/src/lib/components/git/repositories.svelte @@ -1,5 +1,5 @@ - +
- + - + Quick start - + {#each starterTemplateRuntimes.slice(0, 6) as template} {@const iconName = template.name.split('-')[0]} {@const runtimeDetail = baseRuntimesList.find( @@ -133,27 +133,23 @@ empty={!template.name}> - - {runtimeDetail?.name} - {#if runtimeDetail?.name?.toLowerCase() === 'deno'} - New - {/if} + + + {runtimeDetail?.name} + {#if runtimeDetail?.name?.toLowerCase() === 'deno'} + + {/if} + {/each} - - {#if starterTemplateRuntimes.length < 6} - - - - - More runtimes coming soon - - {/if} @@ -161,6 +157,8 @@ {#each featuredTemplatesList as template} { trackEvent('click_connect_template', { @@ -168,7 +166,7 @@ template: template.name }); }}> - + {template.name} - + {template.tagline} @@ -189,7 +189,7 @@ {/each} - + Browse all templates @@ -210,44 +210,38 @@ >. -
- - - {#if isSelfHosted && !isVcsEnabled} -
+ {#if isSelfHosted && !isVcsEnabled}
- - Connect your self-hosted instance to Git - -

- Configure your self-hosted instance to connect your function to a Git - repository. - Learn more. -

+ class="overlay u-flex-vertical u-position-absolute u-height-100-percent u-width-full-line u-z-index-1 u-text-center u-inset-0" + style="border-radius: var(--border-radius-medium); "> +
+ + Connect your self-hosted instance to Git + +

+ Configure your self-hosted instance to connect your function to a Git + repository. + Learn more. +

+
-
- {/if} + {/if} +
diff --git a/src/routes/(console)/project-[project]/functions/templates/+page.svelte b/src/routes/(console)/project-[project]/functions/templates/+page.svelte index 1af2d5cbe..d909ec75b 100644 --- a/src/routes/(console)/project-[project]/functions/templates/+page.svelte +++ b/src/routes/(console)/project-[project]/functions/templates/+page.svelte @@ -289,18 +289,3 @@ - - diff --git a/src/routes/(console)/project-[project]/functions/templates/template-[template]/+page.svelte b/src/routes/(console)/project-[project]/functions/templates/template-[template]/+page.svelte index 2a0a1ceba..215d902ce 100644 --- a/src/routes/(console)/project-[project]/functions/templates/template-[template]/+page.svelte +++ b/src/routes/(console)/project-[project]/functions/templates/template-[template]/+page.svelte @@ -100,13 +100,3 @@ - -