القائمة الرئيسية

الصفحات

 

/** * @license * SPDX-License-Identifier: Apache-2.0 */ import {Video} from '@google/genai'; import React, {useCallback, useEffect, useState} from 'react'; import ApiKeyDialog from './components/ApiKeyDialog'; import {CurvedArrowDownIcon} from './components/icons'; import LoadingIndicator from './components/LoadingIndicator'; import PromptForm from './components/PromptForm'; import VideoResult from './components/VideoResult'; import {generateVideo} from './services/geminiService'; import { AppState, AspectRatio, GenerateVideoParams, GenerationMode, Resolution, VeoModel, VideoFile, } from './types'; const defaultPrompt = `A modern and elegant website landing page design showcasing a single realistic photo in motion — the image moves subtly with cinematic lighting and shallow depth of field. Professional photography style with smooth parallax animation, soft shadows, and glossy reflections. The layout is clean, minimal, and focused on the image. High resolution, 8K, ultra realistic, captured with a DSLR lens, natural light, aesthetic composition.`; const App: React.FC = () => { const [appState, setAppState] = useState(AppState.IDLE); const [videoUrl, setVideoUrl] = useState(null); const [errorMessage, setErrorMessage] = useState(null); const [lastConfig, setLastConfig] = useState( null, ); const [lastVideoObject, setLastVideoObject] = useState

تعليقات