@@ -11,7 +11,7 @@ export async function getStaticPaths() {
1111 if (! tags .includes (tag )) tags .push (tag )
1212 })
1313 return tags
14- }, new Array < string > ).map (tag => ({
14+ }, new Array <string >() ).map (tag => ({
1515 params: { tag }
1616 }))
1717}
@@ -25,24 +25,22 @@ const ideas = (await getCollection("ideas"))
2525<Layout >
2626 <Drawer >
2727 <div class =" flex flex-col w-full items-center" >
28+ <div class =" h-6" ></div >
29+ <span class =" text-4xl font-bold" ># { tag } </span >
2830 <div class =" h-4" ></div >
29- <span class =" text-6xl font-bold border-2 rounded-full px-4 py-2" ># { tag } </span >
30- <div class =" h-4" ></div >
31- { ideas .map (idea => (
32- <a href = { ` /idea/${Idea .slug (idea )} ` } class = " flex flex-row items-center p-4 rounded-lg hover:bg-base-200" >
33- { ! Idea .isDraft (idea ) && <Lightbulb class = " w-10 h-10" /> }
34- { Idea .isDraft (idea ) && <Construction class = " w-10 h-10" /> }
35- <div class = " divider divider-horizontal" ></div >
36- <div class = " flex flex-col flex-1 items-start" >
37- <span class = " text-lg lg:text-xl font-bold" >{ idea .data .title } </span >
38- <div class = " text-sm lg:text-lg flex flex-row gap-1 " >
39- { idea .data .author && <span >{ idea .data .author } </span >}
40- { (idea .data .author && idea .data .pubDate ) && " |" }
41- { idea .data .pubDate && <span >{ idea .data .pubDate ?.toDateString ()} </span >}
31+ <div class =" w-full flex flex-row flex-wrap max-w-xs justify-center sm:max-w-2xl lg:max-w-5xl" >
32+ { ideas .map (idea => (
33+ <a href = { ` /idea/${Idea .slug (idea )} ` } class = " flex flex-row flex-1 max-w-xs items-center p-4 rounded-lg hover:bg-base-200" >
34+ { ! Idea .isDraft (idea ) && <Lightbulb class = " w-10 h-10" /> }
35+ { Idea .isDraft (idea ) && <Construction class = " w-10 h-10" /> }
36+ <div class = " divider divider-horizontal" ></div >
37+ <div class = " flex flex-col flex-1 items-start" >
38+ <span class = " text-lg sm:text-xl font-bold" >{ idea .data .title } </span >
39+ { idea .data .pubDate && <span class = " text-sm sm:text-lg" >{ idea .data .pubDate ?.toDateString ()} </span >}
4240 </div >
43- </div >
44- </ a >
45- )) }
41+ </a >
42+ )) }
43+ </ div >
4644 </div >
4745 </Drawer >
4846</Layout >
0 commit comments