Skip to content

Commit 30b02e4

Browse files
committed
update to latest idyll components
1 parent 6258e48 commit 30b02e4

File tree

4 files changed

+2838
-2776
lines changed

4 files changed

+2838
-2776
lines changed

dist/idyll-embed.min.js

Lines changed: 29 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,18 @@
22
<html lang="en" dir="ltr">
33
<head>
44
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
5+
<style>
6+
html, body {
7+
padding: 0;
8+
margin: 0;
9+
}
10+
11+
.idyll-root {
12+
padding: 0 !important;
13+
}
14+
</style>
515
</head>
16+
617
<body>
718
<script src="dist/idyll-embed.min.js"></script>
819
<script>
@@ -12,9 +23,11 @@
1223

1324
// Get your markup.
1425
var idyllMarkup = `
15-
# Hello World
26+
[Header title:"Hello World" author:"Matthew Conlen" fullWidth:true /]
27+
28+
Normal paragraph text.
1629
17-
[div style:\`{width: '100%', background: '#ddd', height: 300}\` /]
30+
## Subheader
1831
1932
`;
2033

@@ -24,8 +37,10 @@
2437

2538
// Instantiate the Idyll runtime.
2639
Idyll.render(idyllMarkup, div, {
27-
theme: 'none',
28-
layout: 'none'
40+
theme: 'default',
41+
layout: 'centered',
42+
injectThemeCSS: true,
43+
injectLayoutCSS: true
2944
});
3045
</script>
3146
</body>

0 commit comments

Comments
 (0)