Skip to content

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

feat(docs-gpt): clippy image

Greg Richardsonf93e97cf6d6d
diff --git a/apps/docs/components/Clippy/Clippy.tsx b/apps/docs/components/Clippy/Clippy.tsx
index 94e1bff14fc..9c3bd15e6ed 100644
--- a/apps/docs/components/Clippy/Clippy.tsx
+++ b/apps/docs/components/Clippy/Clippy.tsx
@@ -1,5 +1,7 @@
+import Image from 'next/image'
import { FC, useCallback, useEffect, useState } from 'react'
import { createPortal } from 'react-dom'
+import clippyImage from '../../public/img/clippy.png'
import ClippyBubble from './ClippyBubble'
import ClippyModal from './ClippyModal'
@@ -23,7 +25,14 @@ const Clippy: FC = () => {
return (
<>
- {!isModalOpen && <ClippyBubble onClick={onOpen} />}
+ {!isModalOpen && (
+ <div className="flex flex-col items-end gap-4">
+ <ClippyBubble onClick={onOpen} />
+ <div className="w-[150px]">
+ <Image src={clippyImage} alt="Clippy" />
+ </div>
+ </div>
+ )}
{isModalOpen && createPortal(<ClippyModal onClose={onClose} />, document.body)}
</>
)
diff --git a/apps/docs/components/Clippy/ClippyBubble.tsx b/apps/docs/components/Clippy/ClippyBubble.tsx
index bdf62892cc5..3ab4c2e8a7f 100644
--- a/apps/docs/components/Clippy/ClippyBubble.tsx
+++ b/apps/docs/components/Clippy/ClippyBubble.tsx
@@ -9,7 +9,7 @@ interface Props {
const ClippyBubble: FC<Props> = ({ className, onClick }) => {
return (
<div
- className={`flex gap-2 bg-black rounded-xl p-6 max-w-xs shadow-2xl cursor-pointer ${className}`}
+ className={`flex gap-2 dark:bg-scale-600 rounded-xl p-6 max-w-xs shadow-xl mb-4 relative cursor-pointer ${className}`}
onClick={onClick}
>
What can I help you with?
@@ -19,9 +19,11 @@ const ClippyBubble: FC<Props> = ({ className, onClick }) => {
<span className="text-[12px]">J</span>
</div>
</div>
- <svg className="absolute -bottom-4 right-3" viewBox="0 0 1 1" width={16} fill="black">
- <path d="M0,0 L1,0 L1,1 Z" />
- </svg>
+ <div className="absolute -bottom-4 right-[90px] text-scale-600">
+ <svg viewBox="0 0 1 1" width={16} fill="currentColor">
+ <path d="M0,0 L1,0 L1,1 Z" />
+ </svg>
+ </div>
</div>
)
}
diff --git a/apps/docs/public/img/clippy.png b/apps/docs/public/img/clippy.png
new file mode 100644
index 00000000000..be142ffbe5e
Binary files /dev/null and b/apps/docs/public/img/clippy.png differ