-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9176733
commit 5a348f9
Showing
11 changed files
with
466 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import DOMPurify from "isomorphic-dompurify"; | ||
import { marked } from "marked"; | ||
|
||
interface IProjectAboutProps { | ||
richText: string; | ||
} | ||
|
||
const ProjectAbout = ({ richText }: IProjectAboutProps) => { | ||
const parsedRichText = DOMPurify.sanitize( | ||
marked.parse(richText, { breaks: true }) as string, | ||
); | ||
|
||
return ( | ||
<> | ||
<div className="flex-center gap-2 spread border-b-small pb-2"> | ||
<div className="text-tinted fs-sm">About the Project</div> | ||
</div> | ||
<div | ||
id="description" | ||
className="mdc mt-4 font-normal leading-snug md:text-lg" | ||
dangerouslySetInnerHTML={{ | ||
__html: parsedRichText, | ||
}} | ||
/> | ||
</> | ||
); | ||
}; | ||
|
||
export default ProjectAbout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.