From c77d8818233ce1bc756c19cab4139c61aa238183 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Thu, 14 Mar 2024 16:57:12 +0700 Subject: [PATCH] Added section wall of love or testimonial --- docs/src/containers/Testimonial/index.js | 175 +++++++++++++++++++++++ docs/src/pages/index.js | 20 ++- docs/src/styles/components/base.scss | 95 ++++++++++++ 3 files changed, 279 insertions(+), 11 deletions(-) create mode 100644 docs/src/containers/Testimonial/index.js diff --git a/docs/src/containers/Testimonial/index.js b/docs/src/containers/Testimonial/index.js new file mode 100644 index 000000000..e98275a76 --- /dev/null +++ b/docs/src/containers/Testimonial/index.js @@ -0,0 +1,175 @@ +import { useColorMode } from '@docusaurus/theme-common' +import { Tweet } from 'react-tweet' + +const firstColumn = [ + { + type: 'tweet', + id: '1742843063938994469', + }, + { + type: 'youtube', + id: 'ZCiEQVOjH5U', + }, + { + type: 'youtube', + id: '7JpzE-_cKo4', + }, + { + type: 'tweet', + id: '1744729548074459310', + }, +] + +const secondColumn = [ + { + type: 'youtube', + id: 'QpMQgJL4AZA', + }, + { + type: 'tweet', + id: '1750801065132384302', + }, + { + type: 'youtube', + id: '9ta2S425Zu8', + }, + { + type: 'tweet', + id: '1757504717519749292', + }, +] + +const thirdColumn = [ + { + type: 'tweet', + id: '1745560583548670250', + }, + { + type: 'youtube', + id: 'zkafOIyQM8s', + }, + { + type: 'tweet', + id: '1757500111629025788', + }, +] + +const fourthColumn = [ + { + type: 'tweet', + id: '1742993414986068423', + }, + { + type: 'youtube', + id: '9ta2S425Zu8', + }, + { + type: 'youtube', + id: 'ES021_sY6WQ', + }, + { + type: 'youtube', + id: 'CbJGxNmdWws', + }, +] + +const Testimonial = () => { + const { colorMode } = useColorMode() + + return ( +
+
+

+ People say nice things +

+

+ ...despite our bugs and fast moving releases +

+
+
+
+
+
+ {firstColumn.map((item, i) => { + if (item.type === 'tweet') return + if (item.type === 'youtube') + return ( +
+