FEAT: Add Chrome-Dino-Game to 404 Page;

This commit is contained in:
Chris-1010
2025-02-18 18:03:17 +00:00
parent 6999e1a0a1
commit 4e85007854
5 changed files with 30 additions and 35 deletions

View File

@@ -1,17 +1,19 @@
{
"name": "frontend",
"version": "0.1.0",
"version": "0.5.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "frontend",
"version": "0.1.0",
"version": "0.5.0",
"dependencies": {
"@stripe/react-stripe-js": "^3.1.1",
"@stripe/stripe-js": "^5.5.0",
"@types/video.js": "^7.3.58",
"lodash": "^4.17.21",
"react": "^18.3.1",
"react-chrome-dino": "^0.1.3",
"react-dom": "^18.3.1",
"react-router-dom": "^7.1.3",
"socket.io-client": "^4.8.1",
@@ -20,6 +22,7 @@
},
"devDependencies": {
"@eslint/js": "^9.17.0",
"@types/lodash": "^4.17.15",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@vitejs/plugin-react": "^4.3.4",
@@ -1458,6 +1461,13 @@
"dev": true,
"license": "MIT"
},
"node_modules/@types/lodash": {
"version": "4.17.15",
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.15.tgz",
"integrity": "sha512-w/P33JFeySuhN6JLkysYUK2gEmy9kHHFN7E8ro0tkfmlDOgxBDzWEZ/J8cWA+fHqFevpswDTFZnDx+R9lbL6xw==",
"dev": true,
"license": "MIT"
},
"node_modules/@types/prop-types": {
"version": "15.7.14",
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.14.tgz",
@@ -3083,6 +3093,12 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/lodash": {
"version": "4.17.21",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
"license": "MIT"
},
"node_modules/lodash.merge": {
"version": "4.6.2",
"resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
@@ -3682,6 +3698,12 @@
"node": ">=0.10.0"
}
},
"node_modules/react-chrome-dino": {
"version": "0.1.3",
"resolved": "https://registry.npmjs.org/react-chrome-dino/-/react-chrome-dino-0.1.3.tgz",
"integrity": "sha512-MrQ+gixctthQbMiT1tc2aNIKEskxGnXVGq0CdpzSLdY8zLeDUacmKEzuU0B3em7LY4R+nFY3xlb4S+63G1F53A==",
"license": "MIT"
},
"node_modules/react-dom": {
"version": "18.3.1",
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",

View File

@@ -15,7 +15,9 @@
"@stripe/react-stripe-js": "^3.1.1",
"@stripe/stripe-js": "^5.5.0",
"@types/video.js": "^7.3.58",
"lodash": "^4.17.21",
"react": "^18.3.1",
"react-chrome-dino": "^0.1.3",
"react-dom": "^18.3.1",
"react-router-dom": "^7.1.3",
"socket.io-client": "^4.8.1",
@@ -24,6 +26,7 @@
},
"devDependencies": {
"@eslint/js": "^9.17.0",
"@types/lodash": "^4.17.15",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@vitejs/plugin-react": "^4.3.4",

View File

@@ -1,6 +1,8 @@
import React, { useState, useEffect } from "react";
import { useNavigate } from "react-router-dom";
import Button from "../components/Input/Button";
// @ts-ignore
import ChromeDinoGame from "react-chrome-dino";
const NotFoundPage: React.FC = () => {
const navigate = useNavigate();
@@ -56,6 +58,7 @@ const NotFoundPage: React.FC = () => {
<div className="w-full text-center animate-floating">
<h1 className="text-6xl font-bold mb-4">404</h1>
<p className="text-2xl mb-8">Page Not Found</p>
<ChromeDinoGame />
<Button extraClasses="z-[100]" onClick={() => navigate("/")}>
Go Home
</Button>

28
package-lock.json generated
View File

@@ -1,28 +0,0 @@
{
"name": "cs3305-team11",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"dependencies": {
"tailwind-scrollbar-hide": "^2.0.0"
}
},
"node_modules/tailwind-scrollbar-hide": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/tailwind-scrollbar-hide/-/tailwind-scrollbar-hide-2.0.0.tgz",
"integrity": "sha512-lqiIutHliEiODwBRHy4G2+Tcayo2U7+3+4frBmoMETD72qtah+XhOk5XcPzC1nJvXhXUdfl2ajlMhUc2qC6CIg==",
"license": "MIT",
"peerDependencies": {
"tailwindcss": ">=3.0.0 || >= 4.0.0 || >= 4.0.0-beta.8 || >= 4.0.0-alpha.20"
}
},
"node_modules/tailwindcss": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.0.3.tgz",
"integrity": "sha512-ImmZF0Lon5RrQpsEAKGxRvHwCvMgSC4XVlFRqmbzTEDb/3wvin9zfEZrMwgsa3yqBbPqahYcVI6lulM2S7IZAA==",
"license": "MIT",
"peer": true
}
}
}

View File

@@ -1,5 +0,0 @@
{
"dependencies": {
"tailwind-scrollbar-hide": "^2.0.0"
}
}