Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 38 additions & 45 deletions src/components/Products/Slides/AIAskSlide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,63 +43,56 @@ export default function AIAskSlide({ productName = 'PostHog AI' }: AIAskSlidePro
}

return (
<div className="h-full bg-gray-50 flex flex-col">
{/* Top two-thirds: Title and chat interface */}
<div className="flex-1 flex px-16 py-12 gap-16">
<div className="h-full bg-gray-50 flex flex-col items-center relative">
<div className="flex-1 flex px-16 pt-12 gap-4">
{/* Left side - Title */}
<div className="flex-1 flex flex-col justify-center">
<div>
<h1 className="text-5xl font-bold text-gray-900 mb-2">What can Max AI help with?</h1>
<p className="text-xl text-gray-700">Ask him yourself...</p>
{/* Curved arrow pointing right */}
<div className="mt-4">
<svg width="60" height="40" viewBox="0 0 60 40" className="text-gray-900">
<path
d="M10 20 Q30 5 50 20"
stroke="currentColor"
strokeWidth="3"
fill="none"
strokeLinecap="round"
/>
<path
d="M45 15 L50 20 L45 25"
stroke="currentColor"
strokeWidth="3"
fill="none"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
</div>
<div className="flex-1 flex flex-col">
<div className="relative">
<h2 className="text-5xl font-bold text-gray-900 mb-6 text-center">
What can Max AI help with?
</h2>
<h3 className="text-3xl text-gray text-center">Ask him yourself...</h3>
{/* Curved arrow pointing right - absolutely positioned */}
<svg
width="120"
height="80"
viewBox="0 0 60 40"
className="absolute -right-12 top-3/4 text-gray-900"
>
<path
d="M10 20 Q30 5 50 20"
stroke="currentColor"
strokeWidth="3"
fill="none"
strokeLinecap="round"
/>
<path
d="M45 15 L50 20 L45 25"
stroke="currentColor"
strokeWidth="3"
fill="none"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
</div>
<CloudinaryImage
src="https://res.cloudinary.com/dmukukwp6/image/upload/magic_bb77a577f4.png"
alt="Max AI Magic"
className="absolute bottom-0 left-16 max-w-lg w-full"
/>
Comment on lines +79 to +83
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Hedgehog image uses absolute positioning with bottom-0 left-16 but parent container lacks explicit height/position constraints. Verify the image appears at the intended position and doesn't overlap other content at various screen sizes.

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/components/Products/Slides/AIAskSlide.tsx
Line: 79:83

Comment:
**style:** Hedgehog image uses `absolute` positioning with `bottom-0 left-16` but parent container lacks explicit height/position constraints. Verify the image appears at the intended position and doesn't overlap other content at various screen sizes.

How can I resolve this? If you propose a fix, please make it concise.

</div>

{/* Right side - Max chat mockup */}
<div className="flex-1 flex flex-col justify-center">
<div className="flex-1 flex flex-col gap-8">
<div className="max-w-md mx-auto">
<CloudinaryImage
src="https://res.cloudinary.com/dmukukwp6/image/upload/Group_10159_8cb595de1b.png"
alt="Max Chat Interface"
className="w-full"
/>
</div>
</div>
</div>

{/* Bottom third: Hedgehog illustration and LLM buttons */}
<div className="flex-shrink-0 px-16 py-8">
<div className="flex gap-16 items-end">
{/* Left side - Magic hedgehog image */}
<div className="flex-1 flex justify-start items-end">
<CloudinaryImage
src="https://res.cloudinary.com/dmukukwp6/image/upload/magic_bb77a577f4.png"
alt="Max AI Magic"
className="max-w-[400px] w-full"
/>
</div>

{/* Right side - LLM buttons */}
<div className="flex-1 flex flex-col justify-center">
<div className="flex-1 flex flex-col">
<div className="text-center mb-6">
<h3 className="text-2xl font-bold text-gray-900 mb-2">
Still not sure if PostHog AI is right for you?
Expand Down