Skip to content

Commit

Permalink
Merge d0d5ad8 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
agora-gov-bot authored Oct 31, 2024
2 parents 653ff5b + d0d5ad8 commit 30d505a
Show file tree
Hide file tree
Showing 95 changed files with 1,574 additions and 544 deletions.
2 changes: 1 addition & 1 deletion app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
node_modules
.next/
out/
.DS_Store
*.DS_Store
*.pem
npm-debug.log*
yarn-debug.log*
Expand Down
132 changes: 17 additions & 115 deletions app/app/opengraph/[...slug]/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,44 +7,6 @@ import { readFile } from 'node:fs/promises';
import { getProfilePicture } from '@/utils/contributorHelper';
import { navigation } from '#/config/navigation';

// Route segment config
// export const runtime = 'nodejs';
// export const runtime = 'edge';
// export const dynamic = 'error';
// eslint-disable-next-line unicorn/prevent-abbreviations
// export const dynamicParams = false;
// export const revalidate = false;

// eslint-disable-next-line unicorn/prevent-abbreviations
// export async function generateStaticParams() {
// const pages = ['a/b'];

// return pages.map((slug) => ({
// slug: slug.split('/'),
// }));
// }

// export async function generateImageMetadata({
// params,
// }: {
// params: { slug: string };
// }) {
// // const images = await getOGImages(params.id);
// const images = [{ text: 'Other text' }, { text: 'O:' + params.slug }];

// return images.map((image, index) => ({
// id: index,
// size: { width: 1600, height: 840 },
// alt: image.text,
// contentType: 'image/png',
// }));
// }

// Font
// const interSemiBold = fetch(
// new URL('public/Inter-SemiBold.ttf', import.meta.url)
// ).then((response) => response.arrayBuffer());

