-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
137 lines (128 loc) · 4.02 KB
/
index.html
File metadata and controls
137 lines (128 loc) · 4.02 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ADK Agent Code Visualizer</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://unpkg.com/reactflow@11.11.3/dist/style.css" />
<link rel="stylesheet" href="https://unpkg.com/react-resizable@3.0.5/css/styles.css" />
<style>
body {
overscroll-behavior: none;
}
.react-flow__attribution {
background: rgba(255, 255, 255, 0.1) !important;
}
/* Light mode scrollbar styles */
.scrollbar-thin {
scrollbar-width: thin;
scrollbar-color: #d1d5db #f9fafb; /* thumb(gray-300) track(gray-50) */
}
.scrollbar-thin::-webkit-scrollbar {
width: 12px;
height: 12px;
}
.scrollbar-thin::-webkit-scrollbar-track {
background: #f9fafb; /* gray-50 */
}
.scrollbar-thin::-webkit-scrollbar-thumb {
background-color: #d1d5db; /* gray-300 */
border-radius: 6px;
border: 3px solid #f9fafb; /* gray-50 */
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
background-color: #9ca3af; /* gray-400 */
}
/* Dark mode scrollbar styles */
.dark .scrollbar-thin {
scrollbar-color: #4b5563 #1f2937; /* thumb(gray-600) track(gray-800) */
}
.dark .scrollbar-thin::-webkit-scrollbar-track {
background: #1f2937; /* gray-800 */
}
.dark .scrollbar-thin::-webkit-scrollbar-thumb {
background-color: #4b5563; /* gray-600 */
border-color: #1f2937; /* gray-800 */
}
.dark .scrollbar-thin::-webkit-scrollbar-thumb:hover {
background-color: #6b7280; /* gray-500 */
}
/* Styles for rendered markdown content */
.markdown-content {
font-family: sans-serif; /* Use sans-serif for better readability */
}
.markdown-content p {
margin-bottom: 0.5rem;
line-height: 1.4;
}
.markdown-content p:last-child {
margin-bottom: 0;
}
.markdown-content ul,
.markdown-content ol {
padding-left: 1.25rem;
margin-bottom: 0.5rem;
}
.markdown-content ul {
list-style-type: disc;
}
.markdown-content ol {
list-style-type: decimal;
}
.markdown-content li {
margin-bottom: 0.25rem;
}
.markdown-content code {
background-color: #1f2937; /* gray-800 */
color: #f3f4f6; /* gray-100 */
padding: 0.15rem 0.3rem;
border-radius: 0.25rem;
font-size: 0.8em;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-content pre {
background-color: #111827; /* gray-900 */
border: 1px solid #374151; /* gray-700 */
padding: 0.75rem;
border-radius: 0.375rem;
overflow-x: auto;
margin-bottom: 0.5rem;
}
.markdown-content pre code {
background-color: transparent;
padding: 0;
border-radius: 0;
font-size: 1em;
}
.markdown-content blockquote {
border-left: 3px solid #6b7280; /* gray-500 */
padding-left: 1rem;
color: #d1d5db; /* gray-300 */
font-style: italic;
margin-left: 0.25rem;
}
.markdown-content strong {
font-weight: 600;
color: #e5e7eb; /* gray-200 */
}
</style>
<script type="importmap">
{
"imports": {
"@google/genai": "https://esm.sh/@google/genai@^1.11.0",
"react/": "https://esm.sh/react@^19.1.1/",
"react": "https://esm.sh/react@^19.1.1",
"react-dom/": "https://esm.sh/react-dom@^19.1.1/",
"reactflow": "https://esm.sh/reactflow@^11.11.4",
"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-gray-900">
<div id="root"></div>
<script type="module" src="/index.tsx"></script>
</body>
</html>