├── src ├── index.css ├── App.js ├── setupTests.js ├── App.test.js ├── reportWebVitals.js ├── index.js ├── components │ ├── Header.js │ ├── GeneratedCode.js │ ├── Navbar.js │ ├── IdeaForm.js │ ├── Features.js │ ├── apis │ │ └── geminiAPI.js │ └── Footer.js ├── App.css ├── IdeaInput.js └── logo.svg ├── public ├── Gemini.png ├── favicon.ico ├── logo192.png ├── logo512.png ├── robots.txt ├── GeminiCoder.png ├── google-gemini-icon.jpg ├── manifest.json └── index.html ├── postcss.config.js ├── tailwind.config.js ├── .gitignore ├── package.json └── README.md /src/index.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | -------------------------------------------------------------------------------- /public/Gemini.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekramasif/GeminiCoder/HEAD/public/Gemini.png -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekramasif/GeminiCoder/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekramasif/GeminiCoder/HEAD/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekramasif/GeminiCoder/HEAD/public/logo512.png -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /public/GeminiCoder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekramasif/GeminiCoder/HEAD/public/GeminiCoder.png -------------------------------------------------------------------------------- /public/google-gemini-icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekramasif/GeminiCoder/HEAD/public/google-gemini-icon.jpg -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | content: [ 3 | "./src/**/*.{js,jsx,ts,tsx}", 4 | ], 5 | theme: { 6 | extend: {}, 7 | }, 8 | plugins: [], 9 | } 10 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import './index.css'; 3 | import IdeaInput from './IdeaInput'; 4 | 5 | function App() { 6 | return ( 7 |
8 | 9 |
10 | ); 11 | } 12 | 13 | export default App; 14 | -------------------------------------------------------------------------------- /src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom'; 6 | -------------------------------------------------------------------------------- /src/App.test.js: -------------------------------------------------------------------------------- 1 | import { render, screen } from '@testing-library/react'; 2 | import App from './App'; 3 | 4 | test('renders learn react link', () => { 5 | render(); 6 | const linkElement = screen.getByText(/learn react/i); 7 | expect(linkElement).toBeInTheDocument(); 8 | }); 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | .env 21 | 22 | npm-debug.log* 23 | yarn-debug.log* 24 | yarn-error.log* 25 | -------------------------------------------------------------------------------- /src/reportWebVitals.js: -------------------------------------------------------------------------------- 1 | const reportWebVitals = onPerfEntry => { 2 | if (onPerfEntry && onPerfEntry instanceof Function) { 3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { 4 | getCLS(onPerfEntry); 5 | getFID(onPerfEntry); 6 | getFCP(onPerfEntry); 7 | getLCP(onPerfEntry); 8 | getTTFB(onPerfEntry); 9 | }); 10 | } 11 | }; 12 | 13 | export default reportWebVitals; 14 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | import './index.css'; 4 | import App from './App'; 5 | import reportWebVitals from './reportWebVitals'; 6 | 7 | const root = ReactDOM.createRoot(document.getElementById('root')); 8 | root.render( 9 | 10 | 11 | 12 | ); 13 | 14 | // If you want to start measuring performance in your app, pass a function 15 | // to log results (for example: reportWebVitals(console.log)) 16 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals 17 | reportWebVitals(); 18 | -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /src/components/Header.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | const Header = () => { 4 | return ( 5 |
6 |

7 | Turn your idea into an{" "} 8 | app 9 |

10 |

11 | Describe your app idea in detail and let AI help you bring it to life. 12 |

13 |
14 | ); 15 | }; 16 | 17 | export default Header; -------------------------------------------------------------------------------- /src/App.css: -------------------------------------------------------------------------------- 1 | .App { 2 | text-align: center; 3 | } 4 | 5 | .App-logo { 6 | height: 40vmin; 7 | pointer-events: none; 8 | } 9 | 10 | @media (prefers-reduced-motion: no-preference) { 11 | .App-logo { 12 | animation: App-logo-spin infinite 20s linear; 13 | } 14 | } 15 | 16 | .App-header { 17 | background-color: #282c34; 18 | min-height: 100vh; 19 | display: flex; 20 | flex-direction: column; 21 | align-items: center; 22 | justify-content: center; 23 | font-size: calc(10px + 2vmin); 24 | color: white; 25 | } 26 | 27 | .App-link { 28 | color: #61dafb; 29 | } 30 | 31 | @keyframes App-logo-spin { 32 | from { 33 | transform: rotate(0deg); 34 | } 35 | to { 36 | transform: rotate(360deg); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/components/GeneratedCode.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | const GeneratedCode = ({ htmlContent }) => { 4 | return ( 5 |
6 |

7 | Generated HTML Code 8 |

9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |           
22 |         
23 |
24 |
25 | ); 26 | }; 27 | 28 | export default GeneratedCode; -------------------------------------------------------------------------------- /src/components/Navbar.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { FaGithub } from "react-icons/fa"; 3 | 4 | const Navbar = () => { 5 | return ( 6 | 29 | ); 30 | }; 31 | 32 | export default Navbar; -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "gemini-app", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@codesandbox/sandpack-react": "^2.19.9", 7 | "@codesandbox/sandpack-themes": "^2.0.21", 8 | "@fortawesome/free-solid-svg-icons": "^6.6.0", 9 | "@fortawesome/react-fontawesome": "^0.2.2", 10 | "@google/generative-ai": "^0.21.0", 11 | "@monaco-editor/react": "^4.6.0", 12 | "@testing-library/jest-dom": "^5.17.0", 13 | "@testing-library/react": "^13.4.0", 14 | "@testing-library/user-event": "^13.5.0", 15 | "dompurify": "^3.1.7", 16 | "highlight.js": "^11.10.0", 17 | "lucide-react": "^0.455.0", 18 | "marked": "^14.1.4", 19 | "react": "^18.3.1", 20 | "react-copy-to-clipboard": "^5.1.0", 21 | "react-dom": "^18.3.1", 22 | "react-frame-component": "^5.2.7", 23 | "react-icons": "^5.3.0", 24 | "react-markdown": "^9.0.1", 25 | "react-scripts": "5.0.1", 26 | "web-vitals": "^2.1.4" 27 | }, 28 | "scripts": { 29 | "start": "react-scripts start", 30 | "build": "react-scripts build", 31 | "test": "react-scripts test", 32 | "eject": "react-scripts eject" 33 | }, 34 | "eslintConfig": { 35 | "extends": [ 36 | "react-app", 37 | "react-app/jest" 38 | ] 39 | }, 40 | "browserslist": { 41 | "production": [ 42 | ">0.2%", 43 | "not dead", 44 | "not op_mini all" 45 | ], 46 | "development": [ 47 | "last 1 chrome version", 48 | "last 1 firefox version", 49 | "last 1 safari version" 50 | ] 51 | }, 52 | "devDependencies": { 53 | "autoprefixer": "^10.4.20", 54 | "postcss": "^8.4.47", 55 | "tailwindcss": "^3.4.14" 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/components/IdeaForm.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { FaSpinner } from "react-icons/fa"; 3 | 4 | const IdeaForm = ({ idea, setIdea, handleSubmit, loading, error }) => { 5 | return ( 6 |
7 |