Skip to content

Commit

Permalink
feat(submissions): add timeline view
Browse files Browse the repository at this point in the history
  • Loading branch information
naimulcsx committed Nov 21, 2024
1 parent fc6b065 commit 4e48604
Show file tree
Hide file tree
Showing 34 changed files with 1,223 additions and 24 deletions.
File renamed without changes.
29 changes: 29 additions & 0 deletions apps/web/app/assets/oj-icons/atcoder-icon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { SVGProps } from 'react';

export function AtCoderIcon(props: SVGProps<SVGSVGElement>) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="100%"
height="100%"
fill="none"
viewBox="0 0 400 400"
{...props}
>
<g clipPath="url(#clip0_1200_2)">
<path fill="#fff" d="M0 0h400v400H0V0z"></path>
<path
fill="#000"
fillRule="evenodd"
d="M244.687 21.644c-.466.468-16.569 6.257-25.418 9.14-2.86.931-5.981 2.028-6.935 2.437-10.207 4.384-12.609 4.144-14.002-1.402-.759-3.028-3.771-.843-8.667 6.285-5.126 7.466-7.126 29.307-3.433 37.497 1.643 3.646 3.13 4.146 3.13 1.058 0-.91.576-2.934 1.28-4.5.705-1.566 1.903-5.088 2.662-7.827 1.608-5.806 7.683-13.092 13.09-15.704a537.067 537.067 0 004.737-2.317c5.752-2.895 22.425-3.138 27.904-.405 1.434.715 3.04 1.3 3.569 1.3.529 0 2.989 1.366 5.468 3.034 4.523 3.047 7.637 3.715 10.435 2.241 2.813-1.48 11.519-5.275 12.15-5.294 2.639-.08 4.778-3.349 3.777-5.77-3.71-8.955-25.848-23.672-29.747-19.773zM216.495 49.03c-1.525.442-3.012 1.188-3.303 1.656-.29.47-1.257.854-2.147.854-.891 0-2.33.9-3.199 1.996-.869 1.1-2.271 2.26-3.117 2.58-.845.324-1.781 1.277-2.082 2.123-.299.845-1.008 2.121-1.572 2.837-.563.715-1.562 2.665-2.219 4.334-.656 1.67-1.903 3.801-2.767 4.74-1.613 1.75-3.934 8.482-5.837 16.932-.589 2.623-1.616 6.05-2.282 7.616-.665 1.565-1.209 3.437-1.209 4.16 0 .72-1.417 3.527-3.149 6.234l-3.151 4.924.537 11.289c.295 6.209.919 14.41 1.387 18.224 4.473 36.427 1.376 42.758-32.738 66.953-2.533 1.796-5.138 3.753-5.789 4.349-.652.596-1.532 1.084-1.957 1.084-3.279 0-10.439 11.081-12.375 19.154-2.234 9.312-12.572 17.398-19.789 15.476-9.665-2.577-18.826-2.213-24.639.975-1.138.624-1.668.501-2.043-.477-.958-2.494-2.055-1.315-2.055 2.207 0 3.108.202 3.461 1.701 2.986 6.842-2.171 7.922 6.441 2.9 23.116-.386 1.276-1.578 3.329-2.65 4.558-4.93 5.652.775 9.132 6.365 3.881 4.122-3.871 4.997-1.981 4.462 9.633-.525 11.391-.1 12.284 3.806 7.998 3.12-3.427 5.088-6.829 5.088-8.804 0-2.538 1.5-3.006 2.664-.83 1.692 3.162.492 11.84-2.551 18.411-4.23 9.139-3.064 12.62 2.913 8.703 7.078-4.637 3.862 6.461-5.763 19.898-5.934 8.285-6.14 9.217-2.022 9.217 6.454 0 14.016-5.455 23.824-17.186 3.39-4.055 4.003-4.317 4.732-2.02.704 2.219-1.567 16.809-3.908 25.112-2.384 8.45 1.625 6.358 7.165-3.739 5.797-10.563 7.529-39.001 2.939-48.203-1.71-3.427-1.762-5.111-.163-5.111 1.415 0 5.16 4.218 7.132 8.032 1.039 2.007 1.531 2.341 2.1 1.422 1.446-2.339-1.462-9.98-8.707-22.891-6.879-12.255-7.508-14.418-3.453-11.887 7.462 4.66 5.503-3.394-3.17-13.038-3.667-4.079-3.659-5.29.065-9.013 3.463-3.464 3.471-3.457 9.418 4.666 3.429 4.685 10.793 11.447 18.476 16.969 7.189 5.165 8.992 8.132 8.992 14.796 0 3.101-.347 5.856-.772 6.118-.422.262-1.034 1.528-1.356 2.815-.323 1.285-1.283 3.338-2.135 4.56-5.232 7.512-5.516 14.663-.722 18.324 2.027 1.545 9.829 8.888 17.338 16.317l13.654 13.504v4.406c0 4.369.036 4.425 3.963 6.389 4.812 2.401 5.525 3.886 2.894 6.018-3.997 3.236 1.87 13.264 8.487 14.504 5.158.968 5.641-2.189 3.032-19.783l-1.507-10.158-17.97-18.103c-18.994-19.132-19.449-19.821-15.726-23.835 2.49-2.687 3.799-2.668 5.18.076 1.989 3.953 8.699 8.714 21.382 15.171 17.767 9.046 24.409 14.379 24.769 19.882.221 3.415.709 4.356 3.266 6.309 2.935 2.236 3.002 2.425 2.774 7.806-.409 9.661 8.916 17.908 14.035 12.414 2.59-2.778 2.189-6.138-1.699-14.243-2.414-5.035-3.468-8.383-3.468-11.023 0-5.296-2.73-8.95-9.132-12.214-9.159-4.671-30.775-22.505-32.017-26.417-.286-.901.061-5.68.774-10.619 1.157-8.034 1.664-14.783 1.443-19.163-.043-.834-.639-1.517-1.326-1.517-2.642 0-2.25-2.074 2.544-13.437 2.512-5.953 4.679-15.298 5.975-25.757.572-4.629 1.221-8.543 1.437-8.695.217-.154 3.515-1.79 7.33-3.639 6.781-3.288 21.239-16.046 21.239-18.744 0-.538.877-2.187 1.95-3.663 1.073-1.478 3.325-5.225 5.002-8.326 2.553-4.723 3.754-5.999 7.369-7.826 2.375-1.203 4.512-2.412 4.75-2.69.239-.277 1.799-1.337 3.468-2.353 1.669-1.015 3.814-2.564 4.768-3.44 11.649-10.706 15.355-11.783 22.095-6.421l2.156 1.716-1.94 2.063c-1.066 1.136-1.939 2.503-1.939 3.041 0 1.389-1.004 1.853-6.131 2.826-5.902 1.118-6.888 2.042-6.805 6.378.247 13.142 9.878 20.153 13.402 9.755 1.404-4.146 5.877-8.884 9.681-10.26 1.571-.568 2.856-1.346 2.856-1.725 0-1.892 3.619-.314 5.873 2.557 5.221 6.654 5.308 11.628.284 16.174-1.304 1.182-1.822 2.692-1.822 5.315 0 3.166-.41 3.974-3.035 5.977-3.636 2.772-3.764 4.414-.804 10.335 5.785 11.573 12.508 12.295 12.508 1.346 0-4.802 1.404-9.395 5.63-18.421 2.967-6.337 1.842-13.877-2.781-18.621-.613-.629-1.116-1.433-1.116-1.786s-.7-1.398-1.556-2.323c-7.431-8.03-9.306-11.955-7.139-14.935 1.875-2.574.969-35.622-1.042-38.108-1.06-1.309-5.763-1.342-11.068-.08-2.146.511-10.862 1.176-19.373 1.48l-15.47.55-1.907 2.395-1.907 2.393-11.664-12.256c-14.133-14.852-15.567-17.201-15.55-25.46.02-9.227 2.958-13.136 7.076-9.41 3.006 2.72 3.892 5.125 6.415 17.415.496 2.427 1.491 2.453 4.651.117 2.401-1.775 2.562-1.786 5.056-.312 5.214 3.082 10.34-1.198 7.187-6.003-2.142-3.266-3.715-12.782-3.377-20.428l.286-6.474 6.068-3.212c3.338-1.766 7.226-3.49 8.641-3.825 1.415-.336 3.171-.906 3.901-1.266 1.292-.637 2.094-.98 8.914-3.834a422.97 422.97 0 006.198-2.659c1.624-.715 3.531-1.3 4.244-1.3 1.278 0 2.769-2.464 1.974-3.262-.377-.377-5.149.332-16.534 2.454-23.115 4.31-25.417 4.321-28.778.138-5.668-7.054-20.858-10.9-31.211-7.908zm79.1 103.503c-.754 10.992-2.373 11.822-9.642 4.947-.993-.938-3.398-2.711-5.347-3.94-5.227-3.3-5.682-6.642-.906-6.642.937 0 4.693-1.964 8.346-4.361l6.643-4.362.722 3.279c.394 1.801.479 6.788.184 11.079z"
clipRule="evenodd"
></path>
</g>
<defs>
<clipPath id="clip0_1200_2">
<rect width="400" height="400" fill="#fff" rx="200"></rect>
</clipPath>
</defs>
</svg>
);
}
47 changes: 47 additions & 0 deletions apps/web/app/assets/oj-icons/beecrowd-icon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import { SVGProps } from 'react';

