2
0

docs: 📝 Add doc for every block

This commit is contained in:
Baptiste Arnaud
2022-06-17 08:04:22 +02:00
parent e86d436e8d
commit 283509ed59
92 changed files with 1967 additions and 679 deletions

View File

@@ -20,6 +20,7 @@ h4 {
img {
border-radius: 0.5rem;
margin-bottom: 1rem;
}
.docusaurus-highlight-code-line {
@@ -55,3 +56,23 @@ details {
text-decoration: none !important;
margin-bottom: 10px;
}
.flex {
display: flex;
align-items: center;
}
.arrow-icon {
margin: 0 10px;
}
@media only screen and (max-width: 600px) {
.flex {
flex-direction: column;
}
.arrow-icon {
margin: 10px 0;
transform: rotate(90deg);
}
}

View File

@@ -0,0 +1,22 @@
import React from 'react'
export const FlowToBot = ({ flow, bot }) => (
<div className="flex">
{flow}
<svg
xmlns="http://www.w3.org/2000/svg"
width="50"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
className="arrow-icon"
>
<line x1="5" y1="12" x2="19" y2="12"></line>
<polyline points="12 5 19 12 12 19"></polyline>
</svg>
{bot}
</div>
)