mirror of
https://git.gay/DeltaStudio/PufokReactApp.git
synced 2025-07-18 05:42:24 +07:00
31 lines
934 B
JavaScript
31 lines
934 B
JavaScript
import React from 'react';
|
|
import { Routes, Route } from 'react-router-dom';
|
|
import Navbar from './components/Navbar.js';
|
|
import Footer from './components/Footer.js';
|
|
import Home from './pages/Home.js';
|
|
import About from './pages/About.js';
|
|
import Projects from './pages/Projects.js';
|
|
import Contact from './pages/Contact.js';
|
|
import NotFound from './pages/NotFound.js';
|
|
|
|
function App() {
|
|
return (
|
|
<div className="app">
|
|
{/* Фоновый слой */}
|
|
<div className="full-screen-background"></div>
|
|
|
|
{/* Контент поверх фона */}
|
|
<Navbar />
|
|
<Routes>
|
|
<Route path="/" element={<Home />} />
|
|
<Route path="/about" element={<About />} />
|
|
<Route path="/projects" element={<Projects />} />
|
|
<Route path="/contact" element={<Contact />} />
|
|
<Route path="*" element={<NotFound />} />
|
|
</Routes>
|
|
<Footer />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default App; |