mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-02 02:10:27 +00:00
40 lines
814 B
TypeScript
40 lines
814 B
TypeScript
import type { AppProps } from 'next/app';
|
|
import styled, { createGlobalStyle } from 'styled-components';
|
|
import Head from 'next/head';
|
|
|
|
const GlobalStyle = createGlobalStyle`
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
font-family: 'Source Code Pro', monospace;
|
|
font-size: '17px';
|
|
}
|
|
`;
|
|
|
|
const Container = styled.div`
|
|
width: 85%;
|
|
margin: auto;
|
|
`;
|
|
|
|
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>
|
|
<GlobalStyle />
|
|
<Container>
|
|
<Component {...pageProps} />
|
|
</Container>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default App;
|