Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaapple committed Jan 13, 2025
1 parent 446ad07 commit 4ade2d2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 28 deletions.
4 changes: 2 additions & 2 deletions frontend/app/[locale]/(search)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export default async function IndexPage() {

return (
<div className="group w-full flex flex-col flex-1 h-lvh mx-auto overflow-auto peer-[[data-state=open]]:lg:pl-[300px] peer-[[data-state=open]]:xl:pl-[320px]">
<div className="h-12 flex-shrink-0">
{/* <div className="h-12 flex-shrink-0">
<ChangelogBanner />
</div>
</div> */}
<div className="grow">
<HeroLanding />
<SearchWindow id={id} user={user} initialMessages={[]} demoQuestions={<DemoQuestions />} />
Expand Down
36 changes: 10 additions & 26 deletions frontend/components/layout/hero-landing.tsx
Original file line number Diff line number Diff line change
@@ -1,41 +1,25 @@
import { ImageGenerateUrl, PageGenUrl } from '@/config';
import { PageGenUrl } 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 = (
<Link href={PageGenUrl} target="_blank">
<div className="rounded-full px-6 py-2 flex items-center gap-2 hover:bg-primary/10 transition-all duration-300">
<Image src="/logo.png" alt="PageGen" width={30} height={30} className="size-6" />
<span>PageGen - AI Page Generator</span>
<span className="ml-2 bg-gradient-to-r from-blue-500 to-purple-500 text-white px-4 py-1 rounded-full text-sm font-medium hover:shadow-lg transition-all">
Try Free Now
</span>
</div>
</Link>
);

const AhaToolElement = (
<Link href={ImageGenerateUrl} target="_blank">
<div className="rounded-full px-6 py-2 flex items-center gap-2 hover:bg-primary/10 transition-all duration-300">
<Image src="/logo.png" alt="AI Image Generator" width={30} height={30} className="size-6" />
<span>New: AI Image Generator</span>
<span className="ml-2 bg-gradient-to-r from-blue-500 to-purple-500 text-white px-4 py-1 rounded-full text-sm font-medium hover:shadow-lg transition-all">
Try Free Now
</span>
</div>
</Link>
);
return (
<section className="py-10">
<div className="flex flex-col items-center text-center space-y-4">
<h1 className="text-balance text-4xl md:text-5xl font-bold">{t('hero')}</h1>
<h2 className="hidden ">MemFree - Hybrid AI Search</h2>
{isPageGen ? <>{PageGenElement}</> : <>{AhaToolElement}</>}
<Link href={PageGenUrl} target="_blank">
<div className="rounded-full px-6 py-2 flex items-center gap-2 hover:bg-primary/10 transition-all duration-300">
<Image src="/logo.png" alt="PageGen" width={30} height={30} className="size-6" />
<span>PageGen - AI Page Generator</span>
<span className="ml-2 bg-gradient-to-r from-blue-500 to-purple-500 text-white px-4 py-1 rounded-full text-sm font-medium hover:shadow-lg transition-all">
Try Free Now
</span>
</div>
</Link>
</div>
</section>
);
Expand Down

0 comments on commit 4ade2d2

Please sign in to comment.