mirror of https://github.com/status-im/consul.git
48 lines
1.2 KiB
JavaScript
48 lines
1.2 KiB
JavaScript
function BeforeAfterDiagram({
|
|
beforeHeading,
|
|
beforeSubTitle,
|
|
beforeImage,
|
|
beforeDescription,
|
|
afterHeading,
|
|
afterSubTitle,
|
|
afterImage,
|
|
afterDescription,
|
|
}) {
|
|
return (
|
|
<div class="g-timeline">
|
|
<div>
|
|
<span class="line"></span>
|
|
<span class="line">
|
|
<svg
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
width="11"
|
|
height="15"
|
|
viewBox="0 0 11 15"
|
|
>
|
|
<path
|
|
fill="#CA2171"
|
|
d="M0 0v15l5.499-3.751L11 7.5 5.499 3.749.002 0z"
|
|
/>
|
|
</svg>
|
|
</span>
|
|
<span class="dot"></span>
|
|
<h3>{beforeHeading}</h3>
|
|
<span class="sub-heading">{beforeSubTitle}</span>
|
|
<img src={beforeImage} alt={beforeSubTitle} class="static-callout" />
|
|
{beforeDescription && <p>{beforeDescription}</p>}
|
|
</div>
|
|
<div>
|
|
<span class="dot"></span>
|
|
<h3>{afterHeading}</h3>
|
|
<span class="sub-heading">{afterSubTitle}</span>
|
|
<div id="index-dynamic-animation">
|
|
<img src={afterImage} alt={afterSubTitle} class="static-callout" />
|
|
</div>
|
|
{afterDescription && <p>{afterDescription}</p>}
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default BeforeAfterDiagram
|