export function BeeCrowdIcon(props: SVGProps<SVGSVGElement>) {
return (
<svg
id="svg"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
width="100%"
height="100%"
viewBox="0, 0, 400,366.9270833333333"
{...props}
>
<g id="svgg">
<path
id="path0"
d="M82.176 158.877 C 65.466 187.822,51.829 211.649,51.873 211.827 C 51.917 212.005,65.601 235.784,82.282 264.669 L 112.610 317.188 144.992 317.188 C 162.803 317.188,177.325 317.100,177.264 316.992 C 177.203 316.885,164.345 294.605,148.690 267.481 C 133.035 240.357,119.948 217.476,119.608 216.635 C 118.449 213.765,118.408 209.621,119.511 206.823 C 119.875 205.898,173.844 112.068,176.871 107.096 L 177.386 106.250 162.579 106.250 L 147.772 106.250 116.451 158.326 C 87.719 206.099,85.157 210.452,85.445 210.996 C 85.617 211.322,89.706 218.444,94.530 226.823 C 110.484 254.531,126.477 282.445,127.316 284.049 C 127.616 284.623,127.592 284.635,126.208 284.635 L 124.793 284.635 122.062 280.013 C 118.967 274.776,113.733 265.748,97.871 238.281 C 80.310 207.875,81.893 210.740,82.201 209.925 C 82.349 209.534,96.375 186.096,113.370 157.841 C 130.365 129.585,144.271 106.418,144.271 106.359 C 144.271 106.299,137.136 106.250,128.415 106.250 L 112.559 106.250 82.176 158.877 M178.255 160.083 C 161.927 188.391,148.606 211.678,148.653 211.831 C 148.790 212.280,207.604 314.162,207.918 314.495 C 208.128 314.719,215.989 301.305,237.955 263.236 L 267.707 211.675 237.955 160.136 C 221.592 131.790,208.145 108.601,208.073 108.605 C 208.001 108.609,194.583 131.774,178.255 160.083 "
stroke="none"
fill="#fbeb14"
fillRule="evenodd"
/>
<path
id="path1"
d="M110.348 19.799 C 105.124 21.114,101.462 25.942,101.464 31.510 C 101.464 34.463,101.374 34.239,107.602 46.703 C 111.194 53.894,112.965 57.702,112.808 57.901 C 109.005 62.741,97.583 78.467,96.961 79.719 C 96.490 80.667,95.813 81.635,95.456 81.868 C 95.099 82.102,94.348 82.908,93.786 83.660 C 92.896 84.851,24.684 202.765,23.212 205.659 C 21.775 208.482,21.506 213.119,22.601 216.199 C 23.068 217.513,91.416 336.271,93.252 338.958 C 94.975 341.480,98.012 343.598,101.076 344.413 C 103.307 345.007,312.878 344.976,315.197 344.382 C 319.061 343.391,321.739 341.112,324.440 336.512 C 335.060 318.431,373.411 251.613,373.796 250.521 C 378.206 238.012,363.850 227.090,352.800 234.546 C 350.118 236.356,350.560 235.637,326.302 277.682 L 303.516 317.176 271.261 317.182 C 243.011 317.187,239.025 317.140,239.153 316.805 C 239.234 316.595,252.043 294.359,267.618 267.391 C 300.250 210.888,298.188 214.879,297.420 209.700 C 296.986 206.767,298.028 208.645,267.348 155.506 C 251.791 128.560,239.063 106.454,239.063 106.382 C 239.063 106.309,253.568 106.250,271.297 106.250 L 303.532 106.250 324.357 142.381 C 347.391 182.345,346.465 180.896,350.197 182.780 C 360.971 188.219,372.933 178.921,370.180 167.248 C 369.654 165.017,371.136 167.657,345.769 123.738 C 319.816 78.805,321.377 81.144,316.042 79.192 L 314.193 78.516 250.056 78.385 L 185.920 78.255 190.765 71.763 C 197.534 62.693,198.279 60.792,196.997 55.869 C 196.359 53.422,181.941 24.985,180.558 23.447 C 173.172 15.232,159.635 20.485,159.635 31.566 C 159.635 34.453,159.946 35.217,165.867 46.901 C 168.742 52.573,171.094 57.344,171.094 57.502 C 171.094 57.661,167.832 62.161,163.845 67.503 C 159.858 72.844,156.431 77.477,156.230 77.799 L 155.864 78.385 141.864 78.385 C 134.165 78.385,127.865 78.314,127.865 78.227 C 127.865 78.140,130.031 75.170,132.678 71.627 C 141.608 59.676,141.674 61.029,131.152 39.955 C 122.457 22.539,122.490 22.591,118.629 20.682 C 116.486 19.623,112.664 19.215,110.348 19.799 M144.531 106.142 C 144.531 106.226,130.562 129.517,113.489 157.900 C 96.415 186.283,82.399 209.824,82.341 210.214 C 82.236 210.914,82.390 211.197,90.376 224.982 L 91.819 227.474 93.335 227.553 L 94.851 227.632 94.324 226.772 C 94.035 226.299,91.809 222.429,89.378 218.172 L 84.958 210.433 116.366 158.211 L 147.774 105.990 162.559 105.990 C 170.924 105.990,177.344 106.089,177.344 106.219 C 177.344 106.346,164.439 128.803,148.666 156.125 C 117.129 210.753,118.892 207.458,118.907 211.719 C 118.922 215.948,117.113 212.575,148.628 267.153 C 164.311 294.314,177.201 316.683,177.271 316.863 C 177.374 317.124,170.870 317.176,144.898 317.123 L 112.395 317.057 81.974 264.366 L 51.553 211.675 82.062 158.833 L 112.570 105.990 128.551 105.990 C 137.340 105.990,144.531 106.058,144.531 106.142 M238.212 160.387 C 257.471 193.747,267.681 211.675,267.576 211.949 C 267.265 212.763,208.258 314.844,208.098 314.844 C 208.010 314.844,194.539 291.639,178.164 263.278 L 148.392 211.712 149.234 210.218 C 150.832 207.386,207.340 109.504,207.738 108.879 C 208.120 108.281,208.150 108.275,208.412 108.749 C 208.563 109.022,221.973 132.259,238.212 160.387 M362.478 191.525 C 350.574 194.556,346.552 209.073,355.209 217.764 C 365.018 227.612,381.771 220.679,381.771 206.771 C 381.771 196.656,372.160 189.061,362.478 191.525 "
stroke="none"
fill="#5c247a"
fillRule="evenodd"
/>
<path
id="path2"
d="M118.945 106.184 C 121.416 106.227,125.459 106.227,127.930 106.184 C 130.400 106.142,128.379 106.107,123.438 106.107 C 118.496 106.107,116.475 106.142,118.945 106.184 M103.736 248.242 C 104.922 250.283,106.864 253.623,108.051 255.664 L 110.209 259.375 111.630 259.375 C 112.412 259.375,113.005 259.287,112.947 259.180 C 112.890 259.072,110.994 255.732,108.734 251.758 L 104.625 244.531 103.102 244.531 L 101.580 244.531 103.736 248.242 "
stroke="none"
fill="#987840"
fillRule="evenodd"
/>
<path
id="path3"
d="M135.366 106.184 C 137.129 106.229,139.942 106.229,141.616 106.184 C 143.291 106.139,141.849 106.102,138.411 106.102 C 134.974 106.102,133.604 106.139,135.366 106.184 M155.013 106.185 C 159.131 106.225,165.869 106.225,169.987 106.185 C 174.105 106.144,170.736 106.111,162.500 106.111 C 154.264 106.111,150.895 106.144,155.013 106.185 M92.024 227.995 C 92.208 228.281,94.452 232.119,97.011 236.523 L 101.665 244.531 103.068 244.531 C 103.839 244.531,104.431 244.433,104.384 244.312 C 104.336 244.191,102.188 240.393,99.609 235.872 L 94.922 227.651 93.306 227.562 C 91.744 227.477,91.702 227.491,92.024 227.995 "
stroke="none"
fill="#966857"
fillRule="evenodd"
/>
</g>
</svg>
);
}
Loading

0 comments on commit 4e48604

Please sign in to comment.