File size: 7,417 Bytes
2f81283
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
191
blockManager.add('linkpreview-navbar', {
	category: categories.mylinkpreview,
	attributes: {
		title: 'Insert navbar'
	},
	label:
	`
		<div>
			<div class="uk-text-normal uk-text-bold">Navbar</div>
		</div>
	`,
	content:
	`
		<div class="uk-width-1-1 uk-box-shadow-small uk-sticky">
			<div class="uk-padding-remove">
				<div>
					<nav class="uk-navbar-container uk-height-auto uk-navbar" uk-navbar="mode: click">
						<div class="nav-overlay uk-navbar-left uk-width-expand">
							<ul class="uk-navbar-nav">
								<li>
									<a href="https://mylinkpreview.com/home">
										<span>MyLinkPreview</span>
									</a>
								</li>
								<li>
									<a href="https://mylinkpreview.com/#demo-preview" class="uk-text-capitalize">Demo</a>
								</li>
								<li>
									<a href="https://mylinkpreview.com/auth/register" class="uk-text-capitalize">Get API Key</a>
								</li>
								<li>
									<a href="https://mylinkpreview.com/documentation/api" class="uk-text-capitalize">Documentaion</a>
								</li>
								<li>
									<a href="https://mylinkpreview.com/#pricing-table" class="uk-text-capitalize">Pricing</a>
								</li>
							</ul>
						</div>
						<div class="nav-overlay uk-navbar-right">
							<ul class="uk-navbar-nav">
								<li class="uk-text-small">
									<a class="uk-text-capitalize" href="https://mylinkpreview.com/auth/login">My Dashboard <span uk-icon="icon: arrow-right; ratio: 0.72" class="uk-icon"></span></a>
								</li>
							</ul>
						</div>
					</nav>
				</div>
			</div>
		</div>
	`,
	render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
});

blockManager.add('linkpreview-middle-banner', {
		category: categories.mylinkpreview,
	attributes: {
		title: 'Insert middle banner'
	},
	label:
	`
		<div>
			<div class="uk-text-normal uk-text-bold">Middle Banner</div>
		</div>
	`,
	content:
	`
	    <div class="uk-width-1-1">
	        <div class="uk-height-auto">
	            <div>
	                <div class="uk-width-xlarge uk-width-auto uk-padding-large uk-align-center uk-text-center">
	                    <h1>API for link previews</h1>
	                    <h5 class="uk-width-xlarge uk-align-center">Preview links with our REST API. We provide both raw JSON data, along with full embedding link preview capability.</h5>
	                    <div class="uk-margin">
	                        <a class="uk-button uk-button-default uk-visible" href="https://mylinkpreview.com/documentation/api">Documentation</a>
	                        <a class="uk-button uk-button-primary" href="https://mylinkpreview.com/auth/register">Get API Key</a>
	                    </div>
	                </div>
	            </div>
	        </div>
	    </div>
	`,
	render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
});

blockManager.add('linkpreview-col-1-2', {
		category: categories.mylinkpreview,
	attributes: {
		title: 'Insert columns 1-2'
	},
	label:
	`
		<div>
			<div class="uk-text-normal uk-text-bold">Column 1-2</div>
		</div>
	`,
	content:
	`
		<div class="uk-height-auto uk-padding-large">
		    <div class="uk-child-width-expand uk-flex uk-flex-middle uk-grid">
		        <div class="uk-text-left uk-first-column">
		            <h3 class="uk-margin-small-top">Request an API key</h3>
		            <p>
		                Simply click "Get API Key" to make requests to our api. To read more, see our <a href="https://mylinkpreview.com/documentation/api">Documentation</a> for use of the api key.
		            </p>
		        </div>
		        <div>
		            <div class="uk-card uk-card-default uk-scrollspy-inview uk-animation-fade" style="border: 1px solid rgb(229, 229, 229);">
		                <div class="uk-container uk-padding-remove">
		                    <div>
		                        <nav class="uk-navbar-container uk-navbar" uk-navbar="">
		                            <div class="uk-navbar-left">
		                                <ul class="uk-navbar-nav">
		                                    <li>
		                                        <a>
		                                            <span>MyLinkPreview</span>
		                                        </a>
		                                    </li>
		                                    <li>
		                                        <a class="uk-text-small" href="https://mylinkpreview.com/#">Demo</a>
		                                    </li>
		                                    <li class="uk-active">
		                                        <a class="uk-text-small" href="https://mylinkpreview.com/auth/register">Get API Key</a>
		                                    </li>
		                                    <li>
		                                        <a>
		                                            <span uk-icon="more" class="uk-icon"></span>
		                                        </a>
		                                    </li>
		                                </ul>
		                            </div>
		                        </nav>
		                    </div>
		                </div>
		            </div>
		        </div>
		    </div>
		</div>
	`,
	render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
});

blockManager.add('linkpreview-features', {
		category: categories.mylinkpreview,
	attributes: {
		title: 'Insert features'
	},
	label:
	`
		<div>
			<div class="uk-text-normal uk-text-bold">Features</div>
		</div>
	`,
	content:
	`
	    <div class="uk-padding-large uk-box-shadow-small">
		    <div class="uk-text-center uk-width-xlarge uk-align-center">
		        <p>Major features we provide with our service.</p>
		    </div>
		    <div class="uk-grid-divider uk-padding-small uk-text-center uk-grid-small uk-grid-match uk-child-width-1-3 uk-grid">
		        <div class="uk-first-column uk-scrollspy-inview uk-animation-fade" style="">
		            <h4 class="uk-margin-remove">Image</h4>
		            <span>Thumbnail image from the url</span>
		        </div>
		        <div class="uk-scrollspy-inview uk-animation-fade" style="">
		            <h4 class="uk-margin-remove">Favicon</h4>
		            <span>Website's favicon</span>
		        </div>
		        <div class="uk-scrollspy-inview uk-animation-fade" style="">
		            <h4 class="uk-margin-remove">Embedding</h4>
		            <span>Responsive link preview on your wesbsite</span>
		        </div>
		    </div>
		    <hr>
		    <div class="uk-grid-divider uk-padding-small uk-text-center uk-grid-small uk-grid-match uk-child-width-1-3 uk-grid" uk-grid="">
		        <div class="uk-first-column uk-scrollspy-inview uk-animation-fade" style="">
		            <h4 class="uk-margin-remove">Title</h4>
		            <span>Obtain page title</span>
		        </div>
		        <div class="uk-scrollspy-inview uk-animation-fade" style="">
		            <h4 class="uk-margin-remove">Description</h4>
		            <span>Obtain page description</span>
		        </div>
		        <div class="uk-scrollspy-inview uk-animation-fade" style="">
		            <h4 class="uk-margin-remove">Is Safe <span class="uk-label">Beta</span></h4>
		            <span>URL risk checker</span>
		        </div>
		    </div>
		</div>
	`,
	render: ({ model, className }) => `<div class="${className}__my-wrap"> ${model.get('label')} </div>`,
});