Skip to content

Commit

Permalink
Merge pull request #72 from ai-surfers/develop
Browse files Browse the repository at this point in the history
24.12.18
  • Loading branch information
hailey-hy authored Dec 18, 2024
2 parents 1832997 + ed66e88 commit f119976
Show file tree
Hide file tree
Showing 66 changed files with 16,649 additions and 3,406 deletions.
11,662 changes: 11,662 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"react-dom": "^18.3.1",
"react-gtm-module": "^2.0.11",
"react-hook-form": "^7.53.1",
"react-markdown": "^9.0.1",
"react-responsive": "^10.0.0",
"react-router-dom": "^6.26.0",
"react-slick": "^0.30.2",
Expand Down
2 changes: 1 addition & 1 deletion src/apis/prompt/prompt.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type PromptDetails = {
is_starred_by_user: boolean;
};

type PaginationInfo = {
export type PaginationInfo = {
total_pages: number;
total_count: number;
current_page: number;
Expand Down
194 changes: 194 additions & 0 deletions src/assets/svg/ImgEmptyColor.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
import { SVGProps } from "react";

const SvgImgEmptyColor = (props: SVGProps<SVGSVGElement>) => (
<svg
width="148"
height="148"
viewBox="0 0 148 148"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<circle
cx="74"
cy="74"
r="71.3996"
fill="#F2F3FD"
stroke="white"
stroke-width="5.2009"
/>
<mask
id="mask0_4242_54290"
style={{ maskType: "alpha" }}
maskUnits="userSpaceOnUse"
x="4"
y="4"
width="140"
height="140"
>
<circle cx="73.5976" cy="73.5976" r="69.5761" fill="#F2F3FD" />
</mask>
<g mask="url(#mask0_4242_54290)">
<path
d="M15.1094 75.9336C15.1094 68.2016 21.3774 61.9336 29.1094 61.9336H118.241C125.973 61.9336 132.241 68.2016 132.241 75.9336V127.244C132.241 133.228 127.39 138.079 121.406 138.079H25.9446C19.9605 138.079 15.1094 133.228 15.1094 127.244V75.9336Z"
fill="#7580EA"
/>
<path
d="M50.1532 34.8147C51.1084 30.5009 55.3937 27.7127 59.7246 28.5871L119.614 40.6784C123.837 41.5309 126.505 45.6316 125.574 49.8376L118.602 81.3231L43.2244 66.105L50.1532 34.8147Z"
fill="#D6D9F9"
/>
<mask
id="mask1_4242_54290"
style={{ maskType: "alpha" }}
maskUnits="userSpaceOnUse"
x="15"
y="64"
width="118"
height="75"
>
<path
d="M15.1113 67.6882C15.1113 66.0126 16.4696 64.6543 18.1452 64.6543H129.209C130.885 64.6543 132.243 66.0126 132.243 67.6882V127.245C132.243 133.229 127.392 138.08 121.408 138.08H25.9466C19.9624 138.08 15.1113 133.229 15.1113 127.245V67.6882Z"
fill="#7580EA"
/>
</mask>
<g mask="url(#mask1_4242_54290)">
<path
d="M49.1257 36.4781C50.4392 30.5467 56.3314 26.7129 62.2864 27.9152L116.956 38.9526C122.802 40.133 126.497 45.8108 125.207 51.6344L114.65 99.3113L38.6115 83.9598L49.1257 36.4781Z"
fill="#D6D9F9"
/>
<path
d="M24.9355 51.4785H109.392V98.5872C109.392 104.11 104.915 108.587 99.3921 108.587H34.9355C29.4127 108.587 24.9355 104.11 24.9355 98.5872V51.4785Z"
fill="white"
/>
<g filter="url(#filter0_b_4242_54290)">
<path
d="M15.1094 138.568V72.4844L22.8516 79.0368C31.3481 86.2275 40.6718 92.3793 50.6252 97.3618L132.941 138.568H15.1094Z"
fill="url(#paint0_linear_4242_54290)"
fill-opacity="0.4"
/>
</g>
<g filter="url(#filter1_b_4242_54290)">
<path
d="M132.941 138.568V72.4844L124.479 79.6943C117.181 85.9121 109.165 91.2329 100.601 95.543L15.1102 138.568H132.941Z"
fill="url(#paint1_linear_4242_54290)"
fill-opacity="0.4"
/>
</g>
</g>
<g filter="url(#filter2_b_4242_54290)">
<path
d="M67.6467 94.3138C71.203 91.3015 76.4159 91.3015 79.9723 94.3138L123.002 130.762C129.778 136.501 125.719 147.572 116.839 147.572H30.7796C21.8996 147.572 17.8409 136.501 24.6168 130.762L67.6467 94.3138Z"
fill="#E7E9FF"
fill-opacity="0.62"
/>
</g>
<path
d="M24.9355 47.1953C24.9355 41.1202 29.8604 36.1953 35.9355 36.1953H98.5921C104.557 36.1953 109.392 41.0306 109.392 46.9953V65.1518H24.9355V47.1953Z"
fill="white"
/>
<path
d="M24.9355 47.1953C24.9355 41.1202 29.8604 36.1953 35.9355 36.1953H98.5921C104.557 36.1953 109.392 41.0306 109.392 46.9953V65.1518H24.9355V47.1953Z"
fill="white"
/>
<path
d="M67.9672 49.8691C68.3991 61.902 78.0539 71.5568 90.0868 71.9887C78.0539 72.4206 68.3991 82.0754 67.9672 94.1083C67.5353 82.0754 57.8805 72.4206 45.8477 71.9887C57.8805 71.5568 67.5353 61.902 67.9672 49.8691Z"
fill="#7580EA"
/>
</g>
<defs>
<filter
id="filter0_b_4242_54290"
x="-0.890625"
y="56.4844"
width="149.831"
height="98.084"
filterUnits="userSpaceOnUse"
color-interpolation-filters="sRGB"
>
<feFlood flood-opacity="0" result="BackgroundImageFix" />
<feGaussianBlur in="BackgroundImageFix" stdDeviation="8" />
<feComposite
in2="SourceAlpha"
operator="in"
result="effect1_backgroundBlur_4242_54290"
/>
<feBlend
mode="normal"
in="SourceGraphic"
in2="effect1_backgroundBlur_4242_54290"
result="shape"
/>
</filter>
<filter
id="filter1_b_4242_54290"
x="-0.889648"
y="56.4844"
width="149.831"
height="98.084"
filterUnits="userSpaceOnUse"
color-interpolation-filters="sRGB"
>
<feFlood flood-opacity="0" result="BackgroundImageFix" />
<feGaussianBlur in="BackgroundImageFix" stdDeviation="8" />
<feComposite
in2="SourceAlpha"
operator="in"
result="effect1_backgroundBlur_4242_54290"
/>
<feBlend
mode="normal"
in="SourceGraphic"
in2="effect1_backgroundBlur_4242_54290"
result="shape"
/>
</filter>
<filter
id="filter2_b_4242_54290"
x="10.2256"
y="81.0547"
width="127.168"
height="77.5176"
filterUnits="userSpaceOnUse"
color-interpolation-filters="sRGB"
>
<feFlood flood-opacity="0" result="BackgroundImageFix" />
<feGaussianBlur in="BackgroundImageFix" stdDeviation="5.5" />
<feComposite
in2="SourceAlpha"
operator="in"
result="effect1_backgroundBlur_4242_54290"
/>
<feBlend
mode="normal"
in="SourceGraphic"
in2="effect1_backgroundBlur_4242_54290"
result="shape"
/>
</filter>
<linearGradient
id="paint0_linear_4242_54290"
x1="15.1094"
y1="101.962"
x2="62.6614"
y2="101.962"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="#D3DBFF" />
<stop offset="1" stop-color="#7580EA" />
</linearGradient>
<linearGradient
id="paint1_linear_4242_54290"
x1="132.941"
y1="101.962"
x2="82.9418"
y2="101.962"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="#D2D9FF" />
<stop offset="1" stop-color="#7580EA" />
</linearGradient>
</defs>
</svg>
);

export default SvgImgEmptyColor;
18 changes: 9 additions & 9 deletions src/assets/svg/LogoNoLine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,31 @@ const LogoNoLine = (props: SVGProps<SVGSVGElement>) => (
<g id="Group 2085664824">
<path
id="Subtract"
fill-rule="evenodd"
clip-rule="evenodd"
fillRule="evenodd"
clipRule="evenodd"
d="M34.5496 132.274L96.824 162.16C103.873 165.543 112.329 162.571 115.712 155.522L158.092 67.215C161.475 60.1662 158.503 51.7096 151.454 48.3267L133.348 39.6372L115.61 129.724C113.672 139.565 104.123 145.973 94.2817 144.035L34.5496 132.274ZM24.6554 126.244L95.0554 140.105C95.7458 140.241 96.4344 140.325 97.117 140.358C96.4345 140.325 95.7459 140.241 95.0556 140.105L24.6553 126.244C24.6554 126.244 24.6554 126.244 24.6554 126.244Z"
fill="white"
fill-opacity="0.6"
fillOpacity="0.6"
/>
<g id="Subtract_2">
<mask id="path-2-inside-1_2640_14278" fill="white">
<path
fill-rule="evenodd"
clip-rule="evenodd"
fillRule="evenodd"
clipRule="evenodd"
d="M24.1755 11.8902C25.6859 4.21887 33.1292 -0.775494 40.8005 0.734956L119.449 16.2205C127.12 17.7309 132.114 25.1742 130.604 32.8455L119.96 86.9044L119.944 86.9845L111.981 127.429C110.47 135.1 103.027 140.095 95.3555 138.584L16.7073 123.099C9.03602 121.588 4.04167 114.145 5.55212 106.474L16.1961 52.4149L16.2121 52.3348L24.1755 11.8902ZM104.96 77.7412C84.8191 73.0165 71.7591 53.4772 75.0394 32.976C70.3029 53.1905 50.8105 66.3203 30.3815 63.0569C50.5228 67.7817 63.5828 87.3209 60.3025 107.822C65.0389 87.6076 84.5313 74.4778 104.96 77.7412Z"
/>
</mask>
<path
fill-rule="evenodd"
clip-rule="evenodd"
fillRule="evenodd"
clipRule="evenodd"
d="M24.1755 11.8902C25.6859 4.21887 33.1292 -0.775494 40.8005 0.734956L119.449 16.2205C127.12 17.7309 132.114 25.1742 130.604 32.8455L119.96 86.9044L119.944 86.9845L111.981 127.429C110.47 135.1 103.027 140.095 95.3555 138.584L16.7073 123.099C9.03602 121.588 4.04167 114.145 5.55212 106.474L16.1961 52.4149L16.2121 52.3348L24.1755 11.8902ZM104.96 77.7412C84.8191 73.0165 71.7591 53.4772 75.0394 32.976C70.3029 53.1905 50.8105 66.3203 30.3815 63.0569C50.5228 67.7817 63.5828 87.3209 60.3025 107.822C65.0389 87.6076 84.5313 74.4778 104.96 77.7412Z"
fill="white"
fill-opacity="0.6"
fillOpacity="0.6"
/>
<path
d="M40.8005 0.734956L40.7636 0.92266L40.8005 0.734956ZM119.449 16.2205L119.486 16.0328L119.449 16.2205ZM119.96 86.9044L120.148 86.9419L120.148 86.9413L119.96 86.9044ZM119.944 86.9845L119.756 86.947L119.756 86.9475L119.944 86.9845ZM111.981 127.429L111.793 127.392L111.981 127.429ZM95.3555 138.584L95.3186 138.772L95.3555 138.584ZM16.7073 123.099L16.7443 122.911L16.7073 123.099ZM5.55212 106.474L5.36441 106.437L5.55212 106.474ZM16.1961 52.4149L16.0085 52.3774L16.0084 52.3779L16.1961 52.4149ZM16.2121 52.3348L16.3997 52.3723L16.3998 52.3718L16.2121 52.3348ZM75.0394 32.976L75.2283 33.0062L74.8531 32.9323L75.0394 32.976ZM104.96 77.7412L104.93 77.9301L105.004 77.555L104.96 77.7412ZM30.3815 63.0569L30.4117 62.868L30.3378 63.2432L30.3815 63.0569ZM60.3025 107.822L60.1136 107.792L60.4887 107.866L60.3025 107.822ZM40.8375 0.547251C33.0625 -0.983609 25.5186 4.07825 23.9878 11.8532L24.3632 11.9271C25.8532 4.3595 33.1959 -0.567378 40.7636 0.92266L40.8375 0.547251ZM119.486 16.0328L40.8375 0.547251L40.7636 0.92266L119.412 16.4082L119.486 16.0328ZM130.792 32.8825C132.322 25.1075 127.261 17.5636 119.486 16.0328L119.412 16.4082C126.979 17.8982 131.906 25.2409 130.416 32.8085L130.792 32.8825ZM120.148 86.9413L130.792 32.8825L130.416 32.8085L119.772 86.8674L120.148 86.9413ZM120.132 87.022L120.148 86.9419L119.772 86.8669L119.756 86.947L120.132 87.022ZM112.168 127.466L120.132 87.0215L119.756 86.9475L111.793 127.392L112.168 127.466ZM95.3186 138.772C103.094 140.303 110.637 135.241 112.168 127.466L111.793 127.392C110.303 134.96 102.96 139.887 95.3925 138.397L95.3186 138.772ZM16.6704 123.287L95.3186 138.772L95.3925 138.397L16.7443 122.911L16.6704 123.287ZM5.36441 106.437C3.83355 114.212 8.89539 121.756 16.6704 123.287L16.7443 122.911C9.17664 121.421 4.24979 114.078 5.73982 106.511L5.36441 106.437ZM16.0084 52.3779L5.36441 106.437L5.73982 106.511L16.3838 52.4518L16.0084 52.3779ZM16.0245 52.2973L16.0085 52.3774L16.3837 52.4524L16.3997 52.3723L16.0245 52.2973ZM23.9878 11.8532L16.0244 52.2979L16.3998 52.3718L24.3632 11.9271L23.9878 11.8532ZM74.8505 32.9458C71.5544 53.5455 84.6771 73.1797 104.917 77.9275L105.004 77.555C84.961 72.8533 71.9637 53.4089 75.2283 33.0062L74.8505 32.9458ZM30.3513 63.2458C50.88 66.5251 70.4664 53.3313 75.2256 33.0196L74.8531 32.9323C70.1394 53.0497 50.741 66.1155 30.4117 62.868L30.3513 63.2458ZM60.4914 107.852C63.7874 87.2527 50.6647 67.6185 30.4252 62.8707L30.3378 63.2432C50.3808 67.9449 63.3781 87.3892 60.1136 107.792L60.4914 107.852ZM104.991 77.5523C84.4618 74.273 64.8754 87.4669 60.1162 107.779L60.4887 107.866C65.2024 87.7484 84.6008 74.6826 104.93 77.9301L104.991 77.5523Z"
fill="white"
fill-opacity="0.6"
fillOpacity="0.6"
mask="url(#path-2-inside-1_2640_14278)"
/>
</g>
Expand Down
40 changes: 20 additions & 20 deletions src/assets/svg/extension/ArrowUpRight.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
import type { SVGProps } from "react";

const ArrowUpRight = (props: SVGProps<SVGSVGElement>) => (
<svg viewBox="0 0 32 32" fill="none" {...props}>
<g id="arrow-up-right">
<path
id="Vector"
d="M9.33203 22.6667L22.6654 9.33337"
stroke="white"
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path
id="Vector_2"
d="M9.33203 9.33337H22.6654V22.6667"
stroke="white"
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
/>
</g>
</svg>
<svg viewBox="0 0 32 32" fill="none" {...props}>
<g id="arrow-up-right">
<path
id="Vector"
d="M9.33203 22.6667L22.6654 9.33337"
stroke="white"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
<path
id="Vector_2"
d="M9.33203 9.33337H22.6654V22.6667"
stroke="white"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
</g>
</svg>
);

export default ArrowUpRight;
27 changes: 0 additions & 27 deletions src/assets/svg/home/Add.tsx

This file was deleted.

18 changes: 9 additions & 9 deletions src/assets/svg/home/BookMark.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,26 @@ const BookMark = ({
id="Vector"
d="M14.0166 1.66699H5.98327C4.20827 1.66699 2.7666 3.11699 2.7666 4.88366V16.6253C2.7666 18.1253 3.8416 18.7587 5.15827 18.0337L9.22493 15.7753C9.65827 15.5337 10.3583 15.5337 10.7833 15.7753L14.8499 18.0337C16.1666 18.767 17.2416 18.1337 17.2416 16.6253V4.88366C17.2333 3.11699 15.7916 1.66699 14.0166 1.66699Z"
stroke={stroke}
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
<path
id="Vector_2"
d="M14.0166 1.66699H5.98327C4.20827 1.66699 2.7666 3.11699 2.7666 4.88366V16.6253C2.7666 18.1253 3.8416 18.7587 5.15827 18.0337L9.22493 15.7753C9.65827 15.5337 10.3583 15.5337 10.7833 15.7753L14.8499 18.0337C16.1666 18.767 17.2416 18.1337 17.2416 16.6253V4.88366C17.2333 3.11699 15.7916 1.66699 14.0166 1.66699Z"
fill={fill}
stroke={fill}
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
<path
id="Vector_3"
d="M7.70801 7.54199C9.19134 8.08366 10.808 8.08366 12.2913 7.54199"
stroke={stroke}
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
</g>
</g>
Expand Down
6 changes: 3 additions & 3 deletions src/assets/svg/home/Close.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ const Close = ({ stroke = "white", ...props }: SVGProps<SVGSVGElement>) => (
<path
d="M18 18L12 12M12 12L6 6M12 12L18 6M12 12L6 18"
stroke={stroke}
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
);
Expand Down
Loading

0 comments on commit f119976

Please sign in to comment.