From db124b9c9b66b4c84dbf8fb4f1d1b42ff861006a Mon Sep 17 00:00:00 2001 From: Yehia Rasheed <157399068+yehiarasheed@users.noreply.github.com> Date: Thu, 17 Oct 2024 22:44:37 +0300 Subject: [PATCH] feat: change index.js to load tweets dynamically from userTweets.js (to be added) --- apps/website/src/pages/index.js | 201 ++++++++------------------------ 1 file changed, 48 insertions(+), 153 deletions(-) diff --git a/apps/website/src/pages/index.js b/apps/website/src/pages/index.js index 2cbf97c7..f3de0092 100755 --- a/apps/website/src/pages/index.js +++ b/apps/website/src/pages/index.js @@ -8,6 +8,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl'; import styles from './styles.module.css'; import successStories from '../data/successStories'; +import userTweets from '../data/userTweets'; const BLIND_75_URL = 'https://www.teamblind.com/post/New-Year-Gift---Curated-List-of-Top-75-LeetCode-Questions-to-Save-Your-Time-OaM1orEU'; @@ -512,7 +513,6 @@ function GreatFrontEndSection() { ); } - function TweetsSection() { return (
@@ -522,172 +522,67 @@ function TweetsSection() { 'margin-bottom--lg', 'text--center', styles.sectionTitle, - )}> + )} + > Over 1,000,000 people have benefitted from this handbook!
+ {/* Render tweets in groups of three */}
- - 1️⃣ Tech Interview Handbook -
-
- This repository has practical content that covers all phases - of a technical interview, from applying for a job to passing - the interviews to offer negotiation. 📎 - - } - /> - - Preparing for a job interview? -
-
- The tech interview handbook contains carefully curated to help - you ace your next technical interview. -
-
- And it's free. - - } - /> - Nice open source tech interview handbook} - /> - - Tech Interview Handbook 💻 - Content to help you ace your next - technical interview. Lots of front-end content here ✅ - - } - /> + {userTweets.slice(0, 3).map((tweet, index) => ( + + ))}
- - Ready to rock your #Coding interviews? Follow along as - @yangshunz shares tips on how to land your dream job from - personal experience. - - } - /> - - 5. Tech Interview Handbook -
-
- Here's free and curated technical interview preparation - materials for busy engineers. Besides the usual algorithm - questions, other awesome stuff includes How to prepare for - coding interviews, Interview Cheatsheet, and more. - - } - /> - - Another excellent tech interview handbook! If you need to - prepare yourself for a tech interview or you're an interviewer - and need additional inspiration. Happy Monday! #techinterviews - - } - /> + {userTweets.slice(3, 6).map((tweet, index) => ( + + ))}
- - Back in 2017, @yangshunz was interviewing for developer jobs. -
-
- He put in a lot of work, aced his interviews, & got offers - from Google, Airbnb, Dropbox, and more. -
-
- And he just updated this in-depth guide to help you also rock - your next coding interview. - - } - /> - - 🔹Tech Interview Handbook: Another useful resource that covers - information about technical interviews. It covers the job - applications, the interview process and the post-interview - - } - /> - - The Tech Interview Handbook provides carefully curated content - to help you ace your next technical interview. - - } - /> + {userTweets.slice(6, 9).map((tweet, index) => ( + + ))}
+

+ Would you like to share your experience?{' '} + + Open a Pull Request here + + ! +

); } - function SuccessStory({ name, quote, thumbnail, title }) { return (