-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
190 lines (182 loc) · 7.01 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
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="
./dist/css/align.css">
<link rel="stylesheet" href="
./dist/css/default-theme.css">
<link href="https://fonts.googleapis.com/css?family=Poppins|Raleway|Roboto" rel="stylesheet">
<link rel="stylesheet" href="https://unpkg.com/prismjs/themes/prism-tomorrow.css">
<title>Align</title>
</head>
<body>
<style lang="">
body {
margin: 0;
}
</style>
<div class="align" id="align1">
<div class="align-section custom">
<h2 style="text-align: center;">I was born in
<span style="background-color: rgb(0, 0, 0);">
<span style="color: rgb(255, 255, 255);"> </span>
<a href="https://github.com/baianat" style="color: rgb(252, 251, 251);">Baianat</a>
</span>.
</h2>
</div>
<div class="align-section has-bgImage is-full has-bgVideo" style="padding-top: 100px; padding-bottom: 100px;">
<div class="align-bgVideo">
<video autoplay="" muted="" loop="">
<source src="https://media.giphy.com/media/BHNfhgU63qrks/giphy.mp4">
</video>
</div>
<div class="align-bgColor" style="background-color: rgba(0, 0, 0, 0.4);"></div>
<p>
<span style="color: rgb(255, 255, 255);">
<font size="5">Our innovative solutions transcend business excellency to influence societies, through authentic, culture-changing
standards.</font>
</span>
</p>
<p>
<span style="color: rgb(255, 255, 255);">
<font size="5">We are a brand-driven foundation agency, crafting unique brands.</font>
</span>
</p>
</div>
<div class="align-section">
<h3>Why should you use it?</h3>
<ul>
<li>Built using vanilla ES6</li>
<li>Customizable using an array of settings</li>
<li>Built-in, fully-integrated colorpicker</li>
<li>The ability to add more custom commands</li>
</ul>
</div>
<div class="align-section">
<h3>Tables friendly</h3>
<table class="align-table">
<tbody>
<tr>
<td>Awesome header</td>
<td>Awesome header</td>
</tr>
<tr>
<td>Awesome content</td>
<td>Awesome content</td>
</tr>
<tr>
<td>Awesome content</td>
<td>Awesome content</td>
</tr>
</tbody>
</table>
</div>
<div class="align-section">
<h3>Integrated Code Editor</h3>
<div class="align-codeEditor">
<pre class="align-codeEditor-pre language-javascript">
<code class="align-codeEditor-code">
let myEditor = new Align('#align1', {
postTitle: 'Hello there, I\'m Align',
toolbar: {
tooltip: true,
theme: 'light',
shortcuts: true,
commands: [
{'fontSize': [false, 1, 2, 3, 4, 5, 6, 7]},
{'fontName': ['Poppins', 'Raleway', 'Roboto']},
'separator',
'bold', 'italic', 'underline', 'strikeThrough',
'separator',
'orderedList', 'unorderedList', 'indent', 'outdent',
'superscript', 'subscript',
'separator',
'color', 'backColor',
]
}
});
</code>
</pre>
</div>
</div>
<div class="align-section is-full has-bgImage has-bgColor" style="padding-top: 100px; padding-bottom: 100px;">
<div class="align-bgImage is-parallax" style="background-image: url(https://source.unsplash.com/2000x1000);"></div>
<div class="align-bgColor" style="background-color: rgba(0, 0, 0, 0.8);"></div>
<p style="text-align: justify;"><span style="color: rgb(255, 255, 255);">Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature
from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia,
looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of
the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33
of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise
on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..",
comes from a line in section 1.10.32.</span></p>
</div>
<div class="align-section">
<p style="text-align: justify;">The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33
from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English
versions from the 1914 translation by H. Rackham.</p>
</div>"
<div class="align-section">
<figure contenteditable="false" class="align-figure is-center is-active">
<img src="https://source.unsplash.com/random" class="align-image" alt="Awesome image">
</figure>
</div>"
</div>
<script src="
./dist/js/align.js"></script>
<script>
let myEditor = new Align('#align1', {
toolbar: {
tooltip: true,
theme: 'light',
shortcuts: true,
commands: [
{'fontSize': [false, 1, 2, 3, 4, 5, 6, 7]},
{'fontName': ['Poppins', 'Raleway', 'Roboto']},
'separator',
'bold', 'italic', 'underline', 'strikeThrough',
'separator',
'justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull',
'separator',
'h2', 'h3', 'h4', 'p', 'blockquote', 'pre', 'addLink',
'separator',
'orderedList', 'unorderedList', 'indent', 'outdent',
'superscript', 'subscript',
'separator',
'color', 'backColor',
'separator',
'selectContent', 'removeFormat', 'undo', 'redo', 'fullscreen',
'separator',
'separator',
'sidebar'
]
},
bubble: {
theme: 'light',
commands: [
'bold', 'italic', 'underline', 'strikeThrough',
'separator',
'justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull',
]
},
creator: {
theme: 'light',
commands: [
'addTable', 'addSeparator', 'createFigure', 'addGrid', 'youtube', 'vimeo', 'facebook', 'addEmbed', 'addGallery', 'addLine'
]
},
});
myEditor.$bus.on('imageAdded', ({ file, update }) => {
console.log({ file, update });
});
myEditor.$bus.on('sectionChanged', ({ from, to }) => {
console.log({ from, to });
});
myEditor.$bus.on('changed', () => {
console.log('changed');
})
</script>
</body>
</html>