parent
413a00259c
commit
ba210c7c4e
@ -1,43 +0,0 @@ |
||||
import React from "react"; |
||||
|
||||
const Question = ( |
||||
<svg |
||||
xmlnsXlink="http://www.w3.org/1999/xlink" |
||||
xmlns="http://www.w3.org/2000/svg" |
||||
color="#000" |
||||
viewBox="0 0 16 16" |
||||
className="sc-dkIXFM jmmNux" |
||||
width="14" |
||||
height="14" |
||||
> |
||||
<path d="M8 0a8 8 0 108 8 8 8 0 00-8-8zm0 15a7 7 0 117-7 7 7 0 01-7 7zm-.75-3.49h1.53V13H7.25zm3.54-7A3.05 3.05 0 0111 5.72a2.54 2.54 0 01-.1.76 2.9 2.9 0 01-.27.62 3.75 3.75 0 01-.38.51l-.44.45-.43.42a5.58 5.58 0 00-.38.46 2.33 2.33 0 00-.27.52 1.83 1.83 0 00-.11.64v.54H7.44V10a2.57 2.57 0 01.22-1 3 3 0 01.45-.73 6.25 6.25 0 01.57-.58 7.4 7.4 0 00.55-.57 2.42 2.42 0 00.4-.65 1.82 1.82 0 00.13-.87 1.81 1.81 0 00-.49-1.19A1.63 1.63 0 008.09 4a1.91 1.91 0 00-.86.18 1.74 1.74 0 00-.59.49 1.91 1.91 0 00-.36.71 3.7 3.7 0 00-.11.9H5A3.71 3.71 0 015.2 5a3.17 3.17 0 01.61-1.1 2.85 2.85 0 011-.69A3.21 3.21 0 018.09 3a3.4 3.4 0 011.18.19 2.71 2.71 0 01.92.53 2.6 2.6 0 01.6.83z"></path> |
||||
</svg> |
||||
); |
||||
|
||||
const Chevron = ( |
||||
<svg |
||||
xmlnsXlink="http://www.w3.org/1999/xlink" |
||||
xmlns="http://www.w3.org/2000/svg" |
||||
viewBox="0 0 12 12" |
||||
className="sc-hHftDr bphBpT" |
||||
rotate="0" |
||||
data-test="IconComponent" |
||||
width="16" |
||||
height="20" |
||||
> |
||||
<rect |
||||
rotate="0" |
||||
data-test="IconComponent" |
||||
className="sc-fKFyDc gYoavR" |
||||
fillOpacity="0" |
||||
fill="#000000" |
||||
></rect> |
||||
<polygon |
||||
transform="translate(5.949747, 4.949747) rotate(-45.000000) translate(-5.949747, -4.949747) " |
||||
points="4.44974747 6.44974747 4.44974747 1.44974747 2.44974747 1.44974747 2.44974747 8.44974747 9.44974747 8.44974747 9.44974747 6.44974747" |
||||
fill="#0A0B0D" |
||||
></polygon> |
||||
</svg> |
||||
); |
||||
|
||||
export { Question, Chevron }; |
@ -1,7 +1,23 @@ |
||||
import { Links } from "components/Links"; |
||||
import React from "react"; |
||||
import styles from "./styles.module.css"; |
||||
|
||||
const Preview: React.FC = () => { |
||||
return <div />; |
||||
import { Link } from "utils/types"; |
||||
|
||||
interface PreviewProps { |
||||
links: Link[]; |
||||
} |
||||
|
||||
const Preview: React.FC<PreviewProps> = ({ links }) => { |
||||
return ( |
||||
<div className={styles.container}> |
||||
<div |
||||
className={`box-border bg-white rounded-preview border-preview border-black ${styles.parent}`} |
||||
> |
||||
<Links links={links} className={styles.child} /> |
||||
</div> |
||||
</div> |
||||
); |
||||
}; |
||||
|
||||
export default Preview; |
||||
|
@ -0,0 +1,14 @@ |
||||
.parent { |
||||
width: 300px; |
||||
height: 600px; |
||||
overflow: hidden; |
||||
} |
||||
|
||||
.child { |
||||
width: 100%; |
||||
height: 100%; |
||||
overflow-y: scroll; |
||||
padding-right: 17px; /* Increase/decrease this value for cross-browser compatibility */ |
||||
padding-left: 5px; |
||||
box-sizing: content-box; /* So the width will be 100% + 17px */ |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,4 @@ |
||||
export interface Link { |
||||
name: string; |
||||
url: string; |
||||
} |
Loading…
Reference in new issue