@@ -14,9 +14,9 @@ import astroLogo from '../../../assets/frameworks/astro.svg'
1414import viteLogo from ' ../../../assets/frameworks/vite.svg'
1515
1616const frameworks = [
17- { id: ' nextjs' , name: ' Next.js' , logo: nextjsLogo , installPath : ' /install/ nextjs' , port: ' 3000' },
18- { id: ' astro' , name: ' Astro' , logo: astroLogo , installPath : ' /install/ astro' , port: ' 4321' },
19- { id: ' vite' , name: ' Vite' , logo: viteLogo , installPath : ' /install/ vite' , port: ' 5173' }
17+ { id: ' nextjs' , name: ' Next.js' , logo: nextjsLogo , command : ' npx @frontman-ai/ nextjs install ' , port: ' 3000' },
18+ { id: ' astro' , name: ' Astro' , logo: astroLogo , command : ' npx @frontman-ai/ astro install ' , port: ' 4321' },
19+ { id: ' vite' , name: ' Vite' , logo: viteLogo , command : ' npx @frontman-ai/ vite install ' , port: ' 5173' }
2020]
2121---
2222
@@ -39,12 +39,12 @@ const frameworks = [
3939
4040 <div class =" framework-tabs" >
4141 { frameworks .map ((fw , i ) => (
42- <button
43- class = { ` framework-tab ${i === 0 ? ' active' : ' ' } ` }
44- data-framework = { fw .id }
45- data-install-path = { fw .installPath }
46- data-port = { fw .port }
47- >
42+ <button
43+ class = { ` framework-tab ${i === 0 ? ' active' : ' ' } ` }
44+ data-framework = { fw .id }
45+ data-command = { fw .command }
46+ data-port = { fw .port }
47+ >
4848 <img src = { fw .logo .src } alt = { fw .name } width = " 24" height = " 24" loading = " lazy" />
4949 { fw .name }
5050 </button >
@@ -70,7 +70,7 @@ const frameworks = [
7070 </div >
7171 <div class =" terminal-body" >
7272 <span class =" terminal-prompt" >$</span >
73- <code data-install-command >curl https:// frontman.sh/install/ nextjs | bash </code >
73+ <code data-install-command >npx @ frontman-ai/ nextjs install </code >
7474 <button class =" copy-button" data-copy =" install" aria-label =" Copy to clipboard" >
7575 <svg width =" 16" height =" 16" viewBox =" 0 0 24 24" fill =" none" stroke =" currentColor" stroke-width =" 2" >
7676 <rect x =" 9" y =" 9" width =" 13" height =" 13" rx =" 2" ry =" 2" ></rect >
@@ -343,9 +343,9 @@ const frameworks = [
343343 tabs.forEach((t) => t.classList.remove('active'))
344344 tab.classList.add('active')
345345
346- const installPath = tab.getAttribute('data-install-path ')
347- if (installCommand && installPath ) {
348- installCommand.textContent = `curl https://frontman.sh${installPath} | bash`
346+ const command = tab.getAttribute('data-command ')
347+ if (installCommand && command ) {
348+ installCommand.textContent = command
349349 }
350350
351351 const port = tab.getAttribute('data-port')
0 commit comments