This commit is contained in:
Atakan
2025-11-28 13:44:16 +03:00
commit 3e565663f7
19 changed files with 4559 additions and 0 deletions

29
src/App.jsx Normal file
View File

@@ -0,0 +1,29 @@
import React from 'react';
import { BrowserRouter as Router, Routes, Route, useLocation } from 'react-router-dom';
import Home from './pages/Home';
import Portal from './pages/Portal';
import { AnimatePresence } from 'framer-motion';
// Animasyonlu geçişler için bir Wrapper bileşeni
function AnimatedRoutes() {
const location = useLocation();
return (
<AnimatePresence mode="wait">
<Routes location={location} key={location.pathname}>
<Route path="/" element={<Home />} />
<Route path="/portal" element={<Portal />} />
</Routes>
</AnimatePresence>
);
}
function App() {
return (
<Router>
<AnimatedRoutes />
</Router>
);
}
export default App;