feat: change index.js to load tweets dynamically from userTweets.js (to be added)

pull/673/head
Yehia Rasheed 11 months ago committed by GitHub
parent 5dd02b1d47
commit db124b9c9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -8,6 +8,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
import styles from './styles.module.css'; import styles from './styles.module.css';
import successStories from '../data/successStories'; import successStories from '../data/successStories';
import userTweets from '../data/userTweets';
const BLIND_75_URL = const BLIND_75_URL =
'https://www.teamblind.com/post/New-Year-Gift---Curated-List-of-Top-75-LeetCode-Questions-to-Save-Your-Time-OaM1orEU'; '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() {
</div> </div>
); );
} }
function TweetsSection() { function TweetsSection() {
return ( return (
<div className={clsx('padding-vert--xl', styles.sectionAlt)}> <div className={clsx('padding-vert--xl', styles.sectionAlt)}>
@ -522,172 +522,67 @@ function TweetsSection() {
'margin-bottom--lg', 'margin-bottom--lg',
'text--center', 'text--center',
styles.sectionTitle, styles.sectionTitle,
)}> )}
>
Over 1,000,000 people have benefitted from this handbook! Over 1,000,000 people have benefitted from this handbook!
</h2> </h2>
<div className={clsx('row', styles.tweetsSection)}> <div className={clsx('row', styles.tweetsSection)}>
{/* Render tweets in groups of three */}
<div className="col col--4"> <div className="col col--4">
<Tweet {userTweets.slice(0, 3).map((tweet, index) => (
url="https://twitter.com/Insharamin/status/1412978510788915205" <Tweet
handle="Insharamin" key={index}
name="Insha" url={tweet.url}
date="Jul 8, 2021" handle={tweet.handle}
avatar="/img/tweets/Insharamin.jpg" name={tweet.name}
content={ date={tweet.date}
<> avatar={tweet.avatar}
1 Tech Interview Handbook content={tweet.content}
<br /> />
<br /> ))}
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. 📎
</>
}
/>
<Tweet
url="https://twitter.com/ravinwashere/status/1328381097277681665"
handle="ravinwashere"
name="Ravin"
date="Nov 17, 2020"
avatar="/img/tweets/ravinwashere.jpg"
content={
<>
Preparing for a job interview?
<br />
<br />
The tech interview handbook contains carefully curated to help
you ace your next technical interview.
<br />
<br />
And it's free.
</>
}
/>
<Tweet
url="https://twitter.com/rwenderlich/status/1166336060533727232"
handle="rwenderlich"
name="raywenderlich.com"
date="Aug 27, 2019"
avatar="/img/tweets/rwenderlich.jpg"
content={<>Nice open source tech interview handbook</>}
/>
<Tweet
url="https://twitter.com/umaar/status/913425809108606976"
handle="umaar"
name="Umar Hansa"
date="Sep 28, 2017"
avatar="/img/tweets/umaar.jpg"
content={
<>
Tech Interview Handbook 💻 - Content to help you ace your next
technical interview. Lots of front-end content here
</>
}
/>
</div> </div>
<div className="col col--4"> <div className="col col--4">
<Tweet {userTweets.slice(3, 6).map((tweet, index) => (
url="https://twitter.com/MSFTImagine/status/1502675788335886344" <Tweet
handle="MSFTImagine" key={index}
name="Microsoft Imagine Cup" url={tweet.url}
date="Mar 13, 2022" handle={tweet.handle}
avatar="/img/tweets/MSFTImagine.png" name={tweet.name}
content={ date={tweet.date}
<> avatar={tweet.avatar}
Ready to rock your #Coding interviews? Follow along as content={tweet.content}
@yangshunz shares tips on how to land your dream job from />
personal experience. ))}
</>
}
/>
<Tweet
url="https://twitter.com/palashv2/status/1452981345899085833"
handle="palashv2"
name="Palash"
date="Oct 26, 2021"
avatar="/img/tweets/palashv2.jpg"
content={
<>
5. Tech Interview Handbook
<br />
<br />
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.
</>
}
/>
<Tweet
url="https://twitter.com/Justyna_Adam/status/1186166253830004736"
handle="Justyna_Adam"
name="Justyna_Adamczyk"
date="Oct 21, 2019"
avatar="/img/tweets/Justyna_Adam.jpg"
content={
<>
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
</>
}
/>
</div> </div>
<div className="col col--4"> <div className="col col--4">
<Tweet {userTweets.slice(6, 9).map((tweet, index) => (
url="https://twitter.com/freeCodeCamp/status/1494658460830552065" <Tweet
handle="freeCodeCamp" key={index}
name="freeCodeCamp.org" url={tweet.url}
date="Feb 18, 2022" handle={tweet.handle}
avatar="/img/tweets/freeCodeCamp.jpg" name={tweet.name}
content={ date={tweet.date}
<> avatar={tweet.avatar}
Back in 2017, @yangshunz was interviewing for developer jobs. content={tweet.content}
<br /> />
<br /> ))}
He put in a lot of work, aced his interviews, & got offers
from Google, Airbnb, Dropbox, and more.
<br />
<br />
And he just updated this in-depth guide to help you also rock
your next coding interview.
</>
}
/>
<Tweet
url="https://twitter.com/Vinaystwt/status/1437062973554507777"
handle="Vinaystwt"
name="Vinay Sharma"
date="Sep 12, 2021"
avatar="/img/tweets/Vinaystwt.jpg"
content={
<>
🔹Tech Interview Handbook: Another useful resource that covers
information about technical interviews. It covers the job
applications, the interview process and the post-interview
</>
}
/>
<Tweet
url="https://twitter.com/sitepointdotcom/status/1164121717243023360"
handle="sitepointdotcom"
name="SitePoint"
date="Aug 21, 2019"
avatar="/img/tweets/sitepointdotcom.jpg"
content={
<>
The Tech Interview Handbook provides carefully curated content
to help you ace your next technical interview.
</>
}
/>
</div> </div>
</div> </div>
<p className="margin-vert--lg text--center">
Would you like to share your experience?{' '}
<a
href="https://github.com/yangshun/tech-interview-handbook/edit/main/apps/website/src/data/userTweets.js"
rel="noopener"
target="_blank"
>
Open a Pull Request here
</a>
!
</p>
</div> </div>
</div> </div>
); );
} }
function SuccessStory({ name, quote, thumbnail, title }) { function SuccessStory({ name, quote, thumbnail, title }) {
return ( return (
<div className="card margin-vert--lg"> <div className="card margin-vert--lg">

Loading…
Cancel
Save