diff --git a/frontend/bun.lockb b/frontend/bun.lockb index 087182a..d28c157 100755 Binary files a/frontend/bun.lockb and b/frontend/bun.lockb differ diff --git a/frontend/package.json b/frontend/package.json index c3727f8..ea6680b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -10,9 +10,11 @@ "react": "^18.3.1", "react-confetti": "^6.1.0", "react-dom": "^18.3.1", + "react-particles": "^2.12.2", "react-router-dom": "^6.26.0", "react-scripts": "5.0.1", "react-type-animation": "^3.2.0", + "tsparticles-slim": "^2.12.0", "web-vitals": "^2.1.4" }, "scripts": { diff --git a/frontend/src/App.js b/frontend/src/App.js index ac349bd..1efcb0c 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -2,17 +2,21 @@ import React from "react"; import { BrowserRouter as Router, Route, Routes } from "react-router-dom"; import Header from "./components/Header"; import Home from "./components/Home"; +import Background from "./components/Background"; function App() { return ( -
-
-
- - } /> - -
+
+ +
+
+
+ + } /> + +
+
); diff --git a/frontend/src/components/Background.js b/frontend/src/components/Background.js new file mode 100644 index 0000000..4d839a9 --- /dev/null +++ b/frontend/src/components/Background.js @@ -0,0 +1,88 @@ +import React from "react"; +import Particles from "react-particles"; +import { loadSlim } from "tsparticles-slim"; + +const Background = () => { + const particlesInit = async (engine) => { + await loadSlim(engine); + }; + + return ( + + ); +}; + +export default Background; diff --git a/frontend/src/components/DownloadForm.js b/frontend/src/components/DownloadForm.js index 23a58af..091948e 100644 --- a/frontend/src/components/DownloadForm.js +++ b/frontend/src/components/DownloadForm.js @@ -68,7 +68,7 @@ const DownloadForm = () => { const getBarClass = () => { if (message === "Download Complete") return "bg-green-400"; if (message === "Download Failed") return "bg-red-400"; - return "bg-blue-500"; + return "bg-blue-400"; }; const getBarStyle = () => ({ @@ -96,7 +96,7 @@ const DownloadForm = () => {
@@ -112,7 +112,7 @@ const DownloadForm = () => {
@@ -122,19 +122,17 @@ const DownloadForm = () => { onChange={(e) => setQuality(e.target.value)} className="mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm" > - + - - +
-
0 || (isDownloading && progress === 0) - ? "border border-gray-300" - : "" + ? "bg-white bg-opacity-60" + : "bg-inherit" }`} >
{
-
{!isDownloading && !message.startsWith("Downloading") && ( )} -
+
{" "} {showConfetti && ( diff --git a/frontend/src/components/Header.js b/frontend/src/components/Header.js index abea001..9575d98 100644 --- a/frontend/src/components/Header.js +++ b/frontend/src/components/Header.js @@ -2,26 +2,8 @@ import React from "react"; const Header = () => { return ( -
+

DownLink

-
); }; diff --git a/frontend/src/components/Home.js b/frontend/src/components/Home.js index a7f36f9..dbd762f 100644 --- a/frontend/src/components/Home.js +++ b/frontend/src/components/Home.js @@ -10,17 +10,19 @@ const Home = () => {