Spaces:
Build error
Build error
Create index.html
Browse files- index.html +65 -0
index.html
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
+
<title>Gemini OS</title>
|
| 7 |
+
<style type="text/tailwindcss">
|
| 8 |
+
@layer utilities {
|
| 9 |
+
/* Define classes the LLM is instructed to use, applying Tailwind's styles */
|
| 10 |
+
.llm-button {
|
| 11 |
+
@apply bg-blue-600 text-white border-none rounded-md py-2 px-4 m-2 cursor-pointer text-base font-medium text-center transition-colors hover:bg-blue-700 active:bg-blue-800 active:transform active:translate-y-px;
|
| 12 |
+
}
|
| 13 |
+
.llm-text {
|
| 14 |
+
@apply m-2 text-base text-gray-800 leading-relaxed;
|
| 15 |
+
}
|
| 16 |
+
.llm-title {
|
| 17 |
+
/* New class for titles */
|
| 18 |
+
@apply font-bold text-xl text-gray-900 mb-3 mt-1 mx-2; /* Added mt-1 and mx-2 for consistent spacing with llm-text */
|
| 19 |
+
}
|
| 20 |
+
.llm-input,
|
| 21 |
+
.llm-textarea {
|
| 22 |
+
@apply m-2 p-2 w-full border border-gray-300 rounded-md bg-white font-sans text-gray-800 text-sm transition-all focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-300;
|
| 23 |
+
}
|
| 24 |
+
.llm-textarea {
|
| 25 |
+
@apply min-h-[120px];
|
| 26 |
+
}
|
| 27 |
+
.llm-container {
|
| 28 |
+
@apply w-full flex flex-col items-start mb-4 gap-2 p-2;
|
| 29 |
+
}
|
| 30 |
+
.llm-row {
|
| 31 |
+
@apply w-full flex items-center mb-2 gap-2;
|
| 32 |
+
}
|
| 33 |
+
.llm-label {
|
| 34 |
+
@apply mr-1 text-sm text-gray-600;
|
| 35 |
+
}
|
| 36 |
+
/* Styles for generated icons to match desktop icons */
|
| 37 |
+
.icon {
|
| 38 |
+
@apply w-24 h-28 flex flex-col items-center justify-start text-center m-2 p-2 cursor-pointer select-none rounded-lg transition-colors hover:bg-blue-100 focus:bg-blue-100 focus:outline-none focus:ring-2 focus:ring-blue-500;
|
| 39 |
+
}
|
| 40 |
+
.icon-image {
|
| 41 |
+
@apply text-5xl mb-2 drop-shadow-sm;
|
| 42 |
+
}
|
| 43 |
+
.icon-label {
|
| 44 |
+
@apply text-sm text-gray-800 font-medium break-words max-w-full leading-tight;
|
| 45 |
+
}
|
| 46 |
+
}
|
| 47 |
+
</style>
|
| 48 |
+
<script type="importmap">
|
| 49 |
+
{
|
| 50 |
+
"imports": {
|
| 51 |
+
"react-dom/": "https://esm.sh/react-dom@^19.1.0/",
|
| 52 |
+
"react/": "https://esm.sh/react@^19.1.0/",
|
| 53 |
+
"react": "https://esm.sh/react@^19.1.0",
|
| 54 |
+
"@google/genai": "https://esm.sh/@google/genai@^1.5.1",
|
| 55 |
+
"@tailwindcss/browser": "https://esm.sh/@tailwindcss/browser@^4.1.10"
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
</script>
|
| 59 |
+
<link rel="stylesheet" href="/index.css" />
|
| 60 |
+
</head>
|
| 61 |
+
<body>
|
| 62 |
+
<div id="root"></div>
|
| 63 |
+
<script type="module" src="/index.tsx"></script>
|
| 64 |
+
</body>
|
| 65 |
+
</html>
|