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
102 lines (102 loc) · 3.27 KB
/
index.html
File metadata and controls
102 lines (102 loc) · 3.27 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sorafy: Sora-2 Prompt Studio</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
fontFamily: {
sans: ['Inter', 'sans-serif'],
},
colors: {
'bkg-light': '#F0F1F3',
'bkg-dark': '#0D0D0F',
'surface-light': '#FFFFFF',
'surface-dark': '#1A1A1C',
'surface-secondary-light': '#F7F8FA',
'surface-secondary-dark': '#2C2C2F',
'primary': '#2563EB',
'primary-dark': '#3B82F6',
'text-primary-light': '#18181B',
'text-primary-dark': '#E4E4E7',
'text-secondary-light': '#6B7280',
'text-secondary-dark': '#A1A1AA',
'border-light': '#E4E4E7',
'border-dark': '#3F3F46'
},
boxShadow: {
'soft': '0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05)',
'lifted': '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)',
},
borderRadius: {
'xl': '1rem',
'2xl': '1.5rem',
}
}
}
}
</script>
<style>
body {
font-family: 'Inter', sans-serif;
}
/* Custom Fluent-style toggle switch */
.toggle-checkbox {
appearance: none;
-webkit-appearance: none;
width: 36px;
height: 20px;
border-radius: 10px;
background-color: #A1A1AA; /* Off state */
position: relative;
cursor: pointer;
transition: background-color 0.2s ease-in-out;
}
.toggle-checkbox:checked {
background-color: #2563EB; /* On state */
}
.dark .toggle-checkbox:checked {
background-color: #3B82F6;
}
.toggle-checkbox::before {
content: '';
width: 14px;
height: 14px;
border-radius: 50%;
background-color: white;
position: absolute;
top: 3px;
left: 3px;
transition: transform 0.2s ease-in-out;
}
.toggle-checkbox:checked::before {
transform: translateX(16px);
}
</style>
<script type="importmap">
{
"imports": {
"react-dom/": "https://aistudiocdn.com/react-dom@^19.2.0/",
"react/": "https://aistudiocdn.com/react@^19.2.0/",
"react": "https://aistudiocdn.com/react@^19.2.0",
"@google/genai": "https://aistudiocdn.com/@google/genai@^1.29.1",
"react-markdown": "https://esm.sh/react-markdown@9.0.1",
"remark-gfm": "https://esm.sh/remark-gfm@4.0.0"
}
}
</script>
</head>
<body class="bg-bkg-light dark:bg-bkg-dark">
<div id="root"></div>
<script type="module" src="/index.tsx"></script>
</body>
</html>