🚀 feat(_new): new website ui and function

This commit is contained in:
eshanized
2024-12-25 03:38:05 +05:30
parent 3196782ce5
commit 3e920da9fc
89 changed files with 10212 additions and 0 deletions

38
src/App.tsx Normal file
View File

@@ -0,0 +1,38 @@
import { BrowserRouter as Router } from 'react-router-dom';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { ErrorBoundary } from '@/components/ui/ErrorBoundary';
import { Navbar } from '@/components/layout/Navbar';
import { Footer } from '@/components/layout/Footer';
import { AppRoutes } from '@/routes';
const queryClient = new QueryClient({
defaultOptions: {
queries: {
staleTime: 1000 * 60 * 5, // 5 minutes
retry: 1,
},
},
});
function App() {
// Use basename for GitHub Pages
const basename = import.meta.env.DEV ? '/' : '/snigdha-os';
return (
<ErrorBoundary>
<QueryClientProvider client={queryClient}>
<Router basename={basename}>
<div className="min-h-screen bg-gray-50 font-fira-sans flex flex-col">
<Navbar />
<main className="flex-grow pt-16">
<AppRoutes />
</main>
<Footer />
</div>
</Router>
</QueryClientProvider>
</ErrorBoundary>
);
}
export default App;