mirror of
https://github.com/runyanjake/cooking.git
synced 2026-03-26 01:43:17 -07:00
Update recipe card to include bullet points
This commit is contained in:
parent
63b01ec50b
commit
b958074c8c
@ -7,7 +7,8 @@
|
|||||||
"Bash(npm ls *)",
|
"Bash(npm ls *)",
|
||||||
"Bash(node *)",
|
"Bash(node *)",
|
||||||
"Bash(ls *)",
|
"Bash(ls *)",
|
||||||
"Bash(ls)"
|
"Bash(ls)",
|
||||||
|
"Bash(node -e:*)"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -78,21 +78,22 @@ export default function RecipeCard({ children }: { children: ReactNode }) {
|
|||||||
role="tabpanel"
|
role="tabpanel"
|
||||||
id={`tab-panel-${activeSection.title.toLowerCase()}`}
|
id={`tab-panel-${activeSection.title.toLowerCase()}`}
|
||||||
aria-labelledby={`tab-${activeSection.title.toLowerCase()}`}
|
aria-labelledby={`tab-${activeSection.title.toLowerCase()}`}
|
||||||
className={`prose prose-lg dark:prose-invert max-w-none
|
className={`max-w-none text-base leading-relaxed
|
||||||
prose-headings:text-gray-900 dark:prose-headings:text-white
|
[&_h3]:text-lg [&_h3]:font-semibold [&_h3]:text-gray-900 dark:[&_h3]:text-white [&_h3]:mt-5 [&_h3]:mb-2
|
||||||
prose-p:text-gray-700 dark:prose-p:text-gray-300
|
[&_p]:text-gray-700 dark:[&_p]:text-gray-300 [&_p]:my-2
|
||||||
prose-strong:text-gray-900 dark:prose-strong:text-white
|
[&_strong]:text-gray-900 dark:[&_strong]:text-white
|
||||||
prose-ol:list-decimal prose-ol:pl-6 prose-ol:space-y-2
|
[&_ol]:list-decimal [&_ol]:pl-6 [&_ol]:space-y-2 [&_ol]:my-4
|
||||||
prose-ul:list-disc prose-ul:pl-6 prose-ul:space-y-2
|
[&_ul]:list-disc [&_ul]:pl-6 [&_ul]:space-y-2 [&_ul]:my-4
|
||||||
prose-li:text-gray-700 dark:prose-li:text-gray-300
|
[&_li]:text-gray-700 dark:[&_li]:text-gray-300
|
||||||
prose-li:marker:text-gray-500 dark:prose-li:marker:text-gray-400
|
[&_li]:marker:text-gray-500 dark:[&_li]:marker:text-gray-400
|
||||||
prose-code:text-gray-900 dark:prose-code:text-gray-100
|
[&_a]:text-blue-600 dark:[&_a]:text-blue-400 [&_a]:underline
|
||||||
prose-pre:bg-gray-100 dark:prose-pre:bg-gray-900
|
[&_code]:text-gray-900 dark:[&_code]:text-gray-100 [&_code]:bg-gray-100 dark:[&_code]:bg-gray-800 [&_code]:rounded [&_code]:px-1.5 [&_code]:py-0.5
|
||||||
prose-table:border-collapse
|
[&_pre]:bg-gray-100 dark:[&_pre]:bg-gray-900
|
||||||
prose-th:border prose-th:border-gray-300 dark:prose-th:border-gray-600
|
[&_table]:border-collapse
|
||||||
prose-td:border prose-td:border-gray-300 dark:prose-td:border-gray-600
|
[&_th]:border [&_th]:border-gray-300 dark:[&_th]:border-gray-600
|
||||||
|
[&_td]:border [&_td]:border-gray-300 dark:[&_td]:border-gray-600
|
||||||
${activeSection.title === 'Photos'
|
${activeSection.title === 'Photos'
|
||||||
? 'prose-img:w-full prose-img:max-w-2xl prose-img:mx-auto [&_em]:block [&_em]:text-center [&_em]:text-sm [&_em]:text-gray-600 dark:[&_em]:text-gray-400 [&_em]:italic [&_em]:my-2'
|
? '[&_img]:w-full [&_img]:max-w-2xl [&_img]:mx-auto [&_em]:block [&_em]:text-center [&_em]:text-sm [&_em]:text-gray-600 dark:[&_em]:text-gray-400 [&_em]:italic [&_em]:my-2'
|
||||||
: ''
|
: ''
|
||||||
}
|
}
|
||||||
`}
|
`}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user