generated from google-gemini/aistudio-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
36 lines (36 loc) · 1.14 KB
/
index.html
File metadata and controls
36 lines (36 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Smart Repeat Cart</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
/* For a subtle background pattern */
body {
background-color: #f8fafc; /* slate-50 */
}
</style>
<script>
// Polyfill for process.env to avoid a ReferenceError in browser-only environments.
// The application is designed to read the API key from this object.
// In a production environment, a server or build tool would populate this.
// This script ensures the app can load and show a proper error if the key is missing.
window.process = window.process || { env: {} };
</script>
<script type="importmap">
{
"imports": {
"react-dom/": "https://esm.sh/react-dom@^19.1.1/",
"react/": "https://esm.sh/react@^19.1.1/",
"react": "https://esm.sh/react@^19.1.1",
"@google/genai": "https://esm.sh/@google/genai@^1.12.0"
}
}
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/index.tsx"></script>
</body>
</html>