Add functionality to add note to the roadmaps

This commit is contained in:
Kamran Ahmed committed 2023-01-19 15:05:25 +04:00
1 parent 6187b1dc52
commit f5e980d8ec
10 files changed
+72 -20

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
---
import { Debug } from 'astro/components';
import { markdownToHtml } from '../lib/markdown';
export interface Props {
text: string;
}
const { text } = Astro.props;
---
<div class='bg-gray-50'>
<div class='container pt-1'>
<p
class='text-sm bg-yellow-100 text-yellow-900 p-2 rounded-md mt-2 sm:mt-5 mb-0 sm:-mb-6 z-10 relative [&>a]:underline'
set:html={markdownToHtml(text.trim())}
/>
</div>
</div>