-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
93 lines (88 loc) · 3.25 KB
/
index.html
File metadata and controls
93 lines (88 loc) · 3.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- Ensures proper rendering and touch zooming on mobile devices -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo Text-to-SQL</title>
<!-- External Libraries -->
<!-- React and ReactDOM are loaded via CDN for building the user interface -->
<script src="https://unpkg.com/react@17/umd/react.development.js" defer></script>
<script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js" defer></script>
<!-- Babel is included to allow the use of JSX in the browser -->
<script src="https://unpkg.com/@babel/standalone/babel.min.js" defer></script>
<!-- Tailwind CSS for utility-first CSS styling -->
<script src="https://cdn.tailwindcss.com" defer></script>
<!-- Lucide for scalable vector icons -->
<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.js" defer></script>
<!-- Replace the ReactMarkdown scripts with marked -->
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<!-- Google Fonts for custom typography -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
/* Animation for fading in elements smoothly */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.fade-in {
animation: fadeIn 0.3s ease-out forwards;
}
/* Animation for a dynamic ellipsis in typing indicators */
@keyframes ellipsis {
0% { content: '.'; }
33% { content: '..'; }
66% { content: '...'; }
}
.typing-indicator::after {
content: '...';
animation: ellipsis 1.5s infinite;
}
/* Basic markdown styles */
.prose {
max-width: 65ch;
color: inherit;
}
.prose p {
margin: 1em 0;
}
.prose table {
width: 100%;
text-align: left;
margin: 1em 0;
border-collapse: collapse;
}
.prose th, .prose td {
padding: 0.5em;
border: 1px solid #e5e7eb;
}
.prose pre {
background: #f3f4f6;
padding: 1em;
border-radius: 0.375rem;
overflow-x: auto;
}
.prose code {
font-family: monospace;
}
</style>
<!-- Tailwind configuration to extend the default theme -->
<script>
document.addEventListener('DOMContentLoaded', () => {
window.tailwind.config = {
theme: {
extend: {
fontFamily: { sans: ['Inter', 'sans-serif'] }
}
}
}
});
</script>
</head>
<body class="bg-gradient-to-br from-blue-50 to-indigo-100 min-h-screen flex items-center justify-center p-4 font-sans">
<!-- Root div for React to mount the application -->
<div id="root"></div>
<!-- Main application script written in JSX, transpiled by Babel -->
<script type="text/babel" src="app.js"></script>
</body>
</html>