- Landing page with hero, features, how-it-works, comparison table, FAQ, and CTA sections - Full SEO meta tags, Open Graph, Twitter Cards, and JSON-LD structured data (SoftwareApplication, FAQPage, Organization) - GEO-optimized content targeting AI search engines (citations, statistics, authoritative tone) - API Keys section highlighting free tiers for Gemini (required), ElevenLabs and Upload-Post (optional) - AI YouTube Thumbnail Studio feature showcased in landing and FAQ - Gemini API key validation in ThumbnailStudio (blocks UI with warning when not configured) - Landing page link in dashboard sidebar for easy navigation - All references updated to Gemini 3.0 Flash and correct GitHub repo URL Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
37 lines
980 B
JavaScript
37 lines
980 B
JavaScript
import { StrictMode, useState, useEffect } from 'react'
|
|
import { createRoot } from 'react-dom/client'
|
|
import './index.css'
|
|
import App from './App.jsx'
|
|
import Landing from './Landing.jsx'
|
|
|
|
function Root() {
|
|
const [showApp, setShowApp] = useState(() => {
|
|
return window.location.hash === '#app' || localStorage.getItem('openshorts_skip_landing') === '1';
|
|
});
|
|
|
|
useEffect(() => {
|
|
const handleHashChange = () => {
|
|
setShowApp(window.location.hash === '#app');
|
|
};
|
|
window.addEventListener('hashchange', handleHashChange);
|
|
return () => window.removeEventListener('hashchange', handleHashChange);
|
|
}, []);
|
|
|
|
const handleLaunchApp = () => {
|
|
localStorage.setItem('openshorts_skip_landing', '1');
|
|
window.location.hash = '#app';
|
|
setShowApp(true);
|
|
};
|
|
|
|
if (showApp) {
|
|
return <App />;
|
|
}
|
|
|
|
return <Landing onLaunchApp={handleLaunchApp} />;
|
|
}
|
|
|
|
createRoot(document.getElementById('root')).render(
|
|
<StrictMode>
|
|
<Root />
|
|
</StrictMode>,
|
|
)
|