Add borderMarker

This commit is contained in:
Alfred Melch 2019-12-14 20:03:17 +01:00
parent 38b1082772
commit 88a84f252d
2 changed files with 30 additions and 9 deletions

View File

@ -0,0 +1,11 @@
.border {
height: 2px;
background: black;
}
.marker {
height: 6px;
width: 2px;
background: black;
margin: 0 auto;
}

View File

@ -1,11 +1,21 @@
import React from 'react'
export const PipeMarker = ({ children }) => {
return (
<div>
<div style={{ textAlign: 'center' }}>|</div>
{children}
<div style={{ textAlign: 'center' }}>|</div>
</div>
)
}
import styles from './PivotMarker.css'
export const PipeMarker = ({ children }) => (
<div>
<div style={{ textAlign: 'center' }}>|</div>
{children}
<div style={{ textAlign: 'center' }}>|</div>
</div>
)
export const BorderMarker = ({ children }) => (
<div>
<div className={styles.border}></div>
<div className={styles.marker}></div>
{children}
<div className={styles.marker}></div>
<div className={styles.border}></div>
</div>
)