Skip to content

Commit

Permalink
Fix link to view errors in component card
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan0x committed Mar 18, 2024
1 parent aaa8d6d commit 7a42320
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/partials/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const Component = (props) => {
<h5 className="component-card-title">
<b>{errorCountTotal > 0 ? errorCountTotal : 'OK'}</b>
{errorCountTotal > 0 &&
<a href={`/${framework}/${selectedComponent.slug}/`} target="_blank" rel="noreferrer" aria-label="view errors"><svg aria-hidden={true} xmlns="http://www.w3.org/2000/svg" width="33" height="33" viewBox="0 0 24 24" fill="none" stroke="#fa2c2c" strokeWidth="2.5" strokeLinecap="square" strokeLinejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg></a>
<a href={`/${framework}/${selectedComponent.slug}/`} aria-label="view errors"><svg xmlns="http://www.w3.org/2000/svg" width="33" height="33" viewBox="0 0 24 24" fill="none" stroke="#fa2c2c" strokeWidth="2.5" strokeLinecap="square" strokeLinejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg></a>
}
</h5>

Expand Down
10 changes: 9 additions & 1 deletion src/partials/header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@ const Header = () => {
<header className="header py-3 py-lg-4">
<nav className="navbar navbar-expand-lg">
<div className="container bg-white p-4 px-5 rounded-4">
<a className="navbar-brand" href="/"><img height="50" width="251" src="./images/logo.png" alt="Logo"/></a>
<a className="navbar-brand" href="/" aria-label="Home"><svg alt="Logo" width="252" height="50" viewBox="0 0 137 28" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M95.3415 13.912V18.1H93.0015V9.57998H94.8255L98.2455 13.912V9.57998H100.586V18.1H98.7255L95.3415 13.912ZM108.12 16.06V18.1H102.048V9.57998H108.012V11.62H104.388V12.82H107.484V14.716H104.388V16.06H108.12ZM112.012 15.52V11.848H112.828V15.376C112.828 16.088 112.948 16.62 113.188 16.972C113.436 17.324 113.8 17.5 114.28 17.5C114.6 17.5 114.908 17.432 115.204 17.296C115.508 17.152 115.776 16.952 116.008 16.696C116.24 16.432 116.416 16.128 116.536 15.784V11.848H117.352V17.116C117.352 17.228 117.376 17.312 117.424 17.368C117.472 17.416 117.544 17.444 117.64 17.452V18.1C117.544 18.108 117.468 18.112 117.412 18.112C117.356 18.12 117.304 18.124 117.256 18.124C117.096 18.108 116.956 18.044 116.836 17.932C116.724 17.82 116.664 17.684 116.656 17.524L116.632 16.684C116.36 17.164 115.988 17.54 115.516 17.812C115.052 18.084 114.548 18.22 114.004 18.22C113.348 18.22 112.852 17.992 112.516 17.536C112.18 17.08 112.012 16.408 112.012 15.52ZM121.249 18.22C120.737 18.22 120.261 18.136 119.821 17.968C119.381 17.8 119.001 17.544 118.681 17.2L119.017 16.624C119.369 16.952 119.721 17.192 120.073 17.344C120.433 17.488 120.813 17.56 121.213 17.56C121.701 17.56 122.097 17.464 122.401 17.272C122.705 17.072 122.857 16.788 122.857 16.42C122.857 16.172 122.781 15.984 122.629 15.856C122.485 15.72 122.273 15.612 121.993 15.532C121.721 15.444 121.393 15.352 121.009 15.256C120.577 15.136 120.213 15.012 119.917 14.884C119.629 14.748 119.409 14.58 119.257 14.38C119.113 14.172 119.041 13.904 119.041 13.576C119.041 13.168 119.141 12.832 119.341 12.568C119.549 12.296 119.829 12.092 120.181 11.956C120.541 11.812 120.941 11.74 121.381 11.74C121.861 11.74 122.285 11.816 122.653 11.968C123.021 12.12 123.321 12.332 123.553 12.604L123.157 13.156C122.933 12.9 122.665 12.712 122.353 12.592C122.049 12.464 121.709 12.4 121.333 12.4C121.077 12.4 120.833 12.436 120.601 12.508C120.369 12.572 120.177 12.684 120.025 12.844C119.881 12.996 119.809 13.208 119.809 13.48C119.809 13.704 119.865 13.88 119.977 14.008C120.089 14.128 120.257 14.232 120.481 14.32C120.705 14.4 120.981 14.488 121.309 14.584C121.781 14.712 122.193 14.844 122.545 14.98C122.897 15.108 123.169 15.276 123.361 15.484C123.553 15.692 123.649 15.984 123.649 16.36C123.649 16.944 123.429 17.4 122.989 17.728C122.549 18.056 121.969 18.22 121.249 18.22ZM127.698 18.22C127.25 18.22 126.834 18.136 126.45 17.968C126.066 17.792 125.734 17.556 125.454 17.26C125.174 16.956 124.954 16.608 124.794 16.216C124.642 15.824 124.566 15.404 124.566 14.956C124.566 14.372 124.698 13.836 124.962 13.348C125.234 12.86 125.606 12.472 126.078 12.184C126.55 11.888 127.086 11.74 127.686 11.74C128.302 11.74 128.838 11.888 129.294 12.184C129.758 12.48 130.122 12.872 130.386 13.36C130.65 13.84 130.782 14.368 130.782 14.944C130.782 15.008 130.782 15.072 130.782 15.136C130.782 15.192 130.778 15.236 130.77 15.268H125.418C125.458 15.716 125.582 16.116 125.79 16.468C126.006 16.812 126.282 17.088 126.618 17.296C126.962 17.496 127.334 17.596 127.734 17.596C128.142 17.596 128.526 17.492 128.886 17.284C129.254 17.076 129.51 16.804 129.654 16.468L130.362 16.66C130.234 16.956 130.038 17.224 129.774 17.464C129.51 17.704 129.198 17.892 128.838 18.028C128.486 18.156 128.106 18.22 127.698 18.22ZM125.394 14.68H130.014C129.982 14.224 129.858 13.824 129.642 13.48C129.434 13.136 129.158 12.868 128.814 12.676C128.478 12.476 128.106 12.376 127.698 12.376C127.29 12.376 126.918 12.476 126.582 12.676C126.246 12.868 125.97 13.14 125.754 13.492C125.546 13.836 125.426 14.232 125.394 14.68ZM132.813 15.676C132.813 15.324 132.849 15.024 132.921 14.776C133.001 14.52 133.113 14.3 133.257 14.116C133.409 13.932 133.601 13.772 133.833 13.636C133.985 13.54 134.157 13.44 134.349 13.336C134.549 13.232 134.733 13.112 134.901 12.976C135.077 12.832 135.221 12.66 135.333 12.46C135.445 12.252 135.501 12.004 135.501 11.716C135.501 11.364 135.421 11.076 135.261 10.852C135.109 10.62 134.909 10.448 134.661 10.336C134.413 10.216 134.149 10.156 133.869 10.156C133.589 10.156 133.321 10.212 133.065 10.324C132.817 10.428 132.597 10.572 132.405 10.756C132.213 10.94 132.057 11.148 131.937 11.38L131.373 11.02C131.525 10.692 131.729 10.412 131.985 10.18C132.249 9.94798 132.545 9.77198 132.873 9.65197C133.201 9.53198 133.537 9.47198 133.881 9.47198C134.177 9.47198 134.465 9.51998 134.745 9.61598C135.025 9.70398 135.273 9.84398 135.489 10.036C135.713 10.228 135.889 10.468 136.017 10.756C136.153 11.036 136.221 11.372 136.221 11.764C136.221 12.084 136.177 12.356 136.089 12.58C136.001 12.796 135.877 12.984 135.717 13.144C135.565 13.296 135.393 13.432 135.201 13.552C135.009 13.672 134.809 13.788 134.601 13.9C134.417 14.004 134.241 14.12 134.073 14.248C133.905 14.376 133.769 14.552 133.665 14.776C133.561 14.992 133.509 15.292 133.509 15.676H132.813ZM132.825 18.1V16.816H133.533V18.1H132.825Z" fill="#9C27B0"/>
<circle cx="76.75" cy="13.75" r="13.75" fill="#9C27B0"/>
<circle cx="77" cy="14" r="14" fill="#9C27B0"/>
<path d="M68.5719 7.89369C67.9756 6.61818 69.7409 5.57203 70.1884 6.61819C70.6358 7.66435 70.4293 8.82239 71.3579 9.05456C73.2195 9.41404 75.3377 9.9664 75.3377 9.9664C75.3377 9.9664 75.6632 10.0937 76.239 10.0833C76.7227 10.0745 77.1404 9.9664 77.1404 9.9664C77.1404 9.9664 79.187 9.42575 81.1091 9.05456C81.7515 8.9305 81.8389 7.63634 82.3479 6.61819C82.857 5.60005 84.5916 6.61819 83.8752 8.14543C83.1587 9.67267 83.1781 11.2443 82.1649 11.4671C80.5334 11.8259 78.9431 12.1598 78.9431 12.1598C78.9431 12.1598 78.7059 16.1538 78.9431 16.9852C79.1802 17.8166 80.6886 21.6435 81.1964 23.1266C81.7043 24.6098 79.2517 25.5385 78.4924 24.004C77.7331 22.4695 76.239 18.3012 76.239 18.3012C76.239 18.3012 74.4363 22.688 73.9856 24.004C73.535 25.32 70.8309 24.8813 71.2816 23.1266C71.7323 21.3719 73.2101 17.8166 73.535 16.9852C73.8598 16.1538 73.535 12.1598 73.535 12.1598C73.535 12.1598 72.0609 11.8259 70.4293 11.4671C69.4161 11.2443 69.1683 9.1692 68.5719 7.89369Z" fill="#FAFAFA"/>
<path d="M79.1536 6.46148C79.1536 7.9484 77.9483 9.15379 76.4613 9.15379C74.9744 9.15379 73.769 7.9484 73.769 6.46148C73.769 4.97456 74.9744 3.76917 76.4613 3.76917C77.9483 3.76917 79.1536 4.97456 79.1536 6.46148Z" fill="#FAFAFA"/>
<path d="M0.714938 13.78C0.714938 13.26 0.802938 12.752 0.978938 12.256C1.16294 11.752 1.42694 11.296 1.77094 10.888C2.11494 10.472 2.53894 10.144 3.04294 9.90398C3.54694 9.65598 4.11894 9.53198 4.75894 9.53198C5.51894 9.53198 6.16694 9.70798 6.70294 10.06C7.24694 10.404 7.64694 10.848 7.90294 11.392L7.24294 11.8C7.05894 11.424 6.82694 11.128 6.54694 10.912C6.26694 10.688 5.96694 10.528 5.64694 10.432C5.33494 10.336 5.02294 10.288 4.71094 10.288C4.19894 10.288 3.74694 10.392 3.35494 10.6C2.96294 10.8 2.63094 11.072 2.35894 11.416C2.09494 11.752 1.89494 12.132 1.75894 12.556C1.62294 12.972 1.55494 13.396 1.55494 13.828C1.55494 14.3 1.63494 14.752 1.79494 15.184C1.95494 15.616 2.17894 16 2.46694 16.336C2.75494 16.664 3.09094 16.928 3.47494 17.128C3.86694 17.32 4.29094 17.416 4.74694 17.416C5.06694 17.416 5.39494 17.36 5.73094 17.248C6.06694 17.136 6.37894 16.964 6.66694 16.732C6.96294 16.5 7.19894 16.2 7.37494 15.832L8.07094 16.192C7.89494 16.616 7.62294 16.976 7.25494 17.272C6.88694 17.568 6.47494 17.792 6.01894 17.944C5.57094 18.096 5.13094 18.172 4.69894 18.172C4.11494 18.172 3.57894 18.048 3.09094 17.8C2.60294 17.544 2.17894 17.208 1.81894 16.792C1.46694 16.368 1.19494 15.896 1.00294 15.376C0.810938 14.848 0.714938 14.316 0.714938 13.78ZM8.8335 16.3C8.8335 15.908 8.9455 15.572 9.1695 15.292C9.3935 15.004 9.7015 14.784 10.0935 14.632C10.4935 14.472 10.9535 14.392 11.4735 14.392C11.7775 14.392 12.0935 14.416 12.4215 14.464C12.7495 14.512 13.0415 14.584 13.2975 14.68V14.152C13.2975 13.624 13.1415 13.204 12.8295 12.892C12.5175 12.58 12.0855 12.424 11.5335 12.424C11.1975 12.424 10.8655 12.488 10.5375 12.616C10.2175 12.736 9.8815 12.916 9.5295 13.156L9.2175 12.58C9.6255 12.3 10.0255 12.092 10.4175 11.956C10.8095 11.812 11.2095 11.74 11.6175 11.74C12.3855 11.74 12.9935 11.96 13.4415 12.4C13.8895 12.84 14.1135 13.448 14.1135 14.224V17.116C14.1135 17.228 14.1375 17.312 14.1855 17.368C14.2335 17.416 14.3095 17.444 14.4135 17.452V18.1C14.3255 18.108 14.2495 18.116 14.1855 18.124C14.1215 18.132 14.0735 18.132 14.0415 18.124C13.8415 18.116 13.6895 18.052 13.5855 17.932C13.4815 17.812 13.4255 17.684 13.4175 17.548L13.4055 17.092C13.1255 17.452 12.7615 17.732 12.3135 17.932C11.8655 18.124 11.4095 18.22 10.9455 18.22C10.5455 18.22 10.1815 18.136 9.8535 17.968C9.5335 17.792 9.2815 17.56 9.0975 17.272C8.9215 16.976 8.8335 16.652 8.8335 16.3ZM13.0215 16.78C13.1095 16.668 13.1775 16.56 13.2255 16.456C13.2735 16.352 13.2975 16.26 13.2975 16.18V15.268C13.0255 15.164 12.7415 15.084 12.4455 15.028C12.1575 14.972 11.8655 14.944 11.5695 14.944C10.9855 14.944 10.5135 15.06 10.1535 15.292C9.7935 15.524 9.6135 15.84 9.6135 16.24C9.6135 16.472 9.6735 16.692 9.7935 16.9C9.9135 17.1 10.0895 17.268 10.3215 17.404C10.5535 17.532 10.8255 17.596 11.1375 17.596C11.5295 17.596 11.8935 17.52 12.2295 17.368C12.5735 17.216 12.8375 17.02 13.0215 16.78ZM21.1326 18.1H20.3166V14.608C20.3166 13.872 20.2086 13.336 19.9926 13C19.7766 12.656 19.4366 12.484 18.9726 12.484C18.6526 12.484 18.3366 12.564 18.0246 12.724C17.7126 12.876 17.4366 13.088 17.1966 13.36C16.9646 13.624 16.7966 13.928 16.6926 14.272V18.1H15.8766V11.848H16.6206V13.264C16.7886 12.96 17.0086 12.696 17.2806 12.472C17.5526 12.24 17.8606 12.06 18.2046 11.932C18.5486 11.804 18.9046 11.74 19.2726 11.74C19.6166 11.74 19.9086 11.804 20.1486 11.932C20.3886 12.06 20.5806 12.244 20.7246 12.484C20.8686 12.716 20.9726 13 21.0366 13.336C21.1006 13.664 21.1326 14.032 21.1326 14.44V18.1ZM31.8353 16.06V18.1H25.7633V9.57998H31.7273V11.62H28.1033V12.82H31.1992V14.716H28.1033V16.06H31.8353ZM34.5674 9.57998L36.2354 15.4L37.8794 9.57998H40.3394L37.3994 18.1H35.0714L32.0954 9.57998H34.5674ZM47.0579 16.06V18.1H40.9859V9.57998H46.9499V11.62H43.3259V12.82H46.4219V14.716H43.3259V16.06H47.0579ZM48.1461 18.1V9.57998H52.0581C52.4741 9.57998 52.8581 9.66398 53.2101 9.83198C53.5621 9.99998 53.8661 10.228 54.1221 10.516C54.3781 10.796 54.5741 11.112 54.7101 11.464C54.8541 11.816 54.9261 12.172 54.9261 12.532C54.9261 12.86 54.8781 13.176 54.7821 13.48C54.6861 13.784 54.5461 14.064 54.3621 14.32C54.1781 14.568 53.9581 14.784 53.7021 14.968L55.5021 18.1H52.9341L51.4341 15.484H50.4861V18.1H48.1461ZM50.4861 13.444H51.9621C52.0581 13.444 52.1501 13.408 52.2381 13.336C52.3261 13.264 52.3981 13.16 52.4541 13.024C52.5181 12.888 52.5501 12.724 52.5501 12.532C52.5501 12.332 52.5141 12.168 52.4421 12.04C52.3781 11.904 52.2941 11.8 52.1901 11.728C52.0941 11.656 51.9981 11.62 51.9021 11.62H50.4861V13.444ZM57.4678 9.57998L58.9918 13.06L60.5518 9.57998H63.0958L60.1558 15.28V18.1H57.8278V15.256L54.9358 9.57998H57.4678Z" fill="#9C27B0"/>
</svg>
</a>
<button className="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mainNavBar" aria-controls="mainNavBar" aria-expanded="false" aria-label="Toggle navigation">
<span className="navbar-toggler-icon"></span>
</button>
Expand Down

0 comments on commit 7a42320

Please sign in to comment.