-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e06fea
commit d9cf5f1
Showing
12 changed files
with
101 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export type Job = { | ||
id: number | ||
company: string | ||
title: string | ||
startDate: string | ||
endDate: string | ||
location: string | ||
image: string | ||
skills: string[] | ||
description: string | ||
} | ||
|
||
export type Post = { | ||
slug: string | ||
title: string | ||
description: string | ||
date: string | ||
tags: string[] | ||
image: string | ||
alt: string | ||
icon: string | ||
related: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,62 @@ | ||
import Document, { Head, Html, Main, NextScript } from "next/document" | ||
import { Head, Html, Main, NextScript } from "next/document" | ||
import Script from "next/script" | ||
|
||
class MyDocument extends Document { | ||
static async getInitialProps(ctx) { | ||
const initialProps = await Document.getInitialProps(ctx) | ||
return { ...initialProps } | ||
} | ||
|
||
render() { | ||
return ( | ||
<Html lang="en"> | ||
<Head> | ||
{/* Favicons */} | ||
<link | ||
rel="apple-touch-icon" | ||
sizes="180x180" | ||
href="/favicons/apple-touch-icon.png" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="32x32" | ||
href="/favicons/favicon-32x32.png" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="16x16" | ||
href="/favicons/favicon-16x16.png" | ||
/> | ||
<link rel="manifest" href="/favicons/site.webmanifest" /> | ||
<link | ||
rel="mask-icon" | ||
href="/favicons/safari-pinned-tab.svg" | ||
color="#4361a2" | ||
/> | ||
<meta name="msapplication-TileColor" content="#c73156" /> | ||
<meta name="theme-color" content="#111827" /> | ||
{/* Preconnects */} | ||
<link rel="preconnect" href="https://vitals.vercel-insights.com" /> | ||
<link rel="preconnect" href="https://www.googletagmanager.com" /> | ||
<link rel="preconnect" href="https://www.google-analytics.com" /> | ||
</Head> | ||
<body> | ||
<Main /> | ||
<NextScript /> | ||
<Script | ||
src="/scripts/fade-in.js" | ||
type="module" | ||
strategy="beforeInteractive" | ||
/> | ||
<Script src="/scripts/update-selector.js" /> | ||
<Script src="/scripts/smoothscroll.min.js" /> | ||
<Script src="/scripts/smoothscroll-anchor.min.js" /> | ||
<Script | ||
src={`https://www.googletagmanager.com/gtag/js?id=${process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS}`} | ||
/> | ||
<Script id="gtag"> | ||
{` | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
gtag('config', '${process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS}', { | ||
page_path: window.location.pathname, | ||
}); | ||
`} | ||
</Script> | ||
</body> | ||
</Html> | ||
) | ||
} | ||
export default function Document() { | ||
return ( | ||
<Html lang="en"> | ||
<Head> | ||
{/* Favicons */} | ||
<link | ||
rel="apple-touch-icon" | ||
sizes="180x180" | ||
href="/favicons/apple-touch-icon.png" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="32x32" | ||
href="/favicons/favicon-32x32.png" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="16x16" | ||
href="/favicons/favicon-16x16.png" | ||
/> | ||
<link rel="manifest" href="/favicons/site.webmanifest" /> | ||
<link | ||
rel="mask-icon" | ||
href="/favicons/safari-pinned-tab.svg" | ||
color="#4361a2" | ||
/> | ||
<meta name="msapplication-TileColor" content="#c73156" /> | ||
<meta name="theme-color" content="#111827" /> | ||
{/* Preconnects */} | ||
<link rel="preconnect" href="https://vitals.vercel-insights.com" /> | ||
<link rel="preconnect" href="https://www.googletagmanager.com" /> | ||
<link rel="preconnect" href="https://www.google-analytics.com" /> | ||
</Head> | ||
<body> | ||
<Main /> | ||
<NextScript /> | ||
<Script src="/scripts/fade-in.js" strategy="beforeInteractive" /> | ||
<Script src="/scripts/update-selector.js" /> | ||
<Script src="/scripts/smoothscroll.min.js" /> | ||
<Script src="/scripts/smoothscroll-anchor.min.js" /> | ||
<Script | ||
src={`https://www.googletagmanager.com/gtag/js?id=${process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS}`} | ||
/> | ||
<Script id="gtag"> | ||
{` | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
gtag('config', '${process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS}', { | ||
page_path: window.location.pathname, | ||
}); | ||
`} | ||
</Script> | ||
</body> | ||
</Html> | ||
) | ||
} | ||
|
||
export default MyDocument |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters