├── .gitignore ├── README.md ├── index.html ├── package.json ├── playwright.config.ts ├── postcss.config.js ├── public └── favicon.ico ├── src ├── App.tsx ├── assets │ ├── bitcoin.png │ ├── demo.gif │ ├── icons.ts │ ├── not-found.png │ └── sounds │ │ ├── lose.wav │ │ └── win.wav ├── components │ ├── Authentication │ │ ├── BackButton.tsx │ │ ├── Form.tsx │ │ ├── SignUp.tsx │ │ └── SingIn.tsx │ ├── Game │ │ ├── Game.tsx │ │ ├── GuessButton.tsx │ │ ├── Instructions.tsx │ │ ├── Price.tsx │ │ ├── Score.tsx │ │ ├── SignOutButton.tsx │ │ ├── Timer.tsx │ │ ├── animation.css │ │ └── index.ts │ ├── Home │ │ ├── Banner.tsx │ │ ├── Demo │ │ │ ├── Demo.tsx │ │ │ └── demo-data.ts │ │ ├── Footer.tsx │ │ ├── Home.tsx │ │ └── LeaderBoard │ │ │ ├── LeaderBoard.tsx │ │ │ └── LeaderBoardItem.tsx │ ├── NotFoud.tsx │ ├── ProtectedRoute.tsx │ └── Spinner │ │ ├── Spinner.tsx │ │ └── styles.css ├── hooks │ ├── useSignIn.tsx │ └── useSignUp.tsx ├── index.css ├── library │ ├── api-handler.tsx │ ├── firebase │ │ ├── firebase.ts │ │ └── firebaseAuth.tsx │ ├── state-manager.tsx │ ├── toast-manager.ts │ └── types.ts ├── main.tsx └── vite-env.d.ts ├── tailwind.config.js ├── tests ├── authentication-flow.test.ts └── game-flow.test.ts ├── tsconfig.json ├── tsconfig.node.json └── vite.config.ts /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/README.md -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/index.html -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/package.json -------------------------------------------------------------------------------- /playwright.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/playwright.config.ts -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/App.tsx -------------------------------------------------------------------------------- /src/assets/bitcoin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/assets/bitcoin.png -------------------------------------------------------------------------------- /src/assets/demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/assets/demo.gif -------------------------------------------------------------------------------- /src/assets/icons.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/assets/icons.ts -------------------------------------------------------------------------------- /src/assets/not-found.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/assets/not-found.png -------------------------------------------------------------------------------- /src/assets/sounds/lose.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/assets/sounds/lose.wav -------------------------------------------------------------------------------- /src/assets/sounds/win.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/assets/sounds/win.wav -------------------------------------------------------------------------------- /src/components/Authentication/BackButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Authentication/BackButton.tsx -------------------------------------------------------------------------------- /src/components/Authentication/Form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Authentication/Form.tsx -------------------------------------------------------------------------------- /src/components/Authentication/SignUp.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Authentication/SignUp.tsx -------------------------------------------------------------------------------- /src/components/Authentication/SingIn.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Authentication/SingIn.tsx -------------------------------------------------------------------------------- /src/components/Game/Game.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Game/Game.tsx -------------------------------------------------------------------------------- /src/components/Game/GuessButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Game/GuessButton.tsx -------------------------------------------------------------------------------- /src/components/Game/Instructions.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Game/Instructions.tsx -------------------------------------------------------------------------------- /src/components/Game/Price.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Game/Price.tsx -------------------------------------------------------------------------------- /src/components/Game/Score.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Game/Score.tsx -------------------------------------------------------------------------------- /src/components/Game/SignOutButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Game/SignOutButton.tsx -------------------------------------------------------------------------------- /src/components/Game/Timer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Game/Timer.tsx -------------------------------------------------------------------------------- /src/components/Game/animation.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Game/animation.css -------------------------------------------------------------------------------- /src/components/Game/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Game/index.ts -------------------------------------------------------------------------------- /src/components/Home/Banner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Home/Banner.tsx -------------------------------------------------------------------------------- /src/components/Home/Demo/Demo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Home/Demo/Demo.tsx -------------------------------------------------------------------------------- /src/components/Home/Demo/demo-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Home/Demo/demo-data.ts -------------------------------------------------------------------------------- /src/components/Home/Footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Home/Footer.tsx -------------------------------------------------------------------------------- /src/components/Home/Home.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Home/Home.tsx -------------------------------------------------------------------------------- /src/components/Home/LeaderBoard/LeaderBoard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Home/LeaderBoard/LeaderBoard.tsx -------------------------------------------------------------------------------- /src/components/Home/LeaderBoard/LeaderBoardItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Home/LeaderBoard/LeaderBoardItem.tsx -------------------------------------------------------------------------------- /src/components/NotFoud.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/NotFoud.tsx -------------------------------------------------------------------------------- /src/components/ProtectedRoute.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/ProtectedRoute.tsx -------------------------------------------------------------------------------- /src/components/Spinner/Spinner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Spinner/Spinner.tsx -------------------------------------------------------------------------------- /src/components/Spinner/styles.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/components/Spinner/styles.css -------------------------------------------------------------------------------- /src/hooks/useSignIn.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/hooks/useSignIn.tsx -------------------------------------------------------------------------------- /src/hooks/useSignUp.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/hooks/useSignUp.tsx -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/index.css -------------------------------------------------------------------------------- /src/library/api-handler.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/library/api-handler.tsx -------------------------------------------------------------------------------- /src/library/firebase/firebase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/library/firebase/firebase.ts -------------------------------------------------------------------------------- /src/library/firebase/firebaseAuth.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/library/firebase/firebaseAuth.tsx -------------------------------------------------------------------------------- /src/library/state-manager.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/library/state-manager.tsx -------------------------------------------------------------------------------- /src/library/toast-manager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/library/toast-manager.ts -------------------------------------------------------------------------------- /src/library/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/library/types.ts -------------------------------------------------------------------------------- /src/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/src/main.tsx -------------------------------------------------------------------------------- /src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tests/authentication-flow.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/tests/authentication-flow.test.ts -------------------------------------------------------------------------------- /tests/game-flow.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/tests/game-flow.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.node.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/tsconfig.node.json -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mirayatech/btc-predictor/HEAD/vite.config.ts --------------------------------------------------------------------------------