first commit

This commit is contained in:
2025-05-13 12:12:47 +02:00
commit c37cf55f67
75 changed files with 13258 additions and 0 deletions

26
pages/_app.tsx Normal file
View File

@@ -0,0 +1,26 @@
import { useEffect } from 'react';
import type { AppProps } from 'next/app';
import Layout from '@/components/Layout';
import Head from '@/components/Head';
import '@/styles/globals.css';
import '@/styles/themes.css';
function MyApp({ Component, pageProps }: AppProps) {
useEffect(() => {
const theme = localStorage.getItem('theme');
if (theme) {
document.documentElement.setAttribute('data-theme', theme);
}
}, []);
return (
<Layout>
<Head title={`Ahmed Galadima | ${pageProps.title}`} />
<Component {...pageProps} />
</Layout>
);
}
export default MyApp;