From c3c77a47d60cfbb421b81c41f6ba1f120cfd7e11 Mon Sep 17 00:00:00 2001 From: c00b3r Date: Tue, 29 Apr 2025 14:22:36 +0500 Subject: [PATCH] feat: add favirite page --- .env | 2 +- .gitignore | 3 ++ src/components/icons/ChartIcon.tsx | 19 ++++++++++++ src/pages/FavouritesPage.tsx | 46 +++++++++++++++++++++++++++++- src/stores/useFavorites.ts | 18 ++++++++++++ 5 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 src/components/icons/ChartIcon.tsx create mode 100644 src/stores/useFavorites.ts diff --git a/.env b/.env index cd41370..d965dec 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -VITE_API_URL=http://localhost:3000 \ No newline at end of file +VITE_API_URL=http://192.168.1.250:3000 \ No newline at end of file diff --git a/.gitignore b/.gitignore index a547bf3..07536e1 100644 --- a/.gitignore +++ b/.gitignore @@ -7,10 +7,13 @@ yarn-error.log* pnpm-debug.log* lerna-debug.log* + node_modules dist dist-ssr *.local +.env + # Editor directories and files .vscode/* diff --git a/src/components/icons/ChartIcon.tsx b/src/components/icons/ChartIcon.tsx new file mode 100644 index 0000000..0ad054c --- /dev/null +++ b/src/components/icons/ChartIcon.tsx @@ -0,0 +1,19 @@ +function ChartIcon() { + return ( + + + + ) +} + + +export default ChartIcon; \ No newline at end of file diff --git a/src/pages/FavouritesPage.tsx b/src/pages/FavouritesPage.tsx index 1c9e248..f047c92 100644 --- a/src/pages/FavouritesPage.tsx +++ b/src/pages/FavouritesPage.tsx @@ -1,5 +1,49 @@ +import clsx from 'clsx'; +import ProjectSelect from '../components/ProjectSelect'; +import { projects } from '../data/projects'; +import Select from '../components/ui/Select'; +import Button from '../components/ui/Button'; +import ChartIcon from '../components/icons/ChartIcon'; + function FavouritesPage() { - return
FavouritesPage
; + return ( +
+
+
+

+ Favorites +

+ {}} + defaultProject={projects[0]} + /> +
+
+
+
+