change images

This commit is contained in:
Rodrigo Nader 2023-07-28 17:37:28 -03:00
commit 7b03dfabe6
3 changed files with 70 additions and 50 deletions

View file

@ -21,7 +21,10 @@ Let's take a look at the basic rules and features. Then we'll go over an example
- Use the _`build_config`_ method to customize how these fields look and behave. - Use the _`build_config`_ method to customize how these fields look and behave.
Here is an example: Here is an example:
<div style={{
display: "flex",
justifyContent: "center",
}}>
<CH.Code linuNumbers={false}> <CH.Code linuNumbers={false}>
```python ```python
@ -51,6 +54,20 @@ class DocumentProcessor(CustomComponent):
</CH.Code> </CH.Code>
<ZoomableImage
alt="Document Processor Component"
sources={{
light: "img/document_processor.png",
}}
style={{
width: "40%",
margin: "0 auto",
display: "flex",
justifyContent: "center",
}}
/>
</div>
<Admonition type="tip"> <Admonition type="tip">
Check out [FlowRunner Component](../examples/flow-runner) for a more complex Check out [FlowRunner Component](../examples/flow-runner) for a more complex
example. example.
@ -289,39 +306,42 @@ class DocumentProcessor(CustomComponent):
</CH.Scrollycoding> </CH.Scrollycoding>
In Langflow, this is how our script looks like:
{" "} All done! This is what our script and brand-new custom component look like:
<div style={{
display: "flex",
justifyContent: "center",
}}>
<ZoomableImage <ZoomableImage
alt="Document Processor code" alt="Document Processor Code"
sources={{ sources={{
light: "img/document_processor_code.png", light: "img/document_processor_code.png",
}} }}
style={{ style={{
maxWidth: "70%", maxWidth: "100%",
margin: "0 auto", margin: "0 auto",
display: "flex", display: "flex",
justifyContent: "center", justifyContent: "center",
}} }}
/> />
And there is our brand new custom component:
{" "}
<ZoomableImage <ZoomableImage
alt="Document Processor component" alt="Document Processor Component"
sources={{ sources={{
light: "img/document_processor.png", light: "img/document_processor.png",
}} }}
style={{ style={{
width: "50%", width: "40%",
margin: "0 auto", margin: "0 auto",
display: "flex", display: "flex",
justifyContent: "center", justifyContent: "center",
}} }}
/> />
</div>
<Admonition type="tip" label="Tip"> <Admonition type="tip" label="Tip">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 197 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 KiB

After

Width:  |  Height:  |  Size: 407 KiB

Before After
Before After