feat: added if empty pic

This commit is contained in:
2025-05-12 00:00:54 +03:00
parent 32984642e5
commit d61b1ccffe
2 changed files with 17 additions and 1 deletions

12
src/assets/main.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 2.3 MiB

View File

@@ -1,6 +1,7 @@
//! Файл большой, потому что было лень делить на компоненты //! Файл большой, потому что было лень делить на компоненты
import Task from "@/components/task"; import Task from "@/components/task";
import MainSvg from "@/assets/main.svg";
import ModalCalendar from "@/components/ModalCalendar"; import ModalCalendar from "@/components/ModalCalendar";
import ModalTags, { ITags } from "@/components/ModalTags"; import ModalTags, { ITags } from "@/components/ModalTags";
import Button from "@/components/ui/Button"; import Button from "@/components/ui/Button";
@@ -680,7 +681,10 @@ const ProfileTasks: FunctionComponent = () => {
</div> </div>
</> </>
) : ( ) : (
<div class="flex w-full flex-1 flex-col items-center justify-center text-2xl">Начни уже сегодня!</div> <div class="my-auto flex h-full w-full flex-col items-center justify-start">
<img src={MainSvg} />
<div class="flex w-full flex-1 flex-col items-center justify-center text-2xl">Начни уже сегодня!</div>
</div>
) )
) : ( ) : (
<div class={classes.tasks_container}> <div class={classes.tasks_container}>