-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adds holopin image * bump versions and update tests * snapshots update * fixes holopin link * fixes holopin link * refactor and colour change * demo holopin interactive * demo holopin interactive * migrate to appdir * added Fathom * added Fathom
- Loading branch information
Showing
41 changed files
with
2,500 additions
and
4,150 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/.pnpm/[email protected]/node_modules/typescript/lib", | ||
"typescript.enablePromptUseWorkspaceTsdk": true | ||
} |
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,35 @@ | ||
import Image from 'next/image' | ||
import Link from 'next/link' | ||
|
||
const h1 = ({ children }) => ( | ||
<h1 className="text-gray-900 text-4xl font-extrabold mb-3.5 dark:text-white"> | ||
{children} | ||
</h1> | ||
) | ||
const p = ({ children }) => ( | ||
<p className="text-gray-700 my-3 leading-relaxed dark:text-gray-400"> | ||
{children} | ||
</p> | ||
) | ||
const a = ({ children, href }) => ( | ||
<Link | ||
href={href} | ||
className="underline dark:text-orange-300 dark:hover:text-orange-600 text-indigo-600 hover:text-indigo-900 cursor-pointer" | ||
> | ||
{children} | ||
</Link> | ||
) | ||
const img = ({ src, alt }) => ( | ||
<Image | ||
src={src} | ||
alt={alt} | ||
className="my-10 rounded-xl" | ||
style={{ | ||
maxWidth: '100%', | ||
height: 'auto', | ||
}} | ||
/> | ||
) | ||
export function useMDXComponents(components) { | ||
return { h1, p, a, img, ...components } | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,19 @@ | ||
import { NextResponse } from 'next/server' | ||
|
||
export const config = { | ||
runtime: 'edge', | ||
} | ||
|
||
export async function GET(request: Request) { | ||
const { searchParams } = new URL(request.url) | ||
|
||
// console.log(searchParams.get('username')) | ||
const data = await fetch( | ||
`https://www.holopin.io/api/auth/user/page?username=${searchParams.get( | ||
'username' | ||
)}` | ||
).then((res) => res.json()) | ||
// console.log(data) | ||
|
||
return NextResponse.json({ ...data }) | ||
} |
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,40 @@ | ||
import Script from 'next/script' | ||
import { config } from '@fortawesome/fontawesome-svg-core' | ||
import '../assets/styles/global.css' | ||
import 'tailwindcss/tailwind.css' | ||
import '@fortawesome/fontawesome-svg-core/styles.css' | ||
import { Source_Sans_Pro } from 'next/font/google' | ||
|
||
config.autoAddCss = false | ||
|
||
const sourceSansPro = Source_Sans_Pro({ | ||
subsets: ['latin'], | ||
display: 'swap', | ||
weight: ['400', '700'], | ||
}) | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode | ||
}) { | ||
return ( | ||
<html lang="en"> | ||
<body className={sourceSansPro.className}> | ||
{children} | ||
<Script | ||
data-name="BMC-Widget" | ||
data-cfasync="false" | ||
src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js" | ||
data-id="kochie" | ||
data-description="Support me on Buy me a coffee!" | ||
data-message="" | ||
data-color="#FF5F5F" | ||
data-position="Right" | ||
data-x_margin="18" | ||
data-y_margin="18" | ||
/> | ||
</body> | ||
</html> | ||
) | ||
} |
Oops, something went wrong.
92244fb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
me.kochie.io – ./
mekochieio-kochie1.vercel.app
mekochieio-git-main-kochie1.vercel.app
me.kochie.io
robertkoch.me