11'use client' ;
22import ReactMarkdown from 'react-markdown' ;
3+ import remarkGfm from 'remark-gfm' ;
34import { HackathonTimeline } from './hackathonTimeline' ;
45import { HackathonPrizes } from './hackathonPrizes' ;
56
@@ -33,19 +34,8 @@ export function HackathonOverview({
3334 < div className = { `w-full py-8 ${ className } ` } >
3435 < article className = 'prose prose-sm sm:prose lg:prose-lg dark:prose-invert max-w-none text-left' >
3536 < ReactMarkdown
37+ remarkPlugins = { [ remarkGfm ] }
3638 components = { {
37- h1 : ( { ...props } ) => (
38- < h1 className = 'mb-6 text-4xl font-bold' { ...props } />
39- ) ,
40- h2 : ( { ...props } ) => (
41- < h2 className = 'mt-8 mb-4 text-3xl font-bold' { ...props } />
42- ) ,
43- h3 : ( { ...props } ) => (
44- < h3 className = 'mt-6 mb-3 text-2xl font-semibold' { ...props } />
45- ) ,
46- p : ( { ...props } ) => (
47- < p className = 'mb-4 text-base leading-7' { ...props } />
48- ) ,
4939 ul : ( { ...props } ) => (
5040 < ul
5141 className = 'marker:text-primary mb-4 ml-4 list-inside list-disc space-y-2'
@@ -58,37 +48,34 @@ export function HackathonOverview({
5848 { ...props }
5949 />
6050 ) ,
61- li : ( { ... props } ) => < li className = 'mb-1 text-base' { ... props } /> ,
62- blockquote : ( { ...props } ) => (
63- < blockquote
64- className = 'border-primary my-4 border-l-4 pl-4 text-gray-600 italic dark: text-gray-400 '
51+
52+ table : ( { ...props } ) => (
53+ < table
54+ className = 'w-full border border-gray-400 text-sm text-white '
6555 { ...props }
6656 />
6757 ) ,
68- code : ( { ...props } ) => (
69- < code
70- className = 'rounded bg -gray-100 px-2 py-1 font-mono text-sm dark:bg-gray-800 '
58+ thead : ( { ...props } ) => (
59+ < thead
60+ className = 'border-b border -gray-400 text-white '
7161 { ...props }
7262 />
7363 ) ,
74- pre : ( { ...props } ) => (
75- < pre
76- className = 'mb-4 overflow-auto rounded bg-gray-100 p-4 dark:bg-gray-800'
77- { ...props }
78- />
64+ tbody : ( { ...props } ) => (
65+ < tbody className = 'text-white' { ...props } />
7966 ) ,
80- table : ( { ...props } ) => (
81- < table className = 'mb-4 w-full border-collapse ' { ...props } />
67+ tr : ( { ...props } ) => (
68+ < tr className = 'border-b border-gray-400 ' { ...props } />
8269 ) ,
8370 th : ( { ...props } ) => (
8471 < th
85- className = 'border border-gray-300 bg-gray-100 px-4 py-2 dark:border-gray-700 dark:bg-gray-800 '
72+ className = 'border border-gray-400 px-3 py-2 text-left font-semibold text-white '
8673 { ...props }
8774 />
8875 ) ,
8976 td : ( { ...props } ) => (
9077 < td
91- className = 'border border-gray-300 px-4 py-2 dark:border-gray-700 '
78+ className = 'border border-gray-400 px-3 py-2 text-white '
9279 { ...props }
9380 />
9481 ) ,
0 commit comments