-
Notifications
You must be signed in to change notification settings - Fork 118
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 #612 from finos/523-create-a-community-and-social-…
…media-wall-on-the-website docs: create a community and social media wall on the website
- Loading branch information
Showing
6 changed files
with
2,591 additions
and
2,276 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,69 @@ | ||
import React from 'react'; | ||
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; | ||
import { LinkedInEmbed } from 'react-social-media-embed'; | ||
import Slider from 'react-slick'; | ||
import 'slick-carousel/slick/slick.css'; | ||
import 'slick-carousel/slick/slick-theme.css'; | ||
|
||
/** | ||
* Home page component | ||
* @return {JSX.Element} | ||
*/ | ||
function Testimonials() { | ||
const context = useDocusaurusContext(); | ||
const { siteConfig = {} } = context; | ||
const { posts } = siteConfig.customFields; | ||
const settings = { | ||
infinite: true, | ||
speed: 500, | ||
slidesToShow: 3, | ||
slidesToScroll: 3, | ||
swipeToSlide: true, | ||
swipe: true, | ||
responsive: [ | ||
{ | ||
breakpoint: 1024, | ||
settings: { | ||
slidesToShow: 2, | ||
slidesToScroll: 2, | ||
infinite: true, | ||
dots: true, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 800, | ||
settings: { | ||
slidesToShow: 1, | ||
slidesToScroll: 1, | ||
initialSlide: 1, | ||
}, | ||
}, | ||
], | ||
dots: true, | ||
arrows: true, | ||
}; | ||
|
||
return ( | ||
<div className='margin-top--md'> | ||
<div className='container text--center'> | ||
<h1 className=''>Testimonials 📣</h1> | ||
</div> | ||
|
||
<div className='container margin-top--xl margin-bottom--xl'> | ||
<Slider {...settings}> | ||
{posts | ||
.filter((post) => post.platform === 'linkedin') | ||
.map((post) => { | ||
return ( | ||
<div key={post.url}> | ||
<LinkedInEmbed url={post.url} /> | ||
</div> | ||
); | ||
})} | ||
</Slider> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default Testimonials; |
Oops, something went wrong.