adds new empty states
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
<script lang="ts">
|
||||
import emptyStateSearchDark from "$lib/assets/svgs/empty_states/empty_state_search_dark.svg";
|
||||
import emptyStateSearchLight from "$lib/assets/svgs/empty_states/empty_state_search_light.svg";
|
||||
import { theme } from "$lib/stores/theme_store";
|
||||
|
||||
import { _ } from "svelte-i18n";
|
||||
export let width: number = 256;
|
||||
</script>
|
||||
@@ -7,9 +11,9 @@
|
||||
<img
|
||||
style="width: {width}px"
|
||||
class="rounded-full aspect-square"
|
||||
src="/imgs/empty_state.png"
|
||||
src={$theme === "light" ? emptyStateSearchLight : emptyStateSearchDark}
|
||||
alt="Empty State showing a wanderer going into the distance"
|
||||
/>
|
||||
|
||||
<h3 class="text-2xl font-semibold text-center">{$_("no-results")}</h3>
|
||||
<h3 class="text-2xl font-semibold text-center text-gray-500">{$_("no-results")}</h3>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user