diff --git a/frontend/components/layout/hero-landing.tsx b/frontend/components/layout/hero-landing.tsx index e2fee6cc..2ed32f38 100644 --- a/frontend/components/layout/hero-landing.tsx +++ b/frontend/components/layout/hero-landing.tsx @@ -1,20 +1,41 @@ -'use server'; - -import { PageGenUrl } from '@/config'; +import { PageGenUrl, StorySnapUrl } from '@/config'; import { getTranslations } from 'next-intl/server'; import Link from 'next/link'; +import Image from 'next/image'; export async function HeroLanding() { const t = await getTranslations('HomePage'); + const isPageGen = Math.random() >= 0.5; + + const PageGenElement = ( + +
+ Penguin + PageGen - AI Page Generator + + Try Free Now + +
+ + ); + + const StorySnapElement = ( + +
+ Penguin + Transform Images into Stories with AI + + Try Free Now + +
+ + ); return (
-

{t('hero')}

-

- - PageGen - AI Page Generator - -

+

{t('hero')}

+

MemFree - Hybrid AI Search

+ {isPageGen ? <>{PageGenElement} : <>{StorySnapElement}}
); diff --git a/frontend/components/search/search-bar.tsx b/frontend/components/search/search-bar.tsx index 15f385ae..69e99a28 100644 --- a/frontend/components/search/search-bar.tsx +++ b/frontend/components/search/search-bar.tsx @@ -234,7 +234,7 @@ const SearchBar: React.FC = ({