design: improve placeholders
This commit is contained in:
4 files changed
+8
-7
No files matched your search
@@ -173,7 +173,7 @@
|
|||||||
<ul class="flex flex-col list-none" bind:this={listEl}>
|
<ul class="flex flex-col list-none" bind:this={listEl}>
|
||||||
{#key posts}
|
{#key posts}
|
||||||
{#if posts?.length == 0}
|
{#if posts?.length == 0}
|
||||||
<div class="h-full grid place-items-center">
|
<div class="h-full grid place-items-center my-8">
|
||||||
<Placeholder
|
<Placeholder
|
||||||
icon={ArchiveBox}
|
icon={ArchiveBox}
|
||||||
title={$t('routes.frontpage.empty.title')}
|
title={$t('routes.frontpage.empty.title')}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<div class="flex flex-col gap-2 items-center max-w-sm">
|
<div class="flex flex-col gap-2 items-center max-w-sm">
|
||||||
{#if icon}
|
{#if icon}
|
||||||
<div
|
<div
|
||||||
class="bg-slate-100 dark:bg-zinc-900 p-3 rounded-xl text-primary-900 dark:text-primary-100"
|
class="bg-slate-100 dark:bg-zinc-900 p-3 rounded-2xl text-primary-900 dark:text-primary-100"
|
||||||
>
|
>
|
||||||
<Icon src={icon} size="28" solid />
|
<Icon src={icon} size="28" solid />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -272,7 +272,7 @@
|
|||||||
"noResults": {
|
"noResults": {
|
||||||
"title": "No results",
|
"title": "No results",
|
||||||
"description": "There are no results that match that filter. Try refining your search.",
|
"description": "There are no results that match that filter. Try refining your search.",
|
||||||
"alt": "Search across the fediverse"
|
"alt": "Search for anything across the fediverse."
|
||||||
},
|
},
|
||||||
"top": "Top results",
|
"top": "Top results",
|
||||||
"other": "Other results"
|
"other": "Other results"
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
import {
|
import {
|
||||||
AdjustmentsHorizontal,
|
AdjustmentsHorizontal,
|
||||||
ChevronDoubleDown,
|
ChevronDoubleDown,
|
||||||
|
GlobeAmericas,
|
||||||
Icon,
|
Icon,
|
||||||
MagnifyingGlass,
|
MagnifyingGlass,
|
||||||
} from 'svelte-hero-icons'
|
} from 'svelte-hero-icons'
|
||||||
@@ -127,11 +128,11 @@
|
|||||||
{:else}
|
{:else}
|
||||||
<div class="my-auto">
|
<div class="my-auto">
|
||||||
<Placeholder
|
<Placeholder
|
||||||
icon={MagnifyingGlass}
|
icon={data.results ? MagnifyingGlass : GlobeAmericas}
|
||||||
title={$t('routes.search.noResults.title')}
|
title={$t('routes.search.noResults.title')}
|
||||||
description={data.filters.value.query == ''
|
description={data.results
|
||||||
? $t('routes.search.noResults.alt')
|
? $t('routes.search.noResults.description')
|
||||||
: $t('routes.search.noResults.description')}
|
: $t('routes.search.noResults.alt')}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in new issue
Block a user