diff --git a/src/components/CigaretteLoader.tsx b/src/components/CigaretteLoader.tsx new file mode 100644 index 0000000..1e51bd0 --- /dev/null +++ b/src/components/CigaretteLoader.tsx @@ -0,0 +1,162 @@ +import React from 'react' + +export const CigaretteLoader = () => ( +
+ + + {/* Градиент для сигареты */} + + + + + + + {/* Градиент для тлеющей части */} + + + + + + + {/* Маска для эффекта сгорания */} + + + + + + + + {/* Тело сигареты (не сгоревшая часть) */} + + + {/* Фильтр */} + + + + + + {/* Сгоревшая часть с маской */} + + + + {/* Тлеющий край */} + + + + + {/* Искры */} + + + + + + + + + + + + + {/* Дым */} + + + + + + + + + + + + + +
+) + diff --git a/src/dashboard.tsx b/src/dashboard.tsx index 465b4bc..acb864a 100644 --- a/src/dashboard.tsx +++ b/src/dashboard.tsx @@ -7,9 +7,12 @@ import { SignInPage, SignUpPage } from './pages/auth' import { TrackerPage } from './pages/tracker' import { StatsPage } from './pages/stats' import { ProtectedRoute } from './components/ProtectedRoute' +import { CigaretteLoader } from './components/CigaretteLoader' const PageWrapper = ({ children }: React.PropsWithChildren) => ( - Loading...}>{children} + }> + {children} + ) export const Dashboard = () => {