Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

add ai logos and improve cards

Francesco Sansalvadoref6fc10209e3c
diff --git a/apps/www/components/Panel/index.tsx b/apps/www/components/Panel/index.tsx
index 9232d59a6aa..53cc92ba507 100644
--- a/apps/www/components/Panel/index.tsx
+++ b/apps/www/components/Panel/index.tsx
@@ -22,31 +22,27 @@ const Panel = ({
}: PropsWithChildren<Props>) => {
const outerRef = useRef(null)
const innerRef = useRef(null)
+ const trackCursor = hasShimmer || hasInnerShimmer
const handleGlow = (event: any) => {
- if (!outerRef.current || !innerRef.current) return null
+ if (!trackCursor || !outerRef.current || !innerRef.current) return null
+
const outerElement = outerRef.current as HTMLDivElement
const innerElement = innerRef.current as HTMLDivElement
- let x: any
- let y: any
- let isActive: boolean = false
+ const { x: elX, y: elY, width, height } = outerElement.getBoundingClientRect()
+ const x = event.clientX - elX
+ const y = event.clientY - elY
+ const isActive = x > -3 && x < width + 3 && y > -3 && y < height + 3
- if (hasShimmer || hasActiveOnHover || hasInnerShimmer) {
- const { x: elX, y: elY, width, height } = outerElement.getBoundingClientRect()
- x = event.clientX - elX
- y = event.clientY - elY
- isActive = x > -3 && x < width + 3 && y > -3 && y < height + 3
- }
-
- if (isActive) {
- outerElement.classList.remove('!bg-surface-200')
- // outerElement.classList.remove('bg-gradient-to-b')
- outerElement.classList.add('!bg-brand')
- } else {
- outerElement.classList.remove('!bg-brand')
- // outerElement.classList.add('bg-gradient-to-b')
- outerElement.classList.add('!bg-surface-200')
- }
+ // if (isActive) {
+ // outerElement.classList.remove('!bg-surface-200')
+ // // outerElement.classList.remove('bg-gradient-to-b')
+ // outerElement.classList.add('!bg-brand')
+ // } else {
+ // outerElement.classList.remove('!bg-brand')
+ // // outerElement.classList.add('bg-gradient-to-b')
+ // outerElement.classList.add('!bg-surface-200')
+ // }
if (hasShimmer) {
const activeGlow =
@@ -75,11 +71,14 @@ const Panel = ({
}
}, [])
+ console.log('trackCursor', trackCursor, 'hasActiveOnHover', hasActiveOnHover)
+
return (
<div
ref={outerRef}
className={[
- 'relative z-0 rounded-xl bg-gradient-to-b hover:bg-none from-background-surface-300 to-background-surface-100 p-px transition-all shadow-md',
+ 'relative z-0 rounded-xl bg-gradient-to-b from-background-surface-300 to-background-surface-100 p-px shadow-md',
+ !trackCursor && hasActiveOnHover ? 'bg-none hover:!bg-brand' : '',
outerClassName,
].join(' ')}
>
diff --git a/apps/www/components/Products/ProductCard.tsx b/apps/www/components/Products/ProductCard.tsx
index 7d385eee615..57b90dbf295 100644
--- a/apps/www/components/Products/ProductCard.tsx
+++ b/apps/www/components/Products/ProductCard.tsx
@@ -34,7 +34,7 @@ const ProductCard = ({
onClick={onClick}
>
<Panel
- // hasShimmer
+ hasShimmer
hasActiveOnHover
outerClassName="relative w-full h-full group/2 shadow-lg p-0"
innerClassName="relative overflow-hidden flex-1 flex flex-col items-center gap-5 lg:items-start justify-between
diff --git a/apps/www/components/Products/index.tsx b/apps/www/components/Products/index.tsx
index aa227862c61..ecfeb8d2b31 100644
--- a/apps/www/components/Products/index.tsx
+++ b/apps/www/components/Products/index.tsx
@@ -207,11 +207,18 @@ const Products = (props: any) => {
subtitle={props.products['vector'].description}
highlights={
<ul className="flex flex-col gap-1 text-sm">
- <li>
- <IconCheck className="inline h-4 w-4" /> OpenAI
+ <li className="flex items-center gap-2">
+ <Image src="/images/logos/openai.svg" alt="OpenAI logo" width="25" height="25" />
+ <span>OpenAI</span>
</li>
- <li>
- <IconCheck className="inline h-4 w-4" /> Hugging Face
+ <li className="flex items-center gap-2">
+ <Image
+ src="/images/logos/hugging-face.svg"
+ alt="Hugging Face logo"
+ width="25"
+ height="25"
+ />
+ <span>Hugging Face</span>
</li>
</ul>
}
diff --git a/apps/www/public/images/logos/hugging-face.svg b/apps/www/public/images/logos/hugging-face.svg
new file mode 100644
index 00000000000..13159341d66
--- /dev/null
+++ b/apps/www/public/images/logos/hugging-face.svg
@@ -0,0 +1,34 @@
+<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M15.0455 9.94569C15.1633 9.9873 15.251 10.1142 15.3344 10.235C15.4471 10.3981 15.5519 10.5499 15.7128 10.4644C16.243 10.1825 16.4442 9.52418 16.1623 8.99402C15.8805 8.46388 15.2222 8.26261 14.692 8.5445C14.1618 8.82639 13.9606 9.48469 14.2425 10.0149C14.317 10.1551 14.4825 10.0889 14.6571 10.0191C14.7941 9.96428 14.9366 9.90724 15.0455 9.94569Z" fill="url(#paint0_linear_375_150595)"/>
+<path d="M9.63438 10.235C9.71775 10.1142 9.80542 9.9873 9.92326 9.94569C10.0321 9.90724 10.1747 9.96428 10.3117 10.0191C10.4863 10.0889 10.6518 10.1551 10.7263 10.0149C11.0082 9.48469 10.807 8.82639 10.2768 8.5445C9.74663 8.26261 9.08833 8.46388 8.80644 8.99402C8.52455 9.52418 8.72582 10.1825 9.25598 10.4644C9.41687 10.5499 9.5217 10.3981 9.63438 10.235Z" fill="url(#paint1_linear_375_150595)"/>
+<path d="M17.7002 10.9695C18.0905 10.9695 18.4069 10.6531 18.4069 10.2628C18.4069 9.87255 18.0905 9.55615 17.7002 9.55615C17.3099 9.55615 16.9935 9.87255 16.9935 10.2628C16.9935 10.6531 17.3099 10.9695 17.7002 10.9695Z" fill="url(#paint2_linear_375_150595)"/>
+<path d="M8.2959 10.2628C8.2959 10.6531 7.9795 10.9695 7.58922 10.9695C7.19891 10.9695 6.88254 10.6531 6.88254 10.2628C6.88254 9.87255 7.19891 9.55615 7.58922 9.55615C7.9795 9.55615 8.2959 9.87255 8.2959 10.2628Z" fill="url(#paint3_linear_375_150595)"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M10.8035 11.8186C11.3219 12.0746 11.9066 12.3633 12.536 12.3633C13.1673 12.3633 13.7581 12.0713 14.2804 11.8127C14.4148 11.7462 14.552 11.6786 14.6768 11.6269C14.7951 11.5779 14.9434 11.525 15.0942 11.5149C15.2623 11.5036 15.4866 11.5454 15.6442 11.7483C15.7752 11.917 15.7976 12.1235 15.7976 12.2799C15.7976 12.8517 15.6013 13.6651 15.1013 14.3461C14.5874 15.046 13.7554 15.5986 12.536 15.5986C11.3166 15.5986 10.4845 15.046 9.97067 14.3461C9.47069 13.6651 9.27438 12.8517 9.27438 12.2799C9.27438 12.128 9.29557 11.9326 9.41282 11.7684C9.55493 11.5695 9.76544 11.5099 9.9397 11.5133C10.0911 11.5161 10.2377 11.5646 10.3511 11.6091C10.4715 11.6565 10.602 11.7193 10.7293 11.782L10.8035 11.8186ZM10.1538 12.4706C10.1923 12.8672 10.3479 13.3902 10.6718 13.8313C10.7982 14.0036 10.9506 14.1641 11.1338 14.3005C11.3693 14.0144 11.6874 13.7989 12.0516 13.6904C12.1386 13.6646 12.2281 13.8142 12.3198 13.9674C12.4082 14.1153 12.4986 14.2664 12.5906 14.2664C12.6887 14.2664 12.7849 14.1174 12.8789 13.9719C12.9771 13.82 13.0728 13.6719 13.1654 13.7015C13.1924 13.7101 13.2191 13.7193 13.2456 13.7292C13.54 13.8382 13.7998 14.0187 14.0039 14.2495C14.1582 14.1248 14.2892 13.9826 14.4002 13.8313C14.7241 13.3902 14.8797 12.8672 14.9181 12.4706C14.8454 12.5039 14.7627 12.5445 14.6663 12.5922L14.6151 12.6176C14.1238 12.8613 13.3746 13.2331 12.536 13.2331C11.6947 13.2331 10.9394 12.8576 10.4469 12.6127L10.4461 12.6123C10.4111 12.5949 10.3774 12.5782 10.3451 12.5623C10.2733 12.5269 10.2101 12.4964 10.1538 12.4706ZM14.9237 12.2193C14.9237 12.2193 14.9238 12.2194 14.9238 12.2196L14.9241 12.2209C14.9238 12.2199 14.9237 12.2193 14.9237 12.2193Z" fill="url(#paint4_linear_375_150595)"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M14.021 20.3072C13.556 20.3867 13.078 20.4282 12.5904 20.4282C12.1359 20.4282 11.6897 20.3922 11.2547 20.3229C10.7128 20.9374 9.8642 21.2486 8.72707 21.2486C8.03453 21.2486 7.23456 21.132 6.35002 20.9026L6.34963 20.9025C6.32987 20.897 5.72441 20.7283 5.06342 20.4662C3.98796 20.0398 3.43414 19.6426 3.21126 19.1383C3.06427 18.8056 3.07493 18.4484 3.24149 18.1322C3.25693 18.1029 3.27345 18.0742 3.29106 18.0465C3.01404 17.6234 3.0671 17.2127 3.11885 17.0154C3.18495 16.7639 3.32172 16.5547 3.50742 16.4044C3.41935 16.2581 3.36043 16.1 3.33499 15.9237C3.2815 15.5534 3.40435 15.1833 3.68093 14.8821C3.8962 14.6475 4.20062 14.5184 4.53765 14.5184L4.5466 14.5184C4.29833 13.7238 4.16453 12.8787 4.16453 12.0024C4.16453 7.34891 7.9369 3.57654 12.5904 3.57654C17.2438 3.57654 21.0162 7.34891 21.0162 12.0024C21.0162 12.8809 20.8817 13.7281 20.6322 14.5244C20.6728 14.5204 20.7127 14.5184 20.7518 14.5184C21.0889 14.5184 21.3933 14.6475 21.6085 14.8821C21.8851 15.1833 22.008 15.5534 21.9545 15.9237C21.9291 16.1 21.8701 16.2581 21.7821 16.4044C21.9678 16.5547 22.1045 16.7639 22.1706 17.0154C22.2224 17.2127 22.2754 17.6234 21.9984 18.0465C22.016 18.0742 22.0326 18.1029 22.048 18.1322C22.2146 18.4484 22.2252 18.8056 22.0782 19.1383C21.8553 19.6426 21.3015 20.0398 20.2261 20.4662C19.5648 20.7284 18.9592 20.8971 18.9399 20.9025L18.9395 20.9026C18.0549 21.132 17.255 21.2486 16.5624 21.2486C15.4156 21.2486 14.5624 20.9321 14.021 20.3072ZM12.5904 4.4463C16.7634 4.4463 20.1464 7.82926 20.1464 12.0024C20.1464 12.5792 20.0818 13.1409 19.9594 13.6806C19.7467 13.474 19.4652 13.3614 19.1545 13.3614C18.8727 13.3614 18.5829 13.4546 18.2928 13.6386C18.1004 13.7608 17.8877 13.9774 17.6687 14.2496C17.4659 13.9682 17.1819 13.7812 16.857 13.7301C16.7949 13.7204 16.7316 13.7153 16.6692 13.7153C15.9275 13.7153 15.4813 14.3588 15.3126 14.9376C15.2288 15.1331 14.827 16.0237 14.2225 16.6277C13.3056 17.5441 13.0734 18.4893 13.5219 19.5016C13.2166 19.5391 12.9058 19.5584 12.5904 19.5584C12.3105 19.5584 12.0342 19.5432 11.7622 19.5135C12.2179 18.4967 11.9875 17.5477 11.0669 16.6277C10.4625 16.0237 10.0606 15.1331 9.97692 14.9376C9.80819 14.3588 9.362 13.7153 8.62031 13.7153C8.55791 13.7153 8.49463 13.7204 8.43244 13.7301C8.10759 13.7812 7.82361 13.9682 7.62074 14.2496C7.40177 13.9774 7.18912 13.7608 6.99668 13.6386C6.70662 13.4546 6.41677 13.3614 6.13497 13.3614C5.78293 13.3614 5.46829 13.506 5.2489 13.7682L5.24336 13.7749C5.1067 13.2063 5.03431 12.6128 5.03431 12.0024C5.03431 7.82926 8.41727 4.4463 12.5904 4.4463ZM6.13497 14.2311C6.24586 14.2311 6.38133 14.2783 6.53071 14.3731C6.99451 14.6673 7.88949 16.2057 8.21718 16.8041C8.32698 17.0046 8.51463 17.0894 8.68359 17.0894C9.01888 17.0894 9.28068 16.756 8.71424 16.3325C7.86253 15.6951 8.16129 14.6534 8.56791 14.5892C8.58574 14.5864 8.60335 14.5851 8.62031 14.5851C8.98996 14.5851 9.15304 15.2222 9.15304 15.2222C9.15304 15.2222 9.63097 16.4225 10.452 17.2429C11.2731 18.0635 11.3155 18.7221 10.7171 19.5997C10.309 20.1981 9.52769 20.3788 8.72707 20.3788C7.89667 20.3788 7.04539 20.1844 6.56833 20.0607C6.54484 20.0546 3.64353 19.2351 4.01101 18.5375C4.07276 18.4203 4.17452 18.3734 4.3026 18.3734C4.57724 18.3734 4.97125 18.5903 5.34106 18.7939C5.66807 18.9739 5.97616 19.1435 6.16606 19.1435C6.25652 19.1435 6.32023 19.105 6.34632 19.0111C6.42469 18.7299 5.89024 18.5228 5.30595 18.2964C4.60471 18.0247 3.83167 17.7252 3.96013 17.2364C4.00166 17.0778 4.11429 17.0135 4.27259 17.0137C4.67825 17.0137 5.38316 17.4369 5.95668 17.7812C6.34997 18.0173 6.68147 18.2164 6.81229 18.2164C6.83686 18.2164 6.85448 18.2092 6.86404 18.194C7.02517 17.9339 6.93689 17.7523 5.8012 17.065C5.71218 17.0111 5.62525 16.9589 5.54084 16.9082C4.54823 16.3122 3.9039 15.9252 4.32173 15.4703C4.37392 15.4133 4.44785 15.3881 4.53765 15.3881C5.22715 15.3883 6.85622 16.8708 6.85622 16.8708C6.85622 16.8708 7.29588 17.3281 7.56181 17.3281C7.62291 17.3281 7.67488 17.304 7.7101 17.2444C7.80504 17.0843 7.36031 16.6321 6.88141 16.1451C6.4093 15.6651 5.90398 15.1512 5.84968 14.8502C5.77554 14.4392 5.90165 14.2311 6.13497 14.2311ZM18.7588 14.3731C18.9082 14.2783 19.0436 14.2311 19.1545 14.2311C19.3878 14.2311 19.5139 14.4392 19.4398 14.8502C19.3855 15.1512 18.8802 15.6651 18.4081 16.1451C17.9292 16.6321 17.4844 17.0843 17.5794 17.2444C17.6146 17.304 17.6666 17.3281 17.7277 17.3281C17.9936 17.3281 18.4333 16.8708 18.4333 16.8708C18.4333 16.8708 20.0623 15.3883 20.7518 15.3881C20.8416 15.3881 20.9156 15.4133 20.9678 15.4703C21.3856 15.9252 20.7412 16.3121 19.7486 16.9082C19.6643 16.9589 19.5773 17.0112 19.4883 17.065C18.3526 17.7523 18.2643 17.9339 18.4254 18.194C18.435 18.2092 18.4526 18.2164 18.4772 18.2164C18.608 18.2164 18.9395 18.0173 19.3328 17.7812C19.9063 17.4369 20.6112 17.0137 21.0169 17.0137C21.1752 17.0135 21.2878 17.0778 21.3294 17.2364C21.4578 17.7252 20.6848 18.0247 19.9835 18.2964C19.3992 18.5228 18.8648 18.7299 18.9432 19.0111C18.9693 19.105 19.033 19.1435 19.1234 19.1435C19.3133 19.1435 19.6214 18.9739 19.9484 18.7939C20.3182 18.5903 20.7122 18.3734 20.9869 18.3734C21.115 18.3734 21.2167 18.4203 21.2785 18.5375C21.6459 19.2351 18.7446 20.0546 18.7212 20.0607C18.2441 20.1844 17.3928 20.3788 16.5624 20.3788C15.7618 20.3788 14.9805 20.1981 14.5724 19.5997C13.974 18.7221 14.0164 18.0635 14.8375 17.2429C15.6585 16.4225 16.1364 15.2222 16.1364 15.2222C16.1364 15.2222 16.2995 14.5851 16.6692 14.5851C16.6861 14.5851 16.7037 14.5864 16.7216 14.5892C17.1282 14.6534 17.427 15.6951 16.5752 16.3325C16.0088 16.756 16.2706 17.0894 16.6059 17.0894C16.7748 17.0894 16.9625 17.0046 17.0723 16.8041C17.4 16.2057 18.295 14.6673 18.7588 14.3731Z" fill="url(#paint5_linear_375_150595)"/>
+<defs>
+<linearGradient id="paint0_linear_375_150595" x1="3.07733" y1="21.2486" x2="20.6936" y2="2.1741" gradientUnits="userSpaceOnUse">
+<stop stop-color="#EDEDED" stop-opacity="0.5"/>
+<stop offset="1" stop-color="white"/>
+</linearGradient>
+<linearGradient id="paint1_linear_375_150595" x1="3.07733" y1="21.2486" x2="20.6936" y2="2.1741" gradientUnits="userSpaceOnUse">
+<stop stop-color="#EDEDED" stop-opacity="0.5"/>
+<stop offset="1" stop-color="white"/>
+</linearGradient>
+<linearGradient id="paint2_linear_375_150595" x1="3.07733" y1="21.2486" x2="20.6936" y2="2.1741" gradientUnits="userSpaceOnUse">
+<stop stop-color="#EDEDED" stop-opacity="0.5"/>
+<stop offset="1" stop-color="white"/>
+</linearGradient>
+<linearGradient id="paint3_linear_375_150595" x1="3.07733" y1="21.2486" x2="20.6936" y2="2.1741" gradientUnits="userSpaceOnUse">
+<stop stop-color="#EDEDED" stop-opacity="0.5"/>
+<stop offset="1" stop-color="white"/>
+</linearGradient>
+<linearGradient id="paint4_linear_375_150595" x1="3.07733" y1="21.2486" x2="20.6936" y2="2.1741" gradientUnits="userSpaceOnUse">
+<stop stop-color="#EDEDED" stop-opacity="0.5"/>
+<stop offset="1" stop-color="white"/>
+</linearGradient>
+<linearGradient id="paint5_linear_375_150595" x1="3.07733" y1="21.2486" x2="20.6936" y2="2.1741" gradientUnits="userSpaceOnUse">
+<stop stop-color="#EDEDED" stop-opacity="0.5"/>
+<stop offset="1" stop-color="white"/>
+</linearGradient>
+</defs>
+</svg>
diff --git a/apps/www/public/images/logos/openai.svg b/apps/www/public/images/logos/openai.svg
new file mode 100644
index 00000000000..750536a02bf
--- /dev/null
+++ b/apps/www/public/images/logos/openai.svg
@@ -0,0 +1,9 @@
+<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M20.2474 11.2218C20.6558 9.99658 20.5156 8.65558 19.8634 7.54011C18.882 5.83338 16.9071 4.95563 14.9809 5.36403C14.1214 4.40094 12.8901 3.85235 11.5979 3.85845C9.62908 3.85845 7.87968 5.1263 7.27013 6.99761C6.00227 7.25972 4.91119 8.05213 4.27116 9.17369C3.2837 10.8804 3.50923 13.026 4.83195 14.4889C4.42355 15.7141 4.56375 17.0551 5.21596 18.1645C6.19733 19.8773 8.17226 20.7551 10.1045 20.3467C10.9579 21.3098 12.1892 21.8644 13.4814 21.8583C15.4502 21.8583 17.1996 20.5905 17.8092 18.7192C19.077 18.4571 20.1681 17.6647 20.8021 16.5431C21.7956 14.8364 21.5701 12.6908 20.2474 11.2279V11.2218ZM18.8454 8.13137C19.2355 8.81406 19.3818 9.61256 19.2477 10.3867C19.2233 10.3684 19.1746 10.344 19.1441 10.3257L15.56 8.25328C15.3771 8.14965 15.1516 8.14965 14.9687 8.25328L10.7689 10.6793V8.8994L14.2372 6.89399C15.8525 5.96138 17.9128 6.51607 18.8454 8.13137ZM10.7689 11.8313L12.5366 10.8073L14.3043 11.8313V13.8733L12.5366 14.8973L10.7689 13.8733V11.8313ZM11.5918 5.03487C12.3842 5.03487 13.1462 5.30917 13.7557 5.81509C13.7313 5.82728 13.6826 5.85776 13.646 5.87605L10.0619 7.94241C9.87899 8.04603 9.76927 8.24109 9.76927 8.45443V13.3064L8.22712 12.4165V8.40566C8.22712 6.54045 9.7327 5.03487 11.5979 5.02878L11.5918 5.03487ZM5.2952 9.76495C5.69141 9.08226 6.30705 8.55805 7.05069 8.28375V12.5445C7.05069 12.7578 7.16041 12.9468 7.34328 13.0565L11.537 15.4764L9.98871 16.3724L6.52648 14.3731C4.91728 13.4405 4.3626 11.3802 5.2952 9.76495ZM6.24 17.5854C5.84379 16.9088 5.7036 16.1042 5.8377 15.3301C5.86208 15.3484 5.91084 15.3728 5.94132 15.3911L9.52545 17.4635C9.70832 17.5671 9.93385 17.5671 10.1167 17.4635L14.3104 15.0375V16.8174L10.8421 18.8167C9.22677 19.7432 7.16651 19.1946 6.2339 17.5854H6.24ZM13.4875 20.6819C12.7012 20.6819 11.9332 20.4076 11.3297 19.9017C11.3541 19.8895 11.4089 19.859 11.4394 19.8407L15.0236 17.7744C15.2064 17.6708 15.3222 17.4757 15.3161 17.2624V12.4165L16.8583 13.3064V17.3111C16.8583 19.1763 15.3466 20.688 13.4875 20.688V20.6819ZM19.7902 15.9518C19.394 16.6345 18.7723 17.1587 18.0347 17.4269V13.1662C18.0347 12.9529 17.925 12.7578 17.7421 12.6542L13.5424 10.2282L15.0845 9.33827L18.5528 11.3376C20.1681 12.2702 20.7167 14.3305 19.7841 15.9457L19.7902 15.9518Z" fill="url(#paint0_linear_375_150591)"/>
+<defs>
+<linearGradient id="paint0_linear_375_150591" x1="3.66022" y1="21.8584" x2="21.6586" y2="4.10237" gradientUnits="userSpaceOnUse">
+<stop stop-color="#EDEDED" stop-opacity="0.5"/>
+<stop offset="1" stop-color="white"/>
+</linearGradient>
+</defs>
+</svg>