-
-
Notifications
You must be signed in to change notification settings - Fork 11.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from txs/feature_facebook_fanpage
Add Facebook fanpage sidebar
- Loading branch information
Showing
4 changed files
with
72 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import BLOG from '@/blog.config' | ||
import { FacebookProvider, Page } from 'react-facebook' | ||
import { FacebookIcon } from 'react-share' | ||
|
||
const FacebookPage = () => ( | ||
<div className="shadow-md hover:shadow-xl dark:text-gray-300 border dark:border-black rounded-xl px-2 py-4 bg-white dark:bg-hexo-black-gray lg:duration-100 justify-center"> | ||
{BLOG.FACEBOOK_PAGE_TITLE && ( | ||
<div className="flex items-center pb-2"> | ||
<a | ||
href={BLOG.FACEBOOK_PAGE} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="p-1 pr-2 pt-0" | ||
> | ||
<FacebookIcon size={28} round /> | ||
</a> | ||
<a href={BLOG.FACEBOOK_PAGE} rel="noopener noreferrer" target="_blank"> | ||
{BLOG.FACEBOOK_PAGE_TITLE} | ||
</a> | ||
</div> | ||
)} | ||
<FacebookProvider appId={BLOG.FACEBOOK_APP_ID}> | ||
<Page href={BLOG.FACEBOOK_PAGE} tabs="timeline" /> | ||
</FacebookProvider> | ||
</div> | ||
) | ||
export default FacebookPage |
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
7ef433c
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:
notionnext – ./
nobelium-plum-nine.vercel.app
blog.tangly1024.com
notionnext-git-main-tlyong1992.vercel.app
tangly1024.com
notionnext-tlyong1992.vercel.app
www.tangly1024.com