diff --git a/src/components/AgentStudio.js b/src/components/AgentStudio.js new file mode 100644 index 0000000..a359e9c --- /dev/null +++ b/src/components/AgentStudio.js @@ -0,0 +1,24 @@ +export function AgentStudio() { + const container = document.createElement('div'); + container.className = 'w-full h-full flex flex-col items-center justify-center bg-app-bg text-white gap-4'; + + const icon = document.createElement('div'); + icon.innerHTML = ` + + + + `; + + const title = document.createElement('p'); + title.textContent = 'Agent Studio'; + title.className = 'text-lg font-bold opacity-60'; + + const sub = document.createElement('p'); + sub.textContent = 'Available in the web app at open-generative-ai.com'; + sub.className = 'text-sm opacity-40'; + + container.appendChild(icon); + container.appendChild(title); + container.appendChild(sub); + return container; +} diff --git a/src/components/Header.js b/src/components/Header.js index 0dcec23..2e78da6 100644 --- a/src/components/Header.js +++ b/src/components/Header.js @@ -27,7 +27,7 @@ export function Header(navigate) { const menu = document.createElement('nav'); menu.className = 'hidden lg:flex items-center gap-6 text-[13px] font-bold text-secondary'; - const items = ['Image', 'Video', 'Lip Sync', 'Cinema Studio']; + const items = ['Image', 'Video', 'Lip Sync', 'Cinema Studio', 'Workflows', 'Agents']; items.forEach(item => { const link = document.createElement('a'); @@ -51,6 +51,8 @@ export function Header(navigate) { else if (item === 'Video') navigate('video'); else if (item === 'Lip Sync') navigate('lipsync'); else if (item === 'Cinema Studio') navigate('cinema'); + else if (item === 'Workflows') navigate('workflows'); + else if (item === 'Agents') navigate('agents'); }; menu.appendChild(link); diff --git a/src/components/WorkflowStudio.js b/src/components/WorkflowStudio.js new file mode 100644 index 0000000..90595b0 --- /dev/null +++ b/src/components/WorkflowStudio.js @@ -0,0 +1,24 @@ +export function WorkflowStudio() { + const container = document.createElement('div'); + container.className = 'w-full h-full flex flex-col items-center justify-center bg-app-bg text-white gap-4'; + + const icon = document.createElement('div'); + icon.innerHTML = ` + + + + `; + + const title = document.createElement('p'); + title.textContent = 'Workflow Studio'; + title.className = 'text-lg font-bold opacity-60'; + + const sub = document.createElement('p'); + sub.textContent = 'Available in the web app at open-generative-ai.com'; + sub.className = 'text-sm opacity-40'; + + container.appendChild(icon); + container.appendChild(title); + container.appendChild(sub); + return container; +} diff --git a/src/main.js b/src/main.js index d0e5a4c..19023e5 100644 --- a/src/main.js +++ b/src/main.js @@ -24,6 +24,14 @@ function navigate(page) { import('./components/LipSyncStudio.js').then(({ LipSyncStudio }) => { contentArea.appendChild(LipSyncStudio()); }); + } else if (page === 'workflows') { + import('./components/WorkflowStudio.js').then(({ WorkflowStudio }) => { + contentArea.appendChild(WorkflowStudio()); + }); + } else if (page === 'agents') { + import('./components/AgentStudio.js').then(({ AgentStudio }) => { + contentArea.appendChild(AgentStudio()); + }); } }