File tree Expand file tree Collapse file tree 6 files changed +214
-87
lines changed Expand file tree Collapse file tree 6 files changed +214
-87
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import { StructuredData } from "@/components/structured-data";
1818import "@workspace/ui/globals.css" ;
1919import { Toaster } from "@workspace/ui/components/sonner" ;
2020import Script from "next/script" ;
21+ import { BuyMeACoffeeButton } from "@/components/buy-me-a-coffee" ;
2122
2223const fontSans = Geist ( {
2324 subsets : [ "latin" ] ,
@@ -166,6 +167,7 @@ export default async function RootLayout({ children }: Readonly<LayoutProps>) {
166167 </ header >
167168 < main className = "flex flex-1 flex-col h-screen" >
168169 { children }
170+ < BuyMeACoffeeButton />
169171 < Analytics />
170172 < Toaster />
171173 </ main >
Original file line number Diff line number Diff line change 1+ import Image from "next/image" ;
2+ import Link from "next/link" ;
3+
4+ export function BuyMeACoffeeButton ( ) {
5+ return (
6+ < Link
7+ className = "fixed right-5 bottom-5"
8+ href = "https://www.buymeacoffee.com/hour.is"
9+ target = "_blank"
10+ rel = "noopener noreferrer"
11+ >
12+ < Image
13+ src = "https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png"
14+ alt = "Buy Me A Coffee"
15+ width = { 217 }
16+ height = { 54 }
17+ />
18+ </ Link >
19+ ) ;
20+ }
Original file line number Diff line number Diff line change @@ -12,6 +12,14 @@ const nextConfig = {
1212 images : {
1313 formats : [ "image/webp" , "image/avif" ] ,
1414 minimumCacheTTL : 60 ,
15+ remotePatterns : [
16+ {
17+ protocol : "https" ,
18+ hostname : "cdn.buymeacoffee.com" ,
19+ port : "" ,
20+ pathname : "/buttons/v2/**" ,
21+ } ,
22+ ] ,
1523 } ,
1624
1725 // Headers for SEO
Original file line number Diff line number Diff line change 1919 "contentlayer" : " ^0.3.4" ,
2020 "date-fns" : " ^4.1.0" ,
2121 "lucide-react" : " ^0.525.0" ,
22- "next" : " ^15.5.0 " ,
22+ "next" : " ^15.5.6 " ,
2323 "next-contentlayer" : " ^0.3.4" ,
2424 "next-mdx-remote" : " ^5.0.0" ,
2525 "next-themes" : " ^0.4.6" ,
26- "react" : " ^19.1.1 " ,
27- "react-dom" : " ^19.1.1 " ,
28- "react-syntax-highlighter" : " ^15.6.3 " ,
26+ "react" : " ^19.2.0 " ,
27+ "react-dom" : " ^19.2.0 " ,
28+ "react-syntax-highlighter" : " ^15.6.6 " ,
2929 "rehype-highlight" : " ^7.0.2" ,
3030 "rehype-prism-plus" : " ^2.0.1" ,
3131 "rehype-slug" : " ^6.0.0" ,
Original file line number Diff line number Diff line change 1919 "turbo" : " ^2.5.6" ,
2020 "typescript" : " 5.8.3"
2121 },
22- "packageManager" : " pnpm@10.15.1 " ,
22+ "packageManager" : " pnpm@10.18.3 " ,
2323 "engines" : {
2424 "node" : " >=20"
2525 }
You can’t perform that action at this time.
0 commit comments