Skip to content

Commit 402f6b7

Browse files
committed
🔧 Refactor Home Page and Layout with Analytics and Updated Components
- Updated layout to include AnalyticsProvider and new Navbar - Simplified home page with DemoVideo and Hero components - Updated metadata and page structure - Added CallToAction section to main layout - Removed previously used components and streamlined design
1 parent 274697b commit 402f6b7

File tree

2 files changed

+20
-29
lines changed

2 files changed

+20
-29
lines changed

apps/web/app/(home)/page.tsx

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
import { showBetaFeature } from '@repo/feature-flags';
22
import { createMetadata } from '@repo/seo/metadata';
33
import type { Metadata } from 'next';
4-
import { Cases } from './components/cases';
5-
import { CTA } from './components/cta';
6-
import { FAQ } from './components/faq';
7-
import { Features } from './components/features';
4+
import { DemoVideo } from './components/demo-video';
85
import { Hero } from './components/hero';
9-
import { Stats } from './components/stats';
10-
import { Testimonials } from './components/testimonials';
116

127
const meta = {
13-
title: 'From zero to production in minutes.',
8+
title: 'An Evolving Open-Source AI Ecosystem',
149
description:
15-
"next-forge is a production-grade boilerplate for modern Next.js apps. It's designed to have everything you need to build your new SaaS app as quick as possible. Authentication, billing, analytics, SEO, and more. It's all here.",
10+
'OpenStudio is an evolving AI ecosystem—start with ChatHub for research and conversations, then leverage verticalized agents like OpenStudio Tube to get the work done for YouTube.',
1611
};
1712

1813
export const metadata: Metadata = createMetadata(meta);
@@ -22,18 +17,8 @@ const Home = async () => {
2217

2318
return (
2419
<>
25-
{betaFeature && (
26-
<div className="w-full bg-black py-2 text-center text-white">
27-
Beta feature now available
28-
</div>
29-
)}
30-
<Hero />
31-
<Cases />
32-
<Features />
33-
<Stats />
34-
<Testimonials />
35-
<FAQ />
36-
<CTA />
20+
<Hero id="hero" latestUpdate={undefined} />
21+
<DemoVideo latestUpdate={undefined} />
3722
</>
3823
);
3924
};

apps/web/app/layout.tsx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import '@repo/design-system/styles/globals.css';
2-
import './styles/web.css';
2+
import { AnalyticsProvider } from '@repo/analytics';
3+
// import './styles/web.css';
34
import { DesignSystemProvider } from '@repo/design-system';
45
import { fonts } from '@repo/design-system/lib/fonts';
56
import { cn } from '@repo/design-system/lib/utils';
67
import { Toolbar } from '@repo/feature-flags/components/toolbar';
78
import type { ReactNode } from 'react';
9+
import { CallToAction } from './components/cta';
810
import { Footer } from './components/footer';
9-
import { Header } from './components/header';
10-
11+
import { Navbar } from './components/navbar';
1112
type RootLayoutProperties = {
1213
readonly children: ReactNode;
1314
};
@@ -18,12 +19,17 @@ const RootLayout = ({ children }: RootLayoutProperties) => (
1819
className={cn(fonts, 'scroll-smooth')}
1920
suppressHydrationWarning
2021
>
21-
<body>
22-
<DesignSystemProvider>
23-
<Header />
24-
{children}
25-
<Footer />
26-
</DesignSystemProvider>
22+
<body className="min-h-screen bg-backdrop">
23+
<AnalyticsProvider>
24+
<DesignSystemProvider>
25+
<Navbar />
26+
<main className="divide-y divide-gray-700">
27+
{children}
28+
<CallToAction />
29+
<Footer />
30+
</main>
31+
</DesignSystemProvider>
32+
</AnalyticsProvider>
2733
<Toolbar />
2834
</body>
2935
</html>

0 commit comments

Comments
 (0)