diff --git a/app/bots/swiss-german-teacher/components/content/SwissContentSection.tsx b/app/bots/swiss-german-teacher/components/content/SwissContentSection.tsx
index 4249666..4aadac9 100644
--- a/app/bots/swiss-german-teacher/components/content/SwissContentSection.tsx
+++ b/app/bots/swiss-german-teacher/components/content/SwissContentSection.tsx
@@ -52,11 +52,11 @@ const SwissContentSection: React.FC = () => {
diff --git a/app/bots/swiss-german-teacher/components/shared/WaitlistForm.tsx b/app/bots/swiss-german-teacher/components/shared/WaitlistForm.tsx
deleted file mode 100644
index 309562a..0000000
--- a/app/bots/swiss-german-teacher/components/shared/WaitlistForm.tsx
+++ /dev/null
@@ -1,94 +0,0 @@
-import React from 'react';
-import { useWaitlistForm } from '../../hooks/useWaitlistForm';
-import { btnPrimary } from '../../utils/constants';
-import { WaitlistPreferences } from '../../types';
-
-const WaitlistForm = () => {
- const { formState, updateEmail, togglePreference, handleSubmit } = useWaitlistForm();
- const { email, preferences, isSubmitting, isSubmitted, error } = formState;
-
- // Map of preference keys to display text
- const preferenceLabels: Record = {
- learningTools: "Advanced learning tools and pronunciation features",
- communityFeatures: "Community features and language exchange",
- authenticContent: "Authentic Swiss German content and media",
- culturalInsights: "Cultural insights and local events",
- earlyAccess: "Early access to new features",
- emailUpdates: "Email updates about product development"
- };
-
- if (isSubmitted) {
- return (
-
-
-
Thank You!
-
- You've been added to our waitlist. We'll notify you when we have updates about the features you're interested in.
-
-
- );
- }
-
- return (
-
- );
-};
-
-export default WaitlistForm;
\ No newline at end of file
diff --git a/app/bots/swiss-german-teacher/components/social/SocialSection.tsx b/app/bots/swiss-german-teacher/components/social/SocialSection.tsx
index 4d0c64b..501ede8 100644
--- a/app/bots/swiss-german-teacher/components/social/SocialSection.tsx
+++ b/app/bots/swiss-german-teacher/components/social/SocialSection.tsx
@@ -156,11 +156,11 @@ const SocialSection = ({ getTryLink }: SocialSectionProps) => {
diff --git a/app/bots/swiss-german-teacher/hooks/useWaitlistForm.ts b/app/bots/swiss-german-teacher/hooks/useWaitlistForm.ts
deleted file mode 100644
index db5c412..0000000
--- a/app/bots/swiss-german-teacher/hooks/useWaitlistForm.ts
+++ /dev/null
@@ -1,92 +0,0 @@
-import { useState, useCallback } from 'react';
-import { WaitlistFormState, WaitlistPreferences } from '../types';
-import { isValidEmail } from '../utils/validation';
-
-const initialPreferences: WaitlistPreferences = {
- learningTools: true,
- communityFeatures: false,
- authenticContent: true,
- culturalInsights: false,
- earlyAccess: true,
- emailUpdates: true
-};
-
-/**
- * Hook to manage waitlist form state and submission
- */
-export const useWaitlistForm = () => {
- const [formState, setFormState] = useState({
- email: '',
- preferences: initialPreferences,
- isSubmitting: false,
- isSubmitted: false,
- error: null
- });
-
- const updateEmail = useCallback((email: string) => {
- setFormState(prev => ({
- ...prev,
- email,
- error: null
- }));
- }, []);
-
- const togglePreference = useCallback((key: keyof WaitlistPreferences) => {
- setFormState(prev => ({
- ...prev,
- preferences: {
- ...prev.preferences,
- [key]: !prev.preferences[key]
- }
- }));
- }, []);
-
- const handleSubmit = useCallback(async (e: React.FormEvent) => {
- e.preventDefault();
-
- // Validate email
- if (!isValidEmail(formState.email)) {
- setFormState(prev => ({
- ...prev,
- error: 'Please enter a valid email address'
- }));
- return;
- }
-
- // Start submission
- setFormState(prev => ({
- ...prev,
- isSubmitting: true,
- error: null
- }));
-
- try {
- // Simulate API call with a timeout
- await new Promise(resolve => setTimeout(resolve, 1500));
-
- // Success state
- setFormState(prev => ({
- ...prev,
- isSubmitting: false,
- isSubmitted: true
- }));
-
- } catch (error) {
- // Error handling
- setFormState(prev => ({
- ...prev,
- isSubmitting: false,
- error: error instanceof Error ? error.message : 'Failed to submit'
- }));
- }
- }, [formState.email]);
-
- return {
- formState,
- updateEmail,
- togglePreference,
- handleSubmit
- };
-};
-
-export default useWaitlistForm;
\ No newline at end of file
diff --git a/app/bots/swiss-german-teacher/page.tsx b/app/bots/swiss-german-teacher/page.tsx
index d39e1d4..042a0ed 100644
--- a/app/bots/swiss-german-teacher/page.tsx
+++ b/app/bots/swiss-german-teacher/page.tsx
@@ -8,7 +8,6 @@ import CommunicationSection from './components/communication/CommunicationSectio
import SocialSection from './components/social/SocialSection';
import SwissContentSection from './components/content/SwissContentSection';
import FutureVisionSection from './components/future/FutureVisionSection';
-import WaitlistForm from './components/shared/WaitlistForm';
export default function SwissGermanTeacher() {
const heroConfig = getBotHeroConfig('swiss-german-teacher');
@@ -62,24 +61,9 @@ export default function SwissGermanTeacher() {
-
+
-
-
-
-
-
- Join Our Beta Program
-
-
- Be one of the first to experience our upcoming features and help shape the
- future of Swiss German learning.
-
-
-
-
-
>
);
}}
diff --git a/app/bots/swiss-german-teacher/types/index.ts b/app/bots/swiss-german-teacher/types/index.ts
index 5e6565c..bf1f5a5 100644
--- a/app/bots/swiss-german-teacher/types/index.ts
+++ b/app/bots/swiss-german-teacher/types/index.ts
@@ -26,24 +26,6 @@ export interface ConversationExample {
translation: string;
}
-// Waitlist form types
-export interface WaitlistPreferences {
- learningTools: boolean;
- communityFeatures: boolean;
- authenticContent: boolean;
- culturalInsights: boolean;
- earlyAccess: boolean;
- emailUpdates: boolean;
-}
-
-export interface WaitlistFormState {
- email: string;
- preferences: WaitlistPreferences;
- isSubmitting: boolean;
- isSubmitted: boolean;
- error: string | null;
-}
-
// Demo mode types
export interface DemoState {
isActive: boolean;
diff --git a/data/bots.ts b/data/bots.ts
index 3f31719..8231c35 100644
--- a/data/bots.ts
+++ b/data/bots.ts
@@ -41,10 +41,10 @@ const bots: Bot[] = [
accentColor: 'red',
menuItems: [
{ id: 'demo', label: 'Demo', icon: '💬', section: 'demo' },
- { id: 'features', label: 'Features', icon: '✨', section: 'features' },
+ { id: 'language-learning', label: 'Learning', icon: '📚', section: 'language-learning' },
{ id: 'communication', label: 'Communication', icon: '✉️', section: 'communication' },
- { id: 'culture', label: 'Culture', icon: '🏔️', section: 'culture' },
- { id: 'waitlist', label: 'Join Waitlist', icon: '📝', section: 'waitlist' }
+ { id: 'integration', label: 'Social', icon: '🏔️', section: 'integration' },
+ { id: 'future', label: 'Vision', icon: '🚀', section: 'future' }
]
}
},