1+ /* eslint-disable @typescript-eslint/no-explicit-any */
2+ /* eslint-disable @typescript-eslint/no-unused-vars */
13import fs from "fs" ;
24import path from "path" ;
35import ReactMarkdown from "react-markdown" ;
46import remarkGfm from "remark-gfm" ;
5- import { getAllPosts , BlogPost } from "@/lib/blog-utils" ;
6- import Link from "next/link" ;
7+ import { getAllPosts } from "@/lib/blog-utils" ;
78
89export default function Home ( ) {
910 const aboutPath = path . join ( process . cwd ( ) , "ABOUT_LAB.md" ) ;
@@ -12,7 +13,7 @@ export default function Home() {
1213 const researchPath = path . join ( process . cwd ( ) , "RESEARCH.md" ) ;
1314 const researchContent = fs . existsSync ( researchPath ) ? fs . readFileSync ( researchPath , "utf8" ) : "" ;
1415
15- const posts = getAllPosts ( ) ;
16+
1617
1718 return (
1819 < >
@@ -51,16 +52,16 @@ export default function Home() {
5152 < ReactMarkdown
5253 remarkPlugins = { [ remarkGfm ] }
5354 components = { {
54- h1 : ( { ...props } : any ) => < h1 className = "text-4xl font-bold text-[#faf9f6] mb-8 border-b border-[#faf9f6]/10 pb-4" { ...props } /> ,
55- h2 : ( { ...props } : any ) => < h2 className = "text-2xl font-bold text-[#faf9f6] mt-12 mb-6" { ...props } /> ,
56- h3 : ( { ...props } : any ) => < h3 className = "text-xl font-bold text-[#faf9f6] mt-8 mb-4 transition-colors" { ...props } /> ,
57- p : ( { ...props } : any ) => < p className = "text-[#faf9f6]/85 text-lg leading-relaxed mb-6" { ...props } /> ,
58- ul : ( { ...props } : any ) => < ul className = "list-disc list-inside mb-6 space-y-3 text-[#faf9f6]/85 text-lg" { ...props } /> ,
59- li : ( { ...props } : any ) => < li className = "" { ...props } /> ,
60- strong : ( { ...props } : any ) => < strong className = "text-[#faf9f6] font-semibold" { ...props } /> ,
61- hr : ( { ...props } : any ) => < hr className = "my-12 border-[#faf9f6]/5" { ...props } /> ,
62- a : ( { ...props } : any ) => < a className = "text-[#faf9f6] hover:text-white transition-colors" { ...props } /> ,
63- blockquote : ( { ...props } : any ) => < blockquote className = "border-l-4 border-[#faf9f6]/30 pl-6 my-8 italic text-[#faf9f6]/75" { ...props } /> ,
55+ h1 : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < h1 className = "text-4xl font-bold text-[#faf9f6] mb-8 border-b border-[#faf9f6]/10 pb-4" { ...rest } /> } ,
56+ h2 : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < h2 className = "text-2xl font-bold text-[#faf9f6] mt-12 mb-6" { ...rest } /> } ,
57+ h3 : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < h3 className = "text-xl font-bold text-[#faf9f6] mt-8 mb-4 transition-colors" { ...rest } /> } ,
58+ p : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < p className = "text-[#faf9f6]/85 text-lg leading-relaxed mb-6" { ...rest } /> } ,
59+ ul : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < ul className = "list-disc list-inside mb-6 space-y-3 text-[#faf9f6]/85 text-lg" { ...rest } /> } ,
60+ li : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < li className = "" { ...rest } /> } ,
61+ strong : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < strong className = "text-[#faf9f6] font-semibold" { ...rest } /> } ,
62+ hr : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < hr className = "my-12 border-[#faf9f6]/5" { ...rest } /> } ,
63+ a : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < a className = "text-[#faf9f6] hover:text-white transition-colors" { ...rest } /> } ,
64+ blockquote : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < blockquote className = "border-l-4 border-[#faf9f6]/30 pl-6 my-8 italic text-[#faf9f6]/75" { ...rest } /> } ,
6465 } }
6566 >
6667 { aboutContent }
@@ -70,16 +71,16 @@ export default function Home() {
7071 < ReactMarkdown
7172 remarkPlugins = { [ remarkGfm ] }
7273 components = { {
73- h1 : ( { ...props } : any ) => < h1 className = "text-4xl font-bold text-[#faf9f6] mb-8 border-b border-[#faf9f6]/10 pb-4" { ...props } /> ,
74- h2 : ( { ...props } : any ) => < h2 className = "text-2xl font-bold text-[#faf9f6] mt-12 mb-6" { ...props } /> ,
75- h3 : ( { ...props } : any ) => < h3 className = "text-xl font-bold text-[#faf9f6] mt-8 mb-4 transition-colors" { ...props } /> ,
76- p : ( { ...props } : any ) => < p className = "text-[#faf9f6]/85 text-lg leading-relaxed mb-6" { ...props } /> ,
77- ul : ( { ...props } : any ) => < ul className = "list-disc list-inside mb-6 space-y-3 text-[#faf9f6]/85 text-lg" { ...props } /> ,
78- li : ( { ...props } : any ) => < li className = "" { ...props } /> ,
79- strong : ( { ...props } : any ) => < strong className = "text-[#faf9f6] font-semibold" { ...props } /> ,
80- hr : ( { ...props } : any ) => < hr className = "my-12 border-[#faf9f6]/5" { ...props } /> ,
81- a : ( { ...props } : any ) => < a className = "text-[#faf9f6] hover:text-white transition-colors" { ...props } /> ,
82- blockquote : ( { ...props } : any ) => < blockquote className = "border-l-4 border-[#faf9f6]/30 pl-6 my-8 italic text-[#faf9f6]/75" { ...props } /> ,
74+ h1 : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < h1 className = "text-4xl font-bold text-[#faf9f6] mb-8 border-b border-[#faf9f6]/10 pb-4" { ...rest } /> } ,
75+ h2 : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < h2 className = "text-2xl font-bold text-[#faf9f6] mt-12 mb-6" { ...rest } /> } ,
76+ h3 : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < h3 className = "text-xl font-bold text-[#faf9f6] mt-8 mb-4 transition-colors" { ...rest } /> } ,
77+ p : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < p className = "text-[#faf9f6]/85 text-lg leading-relaxed mb-6" { ...rest } /> } ,
78+ ul : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < ul className = "list-disc list-inside mb-6 space-y-3 text-[#faf9f6]/85 text-lg" { ...rest } /> } ,
79+ li : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < li className = "" { ...rest } /> } ,
80+ strong : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < strong className = "text-[#faf9f6] font-semibold" { ...rest } /> } ,
81+ hr : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < hr className = "my-12 border-[#faf9f6]/5" { ...rest } /> } ,
82+ a : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < a className = "text-[#faf9f6] hover:text-white transition-colors" { ...rest } /> } ,
83+ blockquote : ( { ...props } ) => { const { node : _node , ... rest } = props as any ; return < blockquote className = "border-l-4 border-[#faf9f6]/30 pl-6 my-8 italic text-[#faf9f6]/75" { ...rest } /> } ,
8384 } }
8485 >
8586 { researchContent }
0 commit comments