-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a quotation component and use it in files (#536)
* Create a quotation component and use it in files * fix build
- Loading branch information
Showing
5 changed files
with
53 additions
and
42 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
interface QuotationProps { | ||
author: string | ||
quotation: string | ||
reference?: string | ||
} | ||
|
||
const Quotation: React.FC<QuotationProps> = ({ | ||
author, | ||
quotation, | ||
reference, | ||
}) => { | ||
return ( | ||
<div className="relative flex flex-col rounded-xl bg-white bg-clip-border text-gray-700 shadow-md"> | ||
<div className="p-6"> | ||
{reference && ( | ||
<div> | ||
<h5 className="mb-2 block font-sans font-semibold leading-snug"> | ||
{reference} | ||
</h5> | ||
<hr className="border-gray-300 m-1 lg:m-1" /> | ||
</div> | ||
)} | ||
<div className="flex float-right">{author}</div> | ||
<div className="clear-both"></div> | ||
<p className="block font-sans text-base font-light leading-relaxed text-inherit antialiased"> | ||
{quotation} | ||
</p> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default Quotation |
d4c3346
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
blog – ./
blog-git-main-caulagi.vercel.app
blog-caulagi.vercel.app
blog.caulagi.com