diff --git a/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/details.md b/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/details.md deleted file mode 100644 index a513d90..0000000 --- a/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/details.md +++ /dev/null @@ -1,33 +0,0 @@ -# Details - -Date : 2025-03-01 14:18:38 - -Directory c:\\Users\\Admin\\Documents\\VS Code Projects\\project\\services\\frontend\\src - -Total : 18 files, 736 codes, 5 comments, 85 blanks, all 826 lines - -[Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md) - -## Files -| filename | language | code | comment | blank | total | -| :--- | :--- | ---: | ---: | ---: | ---: | -| [src/App.tsx](/src/App.tsx) | TypeScript JSX | 11 | 0 | 3 | 14 | -| [src/components/ui/alert.tsx](/src/components/ui/alert.tsx) | TypeScript JSX | 60 | 0 | 7 | 67 | -| [src/components/ui/badge.tsx](/src/components/ui/badge.tsx) | TypeScript JSX | 41 | 0 | 6 | 47 | -| [src/components/ui/button.tsx](/src/components/ui/button.tsx) | TypeScript JSX | 53 | 0 | 6 | 59 | -| [src/components/ui/card.tsx](/src/components/ui/card.tsx) | TypeScript JSX | 60 | 0 | 9 | 69 | -| [src/components/ui/skeleton.tsx](/src/components/ui/skeleton.tsx) | TypeScript JSX | 11 | 0 | 3 | 14 | -| [src/components/ui/tabs.tsx](/src/components/ui/tabs.tsx) | TypeScript JSX | 64 | 0 | 6 | 70 | -| [src/main.tsx](/src/main.tsx) | TypeScript JSX | 11 | 0 | 2 | 13 | -| [src/pages/CompetitionsPage/components/CompetitionCard/index.tsx](/src/pages/CompetitionsPage/components/CompetitionCard/index.tsx) | TypeScript JSX | 41 | 0 | 5 | 46 | -| [src/pages/CompetitionsPage/components/CompetitionSkeleton/index.tsx](/src/pages/CompetitionsPage/components/CompetitionSkeleton/index.tsx) | TypeScript JSX | 18 | 0 | 2 | 20 | -| [src/pages/CompetitionsPage/components/CompetitionTag/index.tsx](/src/pages/CompetitionsPage/components/CompetitionTag/index.tsx) | TypeScript JSX | 23 | 0 | 3 | 26 | -| [src/pages/CompetitionsPage/index.tsx](/src/pages/CompetitionsPage/index.tsx) | TypeScript JSX | 145 | 4 | 15 | 164 | -| [src/pages/CompetitionsPage/modules/CompetitionGrid/index.tsx](/src/pages/CompetitionsPage/modules/CompetitionGrid/index.tsx) | TypeScript JSX | 41 | 0 | 5 | 46 | -| [src/pages/CompetitionsPage/types.ts](/src/pages/CompetitionsPage/types.ts) | TypeScript | 12 | 0 | 2 | 14 | -| [src/shared/lib/utils.ts](/src/shared/lib/utils.ts) | TypeScript | 5 | 0 | 2 | 7 | -| [src/styles/fonts.css](/src/styles/fonts.css) | CSS | 18 | 0 | 2 | 20 | -| [src/styles/globals.css](/src/styles/globals.css) | CSS | 122 | 0 | 6 | 128 | -| [src/vite-env.d.ts](/src/vite-env.d.ts) | TypeScript | 0 | 1 | 1 | 2 | - -[Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md) \ No newline at end of file diff --git a/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/diff-details.md b/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/diff-details.md deleted file mode 100644 index 146bcff..0000000 --- a/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/diff-details.md +++ /dev/null @@ -1,15 +0,0 @@ -# Diff Details - -Date : 2025-03-01 14:18:38 - -Directory c:\\Users\\Admin\\Documents\\VS Code Projects\\project\\services\\frontend\\src - -Total : 0 files, 0 codes, 0 comments, 0 blanks, all 0 lines - -[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details - -## Files -| filename | language | code | comment | blank | total | -| :--- | :--- | ---: | ---: | ---: | ---: | - -[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details \ No newline at end of file diff --git a/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/diff.csv b/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/diff.csv deleted file mode 100644 index b7d8d75..0000000 --- a/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/diff.csv +++ /dev/null @@ -1,2 +0,0 @@ -"filename", "language", "", "comment", "blank", "total" -"Total", "-", , 0, 0, 0 \ No newline at end of file diff --git a/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/diff.md b/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/diff.md deleted file mode 100644 index 3cdff44..0000000 --- a/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/diff.md +++ /dev/null @@ -1,19 +0,0 @@ -# Diff Summary - -Date : 2025-03-01 14:18:38 - -Directory c:\\Users\\Admin\\Documents\\VS Code Projects\\project\\services\\frontend\\src - -Total : 0 files, 0 codes, 0 comments, 0 blanks, all 0 lines - -[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md) - -## Languages -| language | files | code | comment | blank | total | -| :--- | ---: | ---: | ---: | ---: | ---: | - -## Directories -| path | files | code | comment | blank | total | -| :--- | ---: | ---: | ---: | ---: | ---: | - -[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md) \ No newline at end of file diff --git a/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/diff.txt b/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/diff.txt deleted file mode 100644 index a2fa4a1..0000000 --- a/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/diff.txt +++ /dev/null @@ -1,22 +0,0 @@ -Date : 2025-03-01 14:18:38 -Directory : c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src -Total : 0 files, 0 codes, 0 comments, 0 blanks, all 0 lines - -Languages -+----------+------------+------------+------------+------------+------------+ -| language | files | code | comment | blank | total | -+----------+------------+------------+------------+------------+------------+ -+----------+------------+------------+------------+------------+------------+ - -Directories -+------+------------+------------+------------+------------+------------+ -| path | files | code | comment | blank | total | -+------+------------+------------+------------+------------+------------+ -+------+------------+------------+------------+------------+------------+ - -Files -+----------+----------+------------+------------+------------+------------+ -| filename | language | code | comment | blank | total | -+----------+----------+------------+------------+------------+------------+ -| Total | | 0 | 0 | 0 | 0 | -+----------+----------+------------+------------+------------+------------+ \ No newline at end of file diff --git a/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/results.csv b/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/results.csv deleted file mode 100644 index 0579daf..0000000 --- a/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/results.csv +++ /dev/null @@ -1,20 +0,0 @@ -"filename", "language", "TypeScript", "TypeScript JSX", "CSS", "comment", "blank", "total" -"c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\App.tsx", "TypeScript JSX", 0, 11, 0, 0, 3, 14 -"c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\components\ui\alert.tsx", "TypeScript JSX", 0, 60, 0, 0, 7, 67 -"c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\components\ui\badge.tsx", "TypeScript JSX", 0, 41, 0, 0, 6, 47 -"c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\components\ui\button.tsx", "TypeScript JSX", 0, 53, 0, 0, 6, 59 -"c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\components\ui\card.tsx", "TypeScript JSX", 0, 60, 0, 0, 9, 69 -"c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\components\ui\skeleton.tsx", "TypeScript JSX", 0, 11, 0, 0, 3, 14 -"c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\components\ui\tabs.tsx", "TypeScript JSX", 0, 64, 0, 0, 6, 70 -"c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\main.tsx", "TypeScript JSX", 0, 11, 0, 0, 2, 13 -"c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\pages\CompetitionsPage\components\CompetitionCard\index.tsx", "TypeScript JSX", 0, 41, 0, 0, 5, 46 -"c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\pages\CompetitionsPage\components\CompetitionSkeleton\index.tsx", "TypeScript JSX", 0, 18, 0, 0, 2, 20 -"c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\pages\CompetitionsPage\components\CompetitionTag\index.tsx", "TypeScript JSX", 0, 23, 0, 0, 3, 26 -"c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\pages\CompetitionsPage\index.tsx", "TypeScript JSX", 0, 145, 0, 4, 15, 164 -"c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\pages\CompetitionsPage\modules\CompetitionGrid\index.tsx", "TypeScript JSX", 0, 41, 0, 0, 5, 46 -"c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\pages\CompetitionsPage\types.ts", "TypeScript", 12, 0, 0, 0, 2, 14 -"c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\shared\lib\utils.ts", "TypeScript", 5, 0, 0, 0, 2, 7 -"c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\styles\fonts.css", "CSS", 0, 0, 18, 0, 2, 20 -"c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\styles\globals.css", "CSS", 0, 0, 122, 0, 6, 128 -"c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\vite-env.d.ts", "TypeScript", 0, 0, 0, 1, 1, 2 -"Total", "-", 17, 579, 140, 5, 85, 826 \ No newline at end of file diff --git a/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/results.json b/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/results.json deleted file mode 100644 index da49227..0000000 --- a/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/results.json +++ /dev/null @@ -1 +0,0 @@ -{"file:///c%3A/Users/Admin/Documents/VS%20Code%20Projects/project/services/frontend/src/vite-env.d.ts":{"language":"TypeScript","code":0,"comment":1,"blank":1},"file:///c%3A/Users/Admin/Documents/VS%20Code%20Projects/project/services/frontend/src/main.tsx":{"language":"TypeScript JSX","code":11,"comment":0,"blank":2},"file:///c%3A/Users/Admin/Documents/VS%20Code%20Projects/project/services/frontend/src/styles/fonts.css":{"language":"CSS","code":18,"comment":0,"blank":2},"file:///c%3A/Users/Admin/Documents/VS%20Code%20Projects/project/services/frontend/src/shared/lib/utils.ts":{"language":"TypeScript","code":5,"comment":0,"blank":2},"file:///c%3A/Users/Admin/Documents/VS%20Code%20Projects/project/services/frontend/src/styles/globals.css":{"language":"CSS","code":122,"comment":0,"blank":6},"file:///c%3A/Users/Admin/Documents/VS%20Code%20Projects/project/services/frontend/src/pages/CompetitionsPage/types.ts":{"language":"TypeScript","code":12,"comment":0,"blank":2},"file:///c%3A/Users/Admin/Documents/VS%20Code%20Projects/project/services/frontend/src/pages/CompetitionsPage/components/CompetitionTag/index.tsx":{"language":"TypeScript JSX","code":23,"comment":0,"blank":3},"file:///c%3A/Users/Admin/Documents/VS%20Code%20Projects/project/services/frontend/src/components/ui/tabs.tsx":{"language":"TypeScript JSX","code":64,"comment":0,"blank":6},"file:///c%3A/Users/Admin/Documents/VS%20Code%20Projects/project/services/frontend/src/components/ui/skeleton.tsx":{"language":"TypeScript JSX","code":11,"comment":0,"blank":3},"file:///c%3A/Users/Admin/Documents/VS%20Code%20Projects/project/services/frontend/src/pages/CompetitionsPage/modules/CompetitionGrid/index.tsx":{"language":"TypeScript JSX","code":41,"comment":0,"blank":5},"file:///c%3A/Users/Admin/Documents/VS%20Code%20Projects/project/services/frontend/src/components/ui/card.tsx":{"language":"TypeScript JSX","code":60,"comment":0,"blank":9},"file:///c%3A/Users/Admin/Documents/VS%20Code%20Projects/project/services/frontend/src/components/ui/badge.tsx":{"language":"TypeScript JSX","code":41,"comment":0,"blank":6},"file:///c%3A/Users/Admin/Documents/VS%20Code%20Projects/project/services/frontend/src/components/ui/button.tsx":{"language":"TypeScript JSX","code":53,"comment":0,"blank":6},"file:///c%3A/Users/Admin/Documents/VS%20Code%20Projects/project/services/frontend/src/components/ui/alert.tsx":{"language":"TypeScript JSX","code":60,"comment":0,"blank":7},"file:///c%3A/Users/Admin/Documents/VS%20Code%20Projects/project/services/frontend/src/pages/CompetitionsPage/components/CompetitionSkeleton/index.tsx":{"language":"TypeScript JSX","code":18,"comment":0,"blank":2},"file:///c%3A/Users/Admin/Documents/VS%20Code%20Projects/project/services/frontend/src/App.tsx":{"language":"TypeScript JSX","code":11,"comment":0,"blank":3},"file:///c%3A/Users/Admin/Documents/VS%20Code%20Projects/project/services/frontend/src/pages/CompetitionsPage/components/CompetitionCard/index.tsx":{"language":"TypeScript JSX","code":41,"comment":0,"blank":5},"file:///c%3A/Users/Admin/Documents/VS%20Code%20Projects/project/services/frontend/src/pages/CompetitionsPage/index.tsx":{"language":"TypeScript JSX","code":145,"comment":4,"blank":15}} \ No newline at end of file diff --git a/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/results.md b/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/results.md deleted file mode 100644 index a25ca88..0000000 --- a/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/results.md +++ /dev/null @@ -1,38 +0,0 @@ -# Summary - -Date : 2025-03-01 14:18:38 - -Directory c:\\Users\\Admin\\Documents\\VS Code Projects\\project\\services\\frontend\\src - -Total : 18 files, 736 codes, 5 comments, 85 blanks, all 826 lines - -Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md) - -## Languages -| language | files | code | comment | blank | total | -| :--- | ---: | ---: | ---: | ---: | ---: | -| TypeScript JSX | 13 | 579 | 4 | 72 | 655 | -| CSS | 2 | 140 | 0 | 8 | 148 | -| TypeScript | 3 | 17 | 1 | 5 | 23 | - -## Directories -| path | files | code | comment | blank | total | -| :--- | ---: | ---: | ---: | ---: | ---: | -| . | 18 | 736 | 5 | 85 | 826 | -| . (Files) | 3 | 22 | 1 | 6 | 29 | -| components | 6 | 289 | 0 | 37 | 326 | -| components\\ui | 6 | 289 | 0 | 37 | 326 | -| pages | 6 | 280 | 4 | 32 | 316 | -| pages\\CompetitionsPage | 6 | 280 | 4 | 32 | 316 | -| pages\\CompetitionsPage (Files) | 2 | 157 | 4 | 17 | 178 | -| pages\\CompetitionsPage\\components | 3 | 82 | 0 | 10 | 92 | -| pages\\CompetitionsPage\\components\\CompetitionCard | 1 | 41 | 0 | 5 | 46 | -| pages\\CompetitionsPage\\components\\CompetitionSkeleton | 1 | 18 | 0 | 2 | 20 | -| pages\\CompetitionsPage\\components\\CompetitionTag | 1 | 23 | 0 | 3 | 26 | -| pages\\CompetitionsPage\\modules | 1 | 41 | 0 | 5 | 46 | -| pages\\CompetitionsPage\\modules\\CompetitionGrid | 1 | 41 | 0 | 5 | 46 | -| shared | 1 | 5 | 0 | 2 | 7 | -| shared\\lib | 1 | 5 | 0 | 2 | 7 | -| styles | 2 | 140 | 0 | 8 | 148 | - -Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md) \ No newline at end of file diff --git a/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/results.txt b/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/results.txt deleted file mode 100644 index 9144604..0000000 --- a/services/frontend/.VSCodeCounter/2025-03-01_14-18-38/results.txt +++ /dev/null @@ -1,59 +0,0 @@ -Date : 2025-03-01 14:18:38 -Directory : c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src -Total : 18 files, 736 codes, 5 comments, 85 blanks, all 826 lines - -Languages -+----------------+------------+------------+------------+------------+------------+ -| language | files | code | comment | blank | total | -+----------------+------------+------------+------------+------------+------------+ -| TypeScript JSX | 13 | 579 | 4 | 72 | 655 | -| CSS | 2 | 140 | 0 | 8 | 148 | -| TypeScript | 3 | 17 | 1 | 5 | 23 | -+----------------+------------+------------+------------+------------+------------+ - -Directories -+-----------------------------------------------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ -| path | files | code | comment | blank | total | -+-----------------------------------------------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ -| . | 18 | 736 | 5 | 85 | 826 | -| . (Files) | 3 | 22 | 1 | 6 | 29 | -| components | 6 | 289 | 0 | 37 | 326 | -| components\ui | 6 | 289 | 0 | 37 | 326 | -| pages | 6 | 280 | 4 | 32 | 316 | -| pages\CompetitionsPage | 6 | 280 | 4 | 32 | 316 | -| pages\CompetitionsPage (Files) | 2 | 157 | 4 | 17 | 178 | -| pages\CompetitionsPage\components | 3 | 82 | 0 | 10 | 92 | -| pages\CompetitionsPage\components\CompetitionCard | 1 | 41 | 0 | 5 | 46 | -| pages\CompetitionsPage\components\CompetitionSkeleton | 1 | 18 | 0 | 2 | 20 | -| pages\CompetitionsPage\components\CompetitionTag | 1 | 23 | 0 | 3 | 26 | -| pages\CompetitionsPage\modules | 1 | 41 | 0 | 5 | 46 | -| pages\CompetitionsPage\modules\CompetitionGrid | 1 | 41 | 0 | 5 | 46 | -| shared | 1 | 5 | 0 | 2 | 7 | -| shared\lib | 1 | 5 | 0 | 2 | 7 | -| styles | 2 | 140 | 0 | 8 | 148 | -+-----------------------------------------------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ - -Files -+-----------------------------------------------------------------------------------------------------------------------------------------+----------------+------------+------------+------------+------------+ -| filename | language | code | comment | blank | total | -+-----------------------------------------------------------------------------------------------------------------------------------------+----------------+------------+------------+------------+------------+ -| c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\App.tsx | TypeScript JSX | 11 | 0 | 3 | 14 | -| c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\components\ui\alert.tsx | TypeScript JSX | 60 | 0 | 7 | 67 | -| c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\components\ui\badge.tsx | TypeScript JSX | 41 | 0 | 6 | 47 | -| c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\components\ui\button.tsx | TypeScript JSX | 53 | 0 | 6 | 59 | -| c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\components\ui\card.tsx | TypeScript JSX | 60 | 0 | 9 | 69 | -| c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\components\ui\skeleton.tsx | TypeScript JSX | 11 | 0 | 3 | 14 | -| c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\components\ui\tabs.tsx | TypeScript JSX | 64 | 0 | 6 | 70 | -| c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\main.tsx | TypeScript JSX | 11 | 0 | 2 | 13 | -| c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\pages\CompetitionsPage\components\CompetitionCard\index.tsx | TypeScript JSX | 41 | 0 | 5 | 46 | -| c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\pages\CompetitionsPage\components\CompetitionSkeleton\index.tsx | TypeScript JSX | 18 | 0 | 2 | 20 | -| c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\pages\CompetitionsPage\components\CompetitionTag\index.tsx | TypeScript JSX | 23 | 0 | 3 | 26 | -| c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\pages\CompetitionsPage\index.tsx | TypeScript JSX | 145 | 4 | 15 | 164 | -| c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\pages\CompetitionsPage\modules\CompetitionGrid\index.tsx | TypeScript JSX | 41 | 0 | 5 | 46 | -| c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\pages\CompetitionsPage\types.ts | TypeScript | 12 | 0 | 2 | 14 | -| c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\shared\lib\utils.ts | TypeScript | 5 | 0 | 2 | 7 | -| c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\styles\fonts.css | CSS | 18 | 0 | 2 | 20 | -| c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\styles\globals.css | CSS | 122 | 0 | 6 | 128 | -| c:\Users\Admin\Documents\VS Code Projects\project\services\frontend\src\vite-env.d.ts | TypeScript | 0 | 1 | 1 | 2 | -| Total | | 736 | 5 | 85 | 826 | -+-----------------------------------------------------------------------------------------------------------------------------------------+----------------+------------+------------+------------+------------+ \ No newline at end of file diff --git a/services/frontend/.gitignore b/services/frontend/.gitignore index a547bf3..7246199 100644 --- a/services/frontend/.gitignore +++ b/services/frontend/.gitignore @@ -11,7 +11,7 @@ node_modules dist dist-ssr *.local - +.VSCodeCounter # Editor directories and files .vscode/* !.vscode/extensions.json diff --git a/services/frontend/public/DANO.png b/services/frontend/public/DANO.png index aa3a56a..686ef2b 100644 Binary files a/services/frontend/public/DANO.png and b/services/frontend/public/DANO.png differ diff --git a/services/frontend/src/App.tsx b/services/frontend/src/App.tsx index 7becd34..e6af9eb 100644 --- a/services/frontend/src/App.tsx +++ b/services/frontend/src/App.tsx @@ -1,11 +1,13 @@ import { Routes, Route } from "react-router"; import "./styles/globals.css"; import CompetitionsPage from "./pages/CompetitionsPage"; +import CompetitionPreview from "./pages/CompetitionPreview"; const App = () => { return ( } /> + } /> ); diff --git a/services/frontend/src/pages/CompetitionsPage/modules/Navbar/index.tsx b/services/frontend/src/modules/Navbar/index.tsx similarity index 100% rename from services/frontend/src/pages/CompetitionsPage/modules/Navbar/index.tsx rename to services/frontend/src/modules/Navbar/index.tsx diff --git a/services/frontend/src/pages/CompetitionPreview/index.tsx b/services/frontend/src/pages/CompetitionPreview/index.tsx new file mode 100644 index 0000000..3e01674 --- /dev/null +++ b/services/frontend/src/pages/CompetitionPreview/index.tsx @@ -0,0 +1,115 @@ +import { useEffect, useState } from "react"; +import { useParams, useNavigate } from "react-router-dom"; +import Navbar from "@/modules/Navbar"; +import { Button } from "@/components/ui/button"; +import { ArrowLeft } from "lucide-react"; +import { Competition, Status } from "@/shared/types/types"; + +const mockCompetitions: Competition[] = [ + { + id: '1', + name: 'Олимпиада DANO 2025. Индивидуальный этап', + imageUrl: '/DANO.png', + isOlympics: true, + status: Status.InProgress, + description: 'Проверка глубоких знаний и навыков в анализе данных. +Будет несколько творческих заданий со свободным ответом +Задания выполняются индивидуально, вес тура в итоговом результате – 0,5 +Этап пройдет онлайн в заданное время, с применением системы прокторинга +На работу дается 240 минут' + }, + { + id: '2', + name: 'Олимпиада DANO 2025. Индивидуальный этап', + imageUrl: '/DANO.png', + isOlympics: false, + status: Status.NotParticipating, + description: 'Индивидуальный этап олимпиады DANO 2025 – это уникальная возможность для студентов продемонстрировать свои навыки анализа данных и решения сложных задач. Участники будут работать с реальными наборами данных и применять современные методы машинного обучения и статистического анализа.' + }, +]; + +const CompetitionPreview = () => { + const { id } = useParams<{ id: string }>(); + const navigate = useNavigate(); + const [competition, setCompetition] = useState(null); + const [isLoading, setIsLoading] = useState(true); + + useEffect(() => { + const fetchCompetition = async () => { + try { + setTimeout(() => { + const found = mockCompetitions.find(comp => comp.id === id); + setCompetition(found || null); + setIsLoading(false); + }, 500); + } catch (error) { + console.error("Error fetching competition:", error); + setIsLoading(false); + } + }; + + fetchCompetition(); + }, [id]); + + const handleBack = () => { + navigate(-1); + }; + + const handleContinue = () => { + console.log("Continue to competition:", competition?.id); + }; + + return ( + <> + + + + + Назад к соревнованиям + + + {isLoading ? ( + + Загрузка... + + ) : competition ? ( + + + + + + + + {competition.name} + + Продолжить + + + + + {competition.description} + + + + ) : ( + + Соревнование не найдено + Запрошенное соревнование не существует или было удалено. + + )} + + > + ); +}; + +export default CompetitionPreview; \ No newline at end of file diff --git a/services/frontend/src/pages/CompetitionsPage/components/CompetitionCard/index.tsx b/services/frontend/src/pages/CompetitionsPage/components/CompetitionCard/index.tsx index 222d233..5c06328 100644 --- a/services/frontend/src/pages/CompetitionsPage/components/CompetitionCard/index.tsx +++ b/services/frontend/src/pages/CompetitionsPage/components/CompetitionCard/index.tsx @@ -1,10 +1,11 @@ -import { Competition } from "../../types"; +import { Competition } from "@/shared/types/types"; import { cn } from "@/shared/lib/utils"; import { Card, CardContent, CardFooter, } from "@/components/ui/card"; +import { useNavigate } from "react-router"; interface CompetitionCardProps { competition: Competition; @@ -12,10 +13,18 @@ interface CompetitionCardProps { } export function CompetitionCard({ competition, className }: CompetitionCardProps) { - const { name, imageUrl, isOlympics, status } = competition; + const { id, name, imageUrl, isOlympics, status } = competition; + const navigate = useNavigate(); + + const handleClick = () => { + navigate(`/competition/${id}`); + }; return ( - +
Загрузка...
{competition.description}
Запрошенное соревнование не существует или было удалено.