This repository was archived by the owner on Oct 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: refactor discord and partnership card into one component because…
… the share the same HTML structure #108
- Loading branch information
1 parent
666128a
commit 5f89ecc
Showing
4 changed files
with
37 additions
and
54 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,19 @@ | ||
import React from "react"; | ||
import Link from "@docusaurus/Link"; | ||
import styles from "./card.module.css"; | ||
|
||
const CommunityBannerCard = ({ link, headerTitle, bodyText, icon }) => { | ||
return ( | ||
<Link href={link}> | ||
<div className={styles.communityBanner}> | ||
<div>{icon}</div> | ||
<div className={styles.communityBannerContent}> | ||
<h3>{headerTitle}</h3> | ||
<p>{bodyText}</p> | ||
</div> | ||
</div> | ||
</Link> | ||
); | ||
}; | ||
|
||
export default CommunityBannerCard; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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