Skip to content

Commit 0fd3151

Browse files
committed
Add blog
1 parent 77c8a0b commit 0fd3151

File tree

11 files changed

+1075
-2
lines changed

11 files changed

+1075
-2
lines changed

components/Divider.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from "react";
2+
3+
export default function Divider() {
4+
return (
5+
<div className="my-4">
6+
<hr />
7+
</div>
8+
);
9+
}

components/HighlightBox.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
}

components/MDXComponents.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ import ConsCard from "@/components/ConsCard";
1010
// import YouTube from "@/components/metrics/Youtube";
1111
import Step from "@/components/Step";
1212
import StepLarge from "@/components/StepLarge";
13+
import StepLargeCustom from "@/components/StepLargeCustom";
14+
import HighlightBox from "@/components/HighlightBox";
1315
import StepCheck from "@/components/StepCheck";
16+
import Divider from "@/components/Divider";
17+
import Table from "@/components/Table";
1418
import VideoDemo from "./VideoDemo";
1519

1620
const CustomLink = (props) => {
@@ -38,6 +42,10 @@ const MDXComponents = {
3842
StepCheck,
3943
Tweet,
4044
VideoDemo,
45+
HighlightBox,
46+
Divider,
47+
Table,
48+
StepLargeCustom,
4149
};
4250

4351
export default MDXComponents;

components/StepCheck.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
export 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
}

components/StepLargeCustom.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
}

components/Table.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
}

0 commit comments

Comments
 (0)