-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
74 lines (73 loc) · 2.51 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Icon Picker Demo</title>
<link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet"/>
<script src="https://unpkg.com/grapesjs"></script>
<script src="/index.js"></script>
<style>
body, html {
height: 100%;
margin: 0;
}
</style>
</head>
<body>
<div id="gjs" style="height:0px; overflow:hidden;">
<div style="display: flex; justify-content: space-around; font-family: Tahoma, Geneva, sans-serif;">
<div style="display: flex;flex-direction: column; align-items: center;">
<h2>Outlined</h2>
<span
data-gjs-highlightable="true"
data-gjs-type="materialIcons"
draggable="true"
class="material-icons material-symbols-outlined"
style="font-variation-settings: 'FILL' var(--fill), 'wght' var(--weight), 'GRAD' var(--grade), 'opsz' var(--opticalsize); font-size: 48px;"
>
home
</span>
</div>
<div style="display: flex;flex-direction: column; align-items: center;">
<h2>Rounded</h2>
<span
data-gjs-highlightable="true"
data-gjs-type="materialIcons"
draggable="true"
class="material-icons material-symbols-rounded"
style="font-variation-settings: 'FILL' var(--fill), 'wght' var(--weight), 'GRAD' var(--grade), 'opsz' var(--opticalsize); font-size: 48px;"
>
home
</span>
</div>
<div style="display: flex;flex-direction: column; align-items: center;">
<h2>Sharp</h2>
<span
data-gjs-highlightable="true"
data-gjs-type="materialIcons"
draggable="true"
class="material-icons material-symbols-sharp"
style="font-variation-settings: 'FILL' var(--fill), 'wght' var(--weight), 'GRAD' var(--grade), 'opsz' var(--opticalsize); font-size: 48px;"
>
home
</span>
</div>
</div>
</div>
<script type="text/javascript">
setTimeout(() => {
window.editor = grapesjs.init({
height: '100%',
noticeOnUnload: false,
storageManager: false,
container : '#gjs',
fromElement: true,
plugins: ['gjs-google-material-icons'],
pluginsOpts: {
'gjs-google-material-icons': {}
},
});
});
</script>
</body>
</html>