mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
34 lines
814 B
TypeScript
34 lines
814 B
TypeScript
import type { AppProps } from 'next/app';
|
|
import Head from 'next/head';
|
|
import Nav from '../components/Nav';
|
|
import DarkMode from '../components/DarkMode';
|
|
import Container from '../components/Container';
|
|
import GlobalStyles from '../components/GlobalStyles';
|
|
import Theme from '../components/Theme';
|
|
|
|
const App = ({ Component, pageProps }: AppProps) => {
|
|
return (
|
|
<>
|
|
<Head>
|
|
<link rel='preconnect' href='https://fonts.gstatic.com' />
|
|
<link
|
|
href='https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;700&display=swap'
|
|
rel='stylesheet'
|
|
/>
|
|
<title>Hazem Krimi</title>
|
|
</Head>
|
|
<DarkMode>
|
|
<Theme>
|
|
<GlobalStyles />
|
|
<Container>
|
|
<Nav />
|
|
<Component {...pageProps} />
|
|
</Container>
|
|
</Theme>
|
|
</DarkMode>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default App;
|