adds empty states for missing trail info
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
import { theme } from "$lib/stores/theme_store";
|
||||
|
||||
import { _ } from "svelte-i18n";
|
||||
export let width: number = 256;
|
||||
export let width: number = 192;
|
||||
</script>
|
||||
|
||||
<div class="flex flex-col justify-center items-center gap-y-4">
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<script lang="ts">
|
||||
import emptyStateDescriptionDark from "$lib/assets/svgs/empty_states/empty_state_description_dark.svg";
|
||||
import emptyStateDescriptionLight from "$lib/assets/svgs/empty_states/empty_state_description_light.svg";
|
||||
import { theme } from "$lib/stores/theme_store";
|
||||
|
||||
import { _ } from "svelte-i18n";
|
||||
export let width: number = 192;
|
||||
</script>
|
||||
|
||||
<div class="flex flex-col justify-center items-center gap-y-4">
|
||||
<img
|
||||
style="width: {width}px"
|
||||
class="rounded-full aspect-square"
|
||||
src={$theme === "light" ? emptyStateDescriptionLight : emptyStateDescriptionDark}
|
||||
alt="Empty State showing a wanderer going into the distance"
|
||||
/>
|
||||
|
||||
<h3 class="text-xl font-medium text-center text-gray-500">{$_("no-description-for-now")}...</h3>
|
||||
</div>
|
||||
@@ -0,0 +1,19 @@
|
||||
<script lang="ts">
|
||||
import emptyStateTrailDark from "$lib/assets/svgs/empty_states/empty_state_trail_dark.svg";
|
||||
import emptyStateTrailLight from "$lib/assets/svgs/empty_states/empty_state_trail_light.svg";
|
||||
import { theme } from "$lib/stores/theme_store";
|
||||
|
||||
import { _ } from "svelte-i18n";
|
||||
export let width: number = 192;
|
||||
</script>
|
||||
|
||||
<div class="flex flex-col justify-center items-center gap-y-4">
|
||||
<img
|
||||
style="width: {width}px"
|
||||
class="rounded-full aspect-square"
|
||||
src={$theme === "light" ? emptyStateTrailLight : emptyStateTrailDark}
|
||||
alt="Empty State showing a wanderer going into the distance"
|
||||
/>
|
||||
|
||||
<h3 class="text-xl font-medium text-center text-gray-500">{$_("no-photos-here")}...</h3>
|
||||
</div>
|
||||
@@ -0,0 +1,19 @@
|
||||
<script lang="ts">
|
||||
import emptyStateWaypointDark from "$lib/assets/svgs/empty_states/empty_state_waypoint_dark.svg";
|
||||
import emptyStateWaypointLight from "$lib/assets/svgs/empty_states/empty_state_waypoint_light.svg";
|
||||
import { theme } from "$lib/stores/theme_store";
|
||||
|
||||
import { _ } from "svelte-i18n";
|
||||
export let width: number = 192;
|
||||
</script>
|
||||
|
||||
<div class="flex flex-col justify-center items-center gap-y-4">
|
||||
<img
|
||||
style="width: {width}px"
|
||||
class="rounded-full aspect-square"
|
||||
src={$theme === "light" ? emptyStateWaypointLight : emptyStateWaypointDark}
|
||||
alt="Empty State showing a wanderer going into the distance"
|
||||
/>
|
||||
|
||||
<h3 class="text-xl font-medium text-center text-gray-500">{$_("no-waypoints-yet")}...</h3>
|
||||
</div>
|
||||
Reference in New Issue
Block a user