Files
apple-ahh-portfolio/App.tsx
m5rcel { Marcel } 1fe4716728 feat: Initialize m5rcel portfolio project
This commit sets up the foundational structure for the m5rcel portfolio website. It includes:

- Basic Vite project configuration with React and TypeScript.
- Essential dependencies like React, Framer Motion, and Lucide React.
- Initial HTML structure with meta tags and Tailwind CSS setup.
- Placeholder data structures for projects and timeline.
- A basic loading screen component.
- Updated README with local run instructions.
2025-12-09 09:04:50 +01:00

29 lines
796 B
TypeScript

import React, { useState } from 'react';
import Navbar from './components/Navbar';
import Hero from './components/Hero';
import Projects from './components/Projects';
import About from './components/About';
import Footer from './components/Footer';
import LoadingScreen from './components/LoadingScreen';
const App: React.FC = () => {
const [isLoading, setIsLoading] = useState(true);
return (
<>
{isLoading && <LoadingScreen onComplete={() => setIsLoading(false)} />}
<div className={`min-h-screen bg-[#f2f2f2] ${isLoading ? 'hidden' : 'block'}`}>
<Navbar toggleTheme={() => {}} isDark={false} />
<main>
<Hero />
<Projects />
<About />
</main>
<Footer />
</div>
</>
);
};
export default App;