// eslint-disable-next-line unicorn/prevent-abbreviations
export async function generateStaticParams() {
if (process.env.NODE_ENV !== 'production') return [];
Expand Down Expand Up @@ -148,89 +110,29 @@ export async function GET(request: NextRequest) {
}}
>
<svg
width="227"
width="228"
height="100"
viewBox="0 0 227 100"
viewBox="0 0 228 100"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M12.6045 23.5283C13.54 21.7914 14.8903 20.3107 16.536 19.2168L44.156 0L15.856 46.6253C15.856 46.6253 13.3833 42.4619 12.4189 40.3552C11.2172 37.7064 10.6112 34.8281 10.6432 31.9213C10.6752 29.0147 11.3446 26.1501 12.6045 23.5283ZM1.20533 55.6918C1.51718 60.1506 2.78154 64.4915 4.91376 68.4238C7.04599 72.3564 9.99684 75.7893 13.5688 78.4933L44.1188 99.718C44.1188 99.718 25.0049 72.2726 8.88303 44.9625C7.25084 42.0771 6.15358 38.9226 5.6438 35.6497C5.41812 34.1677 5.41812 32.6601 5.6438 31.178C5.22343 31.9543 4.40745 33.5433 4.40745 33.5433C2.77276 36.8649 1.65945 40.4171 1.10642 44.0756C0.788106 47.9427 0.82121 51.8305 1.20533 55.6918ZM79.095 59.3872C78.1057 57.2808 75.6578 53.1171 75.6578 53.1171L47.4075 99.718L75.0273 80.5134C76.6731 79.4195 78.0234 77.939 78.959 76.2021C80.2188 73.5802 80.888 70.7156 80.9203 67.8092C80.9523 64.9024 80.3462 62.0238 79.1444 59.375L79.095 59.3872ZM90.3084 44.0384C89.9965 39.5799 88.7322 35.2387 86.6002 31.3064C84.4679 27.3741 81.517 23.9409 77.945 21.237L47.4444 0C47.4444 0 66.5459 27.4455 82.6804 54.7555C84.3081 57.6418 85.4011 60.7963 85.9072 64.0683C86.1328 65.5503 86.1328 67.0579 85.9072 68.5399C86.3276 67.7637 87.1435 66.1747 87.1435 66.1747C88.7783 62.853 89.8917 59.3009 90.4444 55.6424C90.767 51.7756 90.738 47.8878 90.3581 44.0262L90.3084 44.0384Z"
fill="url(#paint0_linear_1655_5073)"
/>
<path
d="M140.968 70.7317V62.7256H122.122V52.6256H139.182V45.0506H122.122V35.0738H140.968V27.0677H113.624V70.7317H140.968Z"
fill="url(#paint1_linear_1655_5073)"
/>
<path
d="M186.547 70.7317V27.0677H178.048V55.9512L159.881 27.0677H149.288V70.7317H157.787V39.7543L177.617 70.7317H186.547Z"
fill="url(#paint2_linear_1655_5073)"
/>
<path
d="M226.238 37.4756C225.252 32.5488 221.188 26.1439 210.595 26.1439C202.343 26.1439 195.384 32.0561 195.384 39.8158C195.384 46.4055 199.879 50.9012 206.838 52.3177L212.935 53.5494C216.323 54.2268 218.232 56.1976 218.232 58.7226C218.232 61.8018 215.707 64.0805 211.149 64.0805C204.991 64.0805 201.973 60.2006 201.604 55.8896L193.721 57.9835C194.398 64.2037 199.51 71.6555 211.088 71.6555C221.249 71.6555 226.854 64.8811 226.854 58.1683C226.854 52.0098 222.604 46.8366 214.66 45.2969L208.563 44.1268C205.36 43.511 203.821 41.6018 203.821 39.2C203.821 36.3055 206.531 33.6573 210.657 33.6573C216.199 33.6573 218.17 37.414 218.601 39.8158L226.238 37.4756Z"
fill="url(#paint3_linear_1655_5073)"
/>
<g clip-path="url(#clip0_1593_5439)">
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M33.5223 15.077C33.1353 14.8069 32.6585 15.2675 32.9178 15.6608C37.2488 22.2296 51.6458 44.0856 53.6345 47.3665C53.9316 47.8566 54.2722 48.3959 54.6374 48.9741L54.6376 48.9743C56.6838 52.214 59.503 56.6776 59.7761 60.5819C59.8082 61.0412 60.4452 61.1344 60.6054 60.7025C60.8639 60.0058 61.139 59.1743 61.3954 58.2244C64.6324 46.2338 59.9313 33.51 49.7215 26.3838L33.5223 15.077ZM30.8586 15.647L11.4686 47.4617C11.3165 47.7112 10.9632 47.739 10.7746 47.5157C9.06758 45.4946 2.70804 36.8961 10.5773 29.0591C17.7581 21.9078 26.9043 16.809 30.294 15.0468C30.6786 14.8469 31.0837 15.2777 30.8586 15.647ZM29.7749 84.9234C30.1618 85.1935 30.6387 84.7328 30.3793 84.3395C26.0483 77.7707 11.6514 55.9147 9.6626 52.6338C9.36548 52.1437 9.02485 51.6044 8.65958 51.026C6.61335 47.7863 3.79411 43.3228 3.52101 39.4185C3.48889 38.9591 2.85192 38.8659 2.69168 39.2978C2.43327 39.9945 2.15815 40.826 1.90173 41.7759C-1.33524 53.7666 3.36584 66.4903 13.5756 73.6165L29.7749 84.9234ZM51.8301 52.5352L32.4401 84.35C32.215 84.7193 32.6201 85.1501 33.0047 84.9502C36.3944 83.1879 45.5407 78.0892 52.7214 70.9379C60.5906 63.1009 54.2311 54.5024 52.5241 52.4813C52.3355 52.258 51.9822 52.2858 51.8301 52.5352ZM120.059 30.0646C124.965 35.0469 127.436 42.6194 127.644 52.2092C127.652 52.5617 127.372 52.8539 127.019 52.8651L91.3473 53.9912C90.9863 54.0026 90.7034 54.3081 90.7281 54.668C91.2814 62.6987 95.4356 66.6848 102.812 66.452C109.036 66.2554 112.178 63.4409 113.155 58.5204C113.22 58.1945 113.511 57.9582 113.843 57.9769L126.267 58.6776C126.667 58.7001 126.951 59.0788 126.853 59.4668C124.091 70.3685 115.868 76.0354 103.128 76.4376C95.2505 76.6863 88.9092 74.3623 84.5367 70.3608C79.539 65.7732 76.9045 59.1926 76.6364 50.7199C76.381 42.6507 78.3857 35.7218 83.1843 30.8249C87.4906 26.3474 93.4767 23.8362 101.354 23.5875C109.332 23.3356 115.674 25.6596 120.059 30.0646ZM101.664 33.3714C97.5231 33.5021 94.6326 34.805 92.7936 37.3872C91.5579 39.0819 90.8383 41.1792 90.5561 43.6054C90.5115 43.9888 90.8238 44.3151 91.2101 44.3029L112.293 43.6373C112.676 43.6252 112.966 43.2859 112.906 42.9082C112.463 40.1042 111.57 37.7582 109.836 36.0414C107.853 34.0847 105.299 33.2566 101.664 33.3714ZM181.603 60.6285C182.912 71.7844 192.771 76.4548 204.577 76.4548C216.399 76.4548 227.11 72.62 227.11 60.5101C227.11 48.5948 216.068 46.1176 207.112 44.1082L206.901 44.0609C200.131 42.5472 196.494 41.3362 196.494 37.9051C196.494 34.3731 199.929 32.8593 204.072 32.8593C208.902 32.8593 212.162 35.1654 212.704 40.3067C212.745 40.6918 213.097 40.9763 213.479 40.9112L225.191 38.9164C225.531 38.8586 225.766 38.5412 225.717 38.2008C224.141 27.176 214.785 23.5751 203.87 23.5751C192.957 23.5751 183.156 27.9145 183.156 39.0152C183.156 49.4095 192.048 52.4369 201.748 54.758C209.73 56.6754 213.57 57.8863 213.57 61.2165C213.57 64.9504 210.64 67.0696 204.88 67.0696C199.449 67.0696 195.507 64.5589 195.021 59.002C194.988 58.6217 194.651 58.3318 194.271 58.3802L182.157 59.9267C181.812 59.9708 181.563 60.2833 181.603 60.6285ZM178.238 44.4256C178.238 37.8661 177.733 32.4167 173.691 28.3801C170.458 25.1508 166.719 23.6371 160.253 23.6371C154.151 23.6371 148.747 25.7272 145.905 31.1212C145.76 31.3957 145.298 31.2976 145.298 30.9874V25.4958C145.298 25.1381 145.008 24.8481 144.65 24.8481H131.902C131.544 24.8481 131.253 25.1381 131.253 25.4958V75.3664C131.253 75.7241 131.544 76.0141 131.902 76.0141H144.751C145.109 76.0141 145.399 75.7241 145.399 75.3664V47.7558C145.399 37.3616 150.451 34.435 154.796 34.435C157.828 34.435 159.545 34.7378 161.364 36.4533C163.587 38.5725 163.991 40.9945 163.991 45.6366V75.3664C163.991 75.7241 164.281 76.0141 164.64 76.0141H177.59C177.948 76.0141 178.238 75.7241 178.238 75.3664V44.4256Z"
fill="#0080BC"
/>
</g>
<defs>
<linearGradient
id="paint0_linear_1655_5073"
x1="151.401"
y1="111.536"
x2="98.1697"
y2="-100.776"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="#44BCF0" />
<stop
offset="0.378795"
stop-color="#7298F8"
/>
<stop offset="1" stop-color="#A099FF" />
</linearGradient>
<linearGradient
id="paint1_linear_1655_5073"
x1="151.401"
y1="111.536"
x2="98.1697"
y2="-100.776"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="#44BCF0" />
<stop
offset="0.378795"
stop-color="#7298F8"
/>
<stop offset="1" stop-color="#A099FF" />
</linearGradient>
<linearGradient
id="paint2_linear_1655_5073"
x1="151.401"
y1="111.536"
x2="98.1697"
y2="-100.776"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="#44BCF0" />
<stop
offset="0.378795"
stop-color="#7298F8"
/>
<stop offset="1" stop-color="#A099FF" />
</linearGradient>
<linearGradient
id="paint3_linear_1655_5073"
x1="151.401"
y1="111.536"
x2="98.1697"
y2="-100.776"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="#44BCF0" />
<stop
offset="0.378795"
stop-color="#7298F8"
<clipPath id="clip0_1593_5439">
<rect
width="226.22"
height="100"
fill="white"
transform="translate(0.890137)"
/>
<stop offset="1" stop-color="#A099FF" />
</linearGradient>
</clipPath>
</defs>
</svg>
</div>
Expand Down
Loading

0 comments on commit 30d505a

Please sign in to comment.