-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
145 lines (127 loc) · 3.33 KB
/
Copy pathindex.html
File metadata and controls
145 lines (127 loc) · 3.33 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
138
139
140
141
142
143
144
145
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MapLibre GL PostgreSQL - Examples</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #f3f5f7;
min-height: 100vh;
padding: 40px 20px;
}
.container {
max-width: 800px;
margin: 0 auto;
}
h1 {
color: #132238;
text-align: center;
margin-bottom: 10px;
font-size: 2.5rem;
}
.subtitle {
color: #465568;
text-align: center;
margin-bottom: 40px;
font-size: 1.1rem;
}
.examples-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.example-card {
background: white;
border: 1px solid #d9e0e7;
border-radius: 8px;
padding: 24px;
box-shadow: 0 10px 26px rgba(19, 34, 56, 0.08);
transition: transform 0.2s, box-shadow 0.2s;
text-decoration: none;
color: inherit;
display: block;
}
.example-card:hover {
transform: translateY(-4px);
box-shadow: 0 15px 36px rgba(19, 34, 56, 0.12);
}
.example-card h2 {
color: #333;
margin-bottom: 8px;
font-size: 1.3rem;
}
.example-card p {
color: #666;
font-size: 0.95rem;
line-height: 1.5;
margin-bottom: 16px;
}
.example-card .tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.tag {
background: #f0f0f0;
color: #555;
padding: 4px 10px;
border-radius: 4px;
font-size: 0.8rem;
font-weight: 500;
}
.tag.vanilla { background: #fff3e0; color: #ef6c00; }
.tag.react { background: #e1f5fe; color: #0277bd; }
.tag.typescript { background: #e3f2fd; color: #1565c0; }
.footer {
text-align: center;
margin-top: 40px;
color: #465568;
}
.footer a {
color: #1f6f8b;
text-decoration: none;
font-weight: 500;
}
.footer a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="container">
<h1>MapLibre GL PostgreSQL</h1>
<p class="subtitle">Query and visualize geospatial PostgreSQL data through a DuckDB-backed API.</p>
<div class="examples-grid">
<a href="./examples/basic/index.html" class="example-card">
<h2>Basic Example</h2>
<p>Vanilla TypeScript example with the PostgreSQL source selector and query panel.</p>
<div class="tags">
<span class="tag vanilla">Vanilla JS</span>
<span class="tag typescript">TypeScript</span>
</div>
</a>
<a href="./examples/react/index.html" class="example-card">
<h2>React Example</h2>
<p>React example using the wrapper component and state hook.</p>
<div class="tags">
<span class="tag react">React</span>
<span class="tag typescript">TypeScript</span>
</div>
</a>
</div>
<div class="footer">
<p>
<a href="https://github.com/opengeos/maplibre-gl-postgresql">GitHub</a> ·
<a href="https://www.npmjs.com/package/maplibre-gl-postgresql">npm</a>
</p>
</div>
</div>
</body>
</html>