1
Fork 0
mirror of https://github.com/Steffo99/steffoweb.git synced 2024-11-24 09:04:30 +00:00
steffoweb/pages/_app.tsx

30 lines
890 B
TypeScript
Raw Normal View History

2022-10-16 23:58:17 +00:00
import {default as Link} from "next/link"
import {default as Image} from "next/future/image"
2022-02-19 02:29:14 +00:00
import React from 'react'
2022-10-16 02:33:33 +00:00
2022-02-19 02:29:14 +00:00
import "./_app.css"
2022-10-16 23:58:17 +00:00
import {default as imgSRound} from "../public/s-round.png"
2022-10-16 02:33:33 +00:00
import type {AppProps} from "next/app"
2022-02-19 02:29:14 +00:00
2023-01-16 16:33:50 +00:00
import { config } from '@fortawesome/fontawesome-svg-core'
config.autoAddCss = false
2022-02-19 02:29:14 +00:00
2022-10-16 02:33:33 +00:00
const App = ({Component, pageProps}: AppProps) => {
return <>
<h1>
2022-10-16 23:58:17 +00:00
<Image alt={""} src={imgSRound} style={{height: "48px", width: "48px", display: "inline-block", verticalAlign: "text-bottom"}}/> Steffo's website
2022-10-16 02:33:33 +00:00
</h1>
<main>
2023-02-17 04:58:48 +00:00
<Component {...pageProps}/>
</main>
2022-10-16 02:33:33 +00:00
<footer>
© {new Date().getFullYear()} Stefano Pigozzi | <Link href={"https://github.com/Steffo99/steffoweb-2021"}>Source code</Link>
</footer>
</>
2022-02-19 02:29:14 +00:00
}
2022-10-16 02:33:33 +00:00
// noinspection JSUnusedGlobalSymbols
2022-02-19 02:29:14 +00:00
export default App;