-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.html
61 lines (55 loc) · 1.77 KB
/
example.html
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Demo: Astra Bundled</title>
<!-- include 'Inter' via Google Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter:400,500,600,700&display=swap" />
<link href="https://fonts.googleapis.com/css2?family=Space+Mono&display=swap" rel="stylesheet" />
<!-- customize the page's styling -->
<style>
body,
html {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
overscroll-behavior: none;
}
hr {
color: lime;
margin: 1rem 0;
}
@media (prefers-color-scheme: dark) {
body {
--background-color: black;
--text-color: white;
background-color: var(--background-color);
color: var(--text-color);
}
}
@media (prefers-color-scheme: light) {
body {
--background-color: white;
--text-color: black;
background-color: var(--background-color);
color: var(--text-color);
}
}
</style>
<!-- load Astra components -->
<!-- <script src="https://jd-astra-v0-8-8.cdn-c17.pages.dev/astra/latest/index.js"></script> -->
<script src="./dist/web-components/astra.js"></script>
</head>
<body>
<!-- chart-id needs to be inside of Workspace `-est` because variables.ts names that workspace via `PLACEHOLDER_WORKSPACE_ID` -->
<!-- api-key works with a Dashboard auth token -->
<astra-composed-chart
api-key="[redacted]"
header="My Favorite Chart"
subheader="Don't tell the others"
chart-id="3a13754e-d98f-49f6-905f-ee921dd396ba"
/>
</body>
</html>