Skip to content

Commit

Permalink
Add links to roadmaps from FAQs on the frontend roadmap
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranahmedse committed Jan 18, 2023
1 parent 621f841 commit 64e20e9
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"@tailwindcss/typography": "^0.5.9",
"gh-pages": "^4.0.0",
"json-to-pretty-yaml": "^1.2.2",
"markdown-it": "^13.0.1",
"prettier": "^2.8.3",
"prettier-plugin-astro": "^0.7.2"
}
Expand Down
33 changes: 32 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/FAQs/Answer.astro
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div class='text-sm sm:text-base leading-relaxed text-left p-2 sm:p-4 text-md text-gray-800 border-t border-t-gray-300 bg-gray-100 rounded-bl-md rounded-br-md'>
<div class='text-sm sm:text-base leading-relaxed text-left p-2 sm:p-4 text-md text-gray-800 border-t border-t-gray-300 bg-gray-100 rounded-bl-md rounded-br-md [&>p:not(:last-child)]:mb-3 [&>p>a]:underline [&>p>a]:text-blue-500'>
<slot />
</div>
5 changes: 4 additions & 1 deletion src/components/FAQs/FAQs.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
---
import MarkdownIt from 'markdown-it';
import Answer from './Answer.astro';
import Question from './Question.astro';
const md = new MarkdownIt();
export type FAQType = {
question: string;
answer: string[];
Expand Down Expand Up @@ -30,7 +33,7 @@ if (faqs.length === 0) {
<Question isActive={questionIndex === 0} question={faq.question}>
<Answer>
{faq.answer.map((answer, index) => (
<p class:list={{ 'mb-3': index !== faq.answer.length - 1 }}>{answer}</p>
<Fragment set:html={md.render(answer)} />
))}
</Answer>
</Question>
Expand Down
4 changes: 2 additions & 2 deletions src/roadmaps/frontend/faqs.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const faqs: FAQType[] = [
{
question: 'What is Frontend Development?',
answer: [
"Front-end development is the development of visual and interactive elements of a website that users interact with directly. It's a combination of HTML, CSS and JavaScript, where HTML provides the structure, CSS the styling and layout, and JavaScript the dynamic behaviour and interactivity.",
"Front-end development is the development of visual and interactive elements of a website that users interact with directly. It's a combination of HTML, CSS and [JavaScript](/javascript), where HTML provides the structure, CSS the styling and layout, and JavaScript the dynamic behaviour and interactivity.",
"As a front-end developer, you'll be responsible for creating the user interface of a website, to ensure it looks good and is easy to use, with great focus on design principles and user experience. You'll be working closely with designers, back-end developers, and project managers to make sure the final product meets the client's needs and provides the best possible experience for the end-users.",
],
},
Expand All @@ -19,7 +19,7 @@ export const faqs: FAQType[] = [
{
question: 'How to become a Frontend Developer?',
answer: [
"Start with learning HTML and CSS; don't wait to fully master these and start building simple projects as soon as possible. You could try rebuilding the frontend of your favorite websites using HTML and CSS to start with. Do as many of these projects as possible as you keep learning. Once you are somewhat comfortable with HTML and CSS, start learning some basic JavaScript (DOM manipulation, making AJAX calls etc) and learn how to add interactivity to your websites. While you are at it learn some basics of Git and GitHub. At this point you should be able to get an entry level frontend development job. Keep revisiting this roadmap and try to fill the gaps in your knowledge.",
"Start with learning HTML and CSS; don't wait to fully master these and start building simple projects as soon as possible. You could try rebuilding the frontend of your favorite websites using HTML and CSS to start with. Do as many of these projects as possible as you keep learning. Once you are somewhat comfortable with HTML and CSS, start [learning some basic JavaScript](/javascript) (DOM manipulation, making AJAX calls etc) and learn how to add interactivity to your websites. While you are at it learn some basics of Git and GitHub. At this point you should be able to get an entry level frontend development job. Keep revisiting this roadmap and try to fill the gaps in your knowledge.",
],
},
{
Expand Down

0 comments on commit 64e20e9

Please sign in to comment.