diff --git a/App.jsx b/App.jsx deleted file mode 100644 index 79f371b..0000000 --- a/App.jsx +++ /dev/null @@ -1,101 +0,0 @@ -import { Routes, Route, Link, useLocation } from "react-router-dom"; -import { useState, useEffect } from "react"; -import MySQLMySQLMigrator from "./components/MySQLMySQLMigrator"; -import PostgreSQLPostgreSQLMigrator from "./components/PostgreSQLPostgreSQLMigrator"; -import PostgreSQLS3Migrator from "./components/PostgreSQLS3Migrator"; -import S3S3Migrator from "./components/S3S3Migrator"; - -export default function App() { - const [darkMode, setDarkMode] = useState(() => { - const saved = localStorage.getItem('darkMode'); - return saved ? JSON.parse(saved) : true; // Default to dark mode - }); - - const location = useLocation(); - - useEffect(() => { - localStorage.setItem('darkMode', JSON.stringify(darkMode)); - if (darkMode) { - document.body.classList.add('dark'); - } else { - document.body.classList.remove('dark'); - } - }, [darkMode]); - - const navItems = [ - { path: "/mysql-mysql", label: "MySQL → MySQL", icon: "🗄️" }, - { path: "/psql-psql", label: "PostgreSQL → PostgreSQL", icon: "🐘" }, - { path: "/psql-s3", label: "PostgreSQL → S3", icon: "☁️" }, - { path: "/s3-s3", label: "S3 → S3", icon: "📦" }, - ]; - - return ( -
-
- {/* Header */} -
-
-
-

- Universal Database Migrator -

-

- Seamlessly migrate your databases across platforms -

-
- -
-
- - {/* Navigation */} - - - {/* Main Content */} -
- - } /> - } /> - } /> - } /> - -
🚀
-

Welcome to Universal Migrator

-

- Choose a migration type from the navigation above to get started. -

-
- } - /> - - -
- - ); -} \ No newline at end of file