-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (39 loc) · 1.11 KB
/
index.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<style>
html, body {
padding: 0;
margin: 0;
}
.idyll-root {
padding: 0 !important;
}
</style>
</head>
<body>
<script src="dist/idyll-embed.min.js"></script>
<script>
// Create a new div where Idyll will inject content.
var div = document.createElement('div');
document.body.appendChild(div);
// Get your markup.
var idyllMarkup = `
[Header title:"Hello World" author:"Matthew Conlen" fullWidth:true /]
Normal paragraph text.
## Subheader
`;
// This will make all standard components available by default.
// To add additional components, register them.
// Idyll.registerComponent('ComponentName', Component);
// Instantiate the Idyll runtime.
Idyll.render(idyllMarkup, div, {
theme: 'default',
layout: 'centered',
injectThemeCSS: true,
injectLayoutCSS: true
});
</script>
</body>
</html>