diff --git a/apps/sim/app/(auth)/auth-layout-client.tsx b/apps/sim/app/(auth)/auth-layout-client.tsx index 3aee420922f..89aeb3a89e7 100644 --- a/apps/sim/app/(auth)/auth-layout-client.tsx +++ b/apps/sim/app/(auth)/auth-layout-client.tsx @@ -2,7 +2,7 @@ import { useEffect } from 'react' import AuthBackground from '@/app/(auth)/components/auth-background' -import Navbar from '@/app/(home)/components/navbar/navbar' +import Navbar from '@/app/(landing)/components/navbar/navbar' export default function AuthLayoutClient({ children }: { children: React.ReactNode }) { useEffect(() => { diff --git a/apps/sim/app/(auth)/components/social-login-buttons.tsx b/apps/sim/app/(auth)/components/social-login-buttons.tsx index 3545840681e..bf1d112c504 100644 --- a/apps/sim/app/(auth)/components/social-login-buttons.tsx +++ b/apps/sim/app/(auth)/components/social-login-buttons.tsx @@ -81,7 +81,7 @@ export function SocialLoginButtons({ const githubButton = ( - - - Get started - - - - - - - - -
- - - - -
- -
-
- - - - ) -} diff --git a/apps/sim/app/(home)/components/index.ts b/apps/sim/app/(home)/components/index.ts deleted file mode 100644 index b05b10953e2..00000000000 --- a/apps/sim/app/(home)/components/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -import Collaboration from '@/app/(home)/components/collaboration/collaboration' -import Enterprise from '@/app/(home)/components/enterprise/enterprise' -import Features from '@/app/(home)/components/features/features' -import Footer from '@/app/(home)/components/footer/footer' -import Hero from '@/app/(home)/components/hero/hero' -import Navbar from '@/app/(home)/components/navbar/navbar' -import Pricing from '@/app/(home)/components/pricing/pricing' -import StructuredData from '@/app/(home)/components/structured-data' -import Templates from '@/app/(home)/components/templates/templates' -import Testimonials from '@/app/(home)/components/testimonials/testimonials' - -export { - Collaboration, - Enterprise, - Features, - Footer, - Hero, - Navbar, - Pricing, - StructuredData, - Templates, - Testimonials, -} diff --git a/apps/sim/app/(home)/components/landing-preview/components/landing-preview-home/landing-preview-home.tsx b/apps/sim/app/(home)/components/landing-preview/components/landing-preview-home/landing-preview-home.tsx deleted file mode 100644 index 3a7b88d2ff6..00000000000 --- a/apps/sim/app/(home)/components/landing-preview/components/landing-preview-home/landing-preview-home.tsx +++ /dev/null @@ -1,99 +0,0 @@ -'use client' - -import { memo, useCallback, useRef, useState } from 'react' -import { ArrowUp } from 'lucide-react' -import { useLandingSubmit } from '@/app/(home)/components/landing-preview/components/landing-preview-panel/landing-preview-panel' -import { useAnimatedPlaceholder } from '@/hooks/use-animated-placeholder' - -const C = { - SURFACE: '#292929', - BORDER: '#3d3d3d', - TEXT_PRIMARY: '#e6e6e6', -} as const - -/** - * Landing preview replica of the workspace Home initial view. - * Shows a greeting heading and a minimal chat input (no + or mic). - * On submit, stores the prompt and redirects to /signup. - */ -export const LandingPreviewHome = memo(function LandingPreviewHome() { - const landingSubmit = useLandingSubmit() - const [inputValue, setInputValue] = useState('') - const textareaRef = useRef(null) - const animatedPlaceholder = useAnimatedPlaceholder() - - const isEmpty = inputValue.trim().length === 0 - - const handleSubmit = useCallback(() => { - if (isEmpty) return - landingSubmit(inputValue) - }, [isEmpty, inputValue, landingSubmit]) - - const MAX_HEIGHT = 200 - - const handleKeyDown = useCallback( - (e: React.KeyboardEvent) => { - if (e.key === 'Enter' && !e.shiftKey) { - e.preventDefault() - handleSubmit() - } - }, - [handleSubmit] - ) - - const handleInput = useCallback((e: React.FormEvent) => { - const target = e.target as HTMLTextAreaElement - target.style.height = 'auto' - target.style.height = `${Math.min(target.scrollHeight, MAX_HEIGHT)}px` - }, []) - - return ( -
-

- What should we get done? -

- -
-
textareaRef.current?.focus()} - > -