refactor: empty state illustrations

This commit is contained in:
liyasthomas
2021-11-03 16:10:06 +05:30
parent 22ac13f2f0
commit 75e1adb7b3
58 changed files with 1276 additions and 25 deletions

View File

@@ -95,6 +95,11 @@
v-if="authType === 'none'"
class="flex flex-col text-secondaryLight p-4 items-center justify-center"
>
<img
:src="`/images/states/${$colorMode.value}/login.svg`"
loading="lazy"
class="flex-col my-4 object-contain object-center h-16 w-16 inline-flex"
/>
<span class="text-center pb-4">
{{ $t("empty.authorization") }}
</span>

View File

@@ -65,6 +65,11 @@
v-if="contentType == null"
class="flex flex-col text-secondaryLight p-4 items-center justify-center"
>
<img
:src="`/images/states/${$colorMode.value}/upload_single_file.svg`"
loading="lazy"
class="flex-col my-4 object-contain object-center h-16 w-16 inline-flex"
/>
<span class="text-center pb-4">
{{ $t("empty.body") }}
</span>

View File

@@ -153,6 +153,11 @@
v-if="bodyParams.length === 0"
class="flex flex-col text-secondaryLight p-4 items-center justify-center"
>
<img
:src="`/images/states/${$colorMode.value}/upload_single_file.svg`"
loading="lazy"
class="flex-col my-4 object-contain object-center h-16 w-16 inline-flex"
/>
<span class="text-center pb-4">
{{ $t("empty.body") }}
</span>

View File

@@ -144,6 +144,18 @@
justify-center
"
>
<img
:src="`/images/states/${$colorMode.value}/add_category.svg`"
loading="lazy"
class="
flex-col
my-4
object-contain object-center
h-16
w-16
inline-flex
"
/>
<span class="text-center pb-4">
{{ $t("empty.headers") }}
</span>

View File

@@ -137,6 +137,18 @@
justify-center
"
>
<img
:src="`/images/states/${$colorMode.value}/add_files.svg`"
loading="lazy"
class="
flex-col
my-4
object-contain object-center
h-16
w-16
inline-flex
"
/>
<span class="text-center pb-4">
{{ $t("empty.parameters") }}
</span>

View File

@@ -68,11 +68,22 @@
justify-center
"
>
<i class="opacity-75 pb-2 material-icons">cloud_off</i>
<span class="text-center pb-2">
<img
:src="`/images/states/${$colorMode.value}/youre_lost.svg`"
loading="lazy"
class="
flex-col
my-4
object-contain object-center
h-32
w-32
inline-flex
"
/>
<span class="text-center mb-2">
{{ $t("error.network_fail") }}
</span>
<span class="text-center pb-4">
<span class="text-center mb-4 max-w-sm">
{{ $t("helpers.network_fail") }}
</span>
<ButtonSecondary

View File

@@ -78,6 +78,11 @@
v-else
class="flex flex-col text-secondaryLight p-4 items-center justify-center"
>
<img
:src="`/images/states/${$colorMode.value}/validation.svg`"
loading="lazy"
class="flex-col my-4 object-contain object-center h-16 w-16 inline-flex"
/>
<span class="text-center pb-2">
{{ $t("empty.tests") }}
</span>