TrainingTextBox.js
| 1 | /** @jsx jsx */ |
| 2 | import { css, jsx } from '@emotion/react'; |
| 3 | import { ScCard } from '@surecart/components-react'; |
| 4 | |
| 5 | export default ( { title, description, urlText } ) => { |
| 6 | return ( |
| 7 | <ScCard |
| 8 | css={ css` |
| 9 | margin-top: 1.5em; |
| 10 | ` } |
| 11 | > |
| 12 | <div |
| 13 | css={ css` |
| 14 | padding: var( --sc-spacing-large ); |
| 15 | ` } |
| 16 | > |
| 17 | <h3 |
| 18 | css={ css` |
| 19 | color: #0f172a; |
| 20 | font-size: 18px; |
| 21 | font-weight: 600; |
| 22 | line-height: 28px; |
| 23 | margin: 0; |
| 24 | margin-bottom: 8px; |
| 25 | ` } |
| 26 | > |
| 27 | { title } |
| 28 | </h3> |
| 29 | <article |
| 30 | css={ css` |
| 31 | color: 364748B; |
| 32 | ` } |
| 33 | > |
| 34 | { description } |
| 35 | </article> |
| 36 | <article |
| 37 | css={ css` |
| 38 | color: #125d9f; |
| 39 | margin-top: 15px; |
| 40 | display: flex; |
| 41 | |
| 42 | ` } |
| 43 | > |
| 44 | { urlText } |
| 45 | <span> |
| 46 | <svg |
| 47 | xmlns="http://www.w3.org/2000/svg" |
| 48 | width="16" |
| 49 | height="16" |
| 50 | viewBox="0 0 16 16" |
| 51 | fill="none" |
| 52 | > |
| 53 | <path |
| 54 | d="M6.66406 3.9974H3.9974C3.26102 3.9974 2.66406 4.59435 2.66406 5.33073V11.9974C2.66406 12.7338 3.26102 13.3307 3.9974 13.3307H10.6641C11.4004 13.3307 11.9974 12.7338 11.9974 11.9974V9.33073M9.33073 2.66406H13.3307M13.3307 2.66406V6.66406M13.3307 2.66406L6.66406 9.33073" |
| 55 | stroke="#125D9F" |
| 56 | strokeWidth="1.2" |
| 57 | strokeLinecap="round" |
| 58 | strokeLinejoin="round" |
| 59 | /> |
| 60 | </svg> |
| 61 | </span> |
| 62 | </article> |
| 63 | </div> |
| 64 | </ScCard> |
| 65 | ); |
| 66 | }; |
| 67 |