File tree Expand file tree Collapse file tree 11 files changed +1075
-2
lines changed
static/images/crack-the-javascript-interview Expand file tree Collapse file tree 11 files changed +1075
-2
lines changed Original file line number Diff line number Diff line change 1+ import React from "react" ;
2+
3+ export default function Divider ( ) {
4+ return (
5+ < div className = "my-4" >
6+ < hr />
7+ </ div >
8+ ) ;
9+ }
Original file line number Diff line number Diff line change 1+ import React from "react" ;
2+
3+ export default function HighlightBox ( { children } ) {
4+ return (
5+ < div
6+ className = "relative inline-block z-0 mt-0 mb-0"
7+ style = { { marginTop : "0px" , marginBottom : "0px" } }
8+ >
9+ < p
10+ className = "z-10 p-0 leading-0"
11+ style = { { marginTop : "0px" , marginBottom : "0px" } }
12+ >
13+ { children }
14+ </ p >
15+ < div
16+ className = "absolute bottom-0 left-0 right-0 mt-10 h-2 inline-block bg-green-200 dark:bg-green-600"
17+ style = { { zIndex : - 10 } }
18+ > </ div >
19+ </ div >
20+ ) ;
21+ }
Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ import ConsCard from "@/components/ConsCard";
1010// import YouTube from "@/components/metrics/Youtube";
1111import Step from "@/components/Step" ;
1212import StepLarge from "@/components/StepLarge" ;
13+ import StepLargeCustom from "@/components/StepLargeCustom" ;
14+ import HighlightBox from "@/components/HighlightBox" ;
1315import StepCheck from "@/components/StepCheck" ;
16+ import Divider from "@/components/Divider" ;
17+ import Table from "@/components/Table" ;
1418import VideoDemo from "./VideoDemo" ;
1519
1620const CustomLink = ( props ) => {
@@ -38,6 +42,10 @@ const MDXComponents = {
3842 StepCheck,
3943 Tweet,
4044 VideoDemo,
45+ HighlightBox,
46+ Divider,
47+ Table,
48+ StepLargeCustom,
4149} ;
4250
4351export default MDXComponents ;
Original file line number Diff line number Diff line change 2727export default function StepCheck ( { title } ) {
2828 return (
2929 < div className = "flex font-small items-baseline mb-2" >
30- < div className = "h-4 w-4 mr-2 " >
30+ < div className = "" >
3131 < svg
3232 className = "h-5 w-5 mr-2 text-green-500 inline-block"
3333 xmlns = "http://www.w3.org/2000/svg"
@@ -43,7 +43,7 @@ export default function StepCheck({ title }) {
4343 />
4444 </ svg >
4545 </ div >
46- < span > { title } </ span >
46+ < span class = "content-center" > { title } </ span >
4747 </ div >
4848 ) ;
4949}
Original file line number Diff line number Diff line change 1+ export default function StepLarge ( { number, title } ) {
2+ return (
3+ < div className = "step flex items-baseline md:items-center py-4" >
4+ < div className = "flex items-start md:items-center justify-center border border-gray-200 font-extrabold dark:border-gray-900 rounded-full h-8 w-8 text-green-500" >
5+ { number }
6+ </ div >
7+ < h1
8+ className = "ml-3 tracking-tight font-bold text-lg md:text-6xl dark:text-white"
9+ style = { { marginBottom : "0px" } }
10+ >
11+ { title }
12+ </ h1 >
13+ </ div >
14+ ) ;
15+ }
Original file line number Diff line number Diff line change 1+ import React from "react" ;
2+
3+ export default function Table ( { headers, body } ) {
4+ return (
5+ < table className = "table pl-4 p-4 bg-white dark:bg-gray-700 shadow-lg rounded-md" >
6+ < thead className = "ml-10" >
7+ < tr >
8+ { headers . map ( ( header ) => (
9+ < th className = "border-b-2 p-4 dark:border-dark-5 dark:text-gray-100 whitespace-nowrap font-normal text-gray-900" >
10+ { header }
11+ </ th >
12+ ) ) }
13+ </ tr >
14+ </ thead >
15+ < tbody >
16+ { body . map ( ( row ) => (
17+ < tr className = "text-gray-700" >
18+ { row . map ( ( data ) => (
19+ < td className = "border-b-2 p-4 dark:border-dark-5 dark:text-gray-100" >
20+ { data }
21+ </ td >
22+ ) ) }
23+ </ tr >
24+ ) ) }
25+ </ tbody >
26+ </ table >
27+ ) ;
28+ }
You can’t perform that action at this time.
0 commit comments