35
35
.grid-stack-item {
36
36
border : 0 ;
37
37
}
38
-
39
- # demo h1 ,
40
- # getStarted h1 {
41
- font-size : 3rem ;
38
+ h1 {
39
+ text-align : center;
40
+ font-size : 3rem ;
41
+ margin-top : 2rem ;
42
+ margin-bottom : 1.5rem ;
42
43
}
43
-
44
44
.card {
45
45
background : none;
46
46
}
47
-
48
47
section {
49
48
padding : 0 15px 0 15px ;
50
49
}
51
-
52
50
.grid-stack-item-removing {
53
51
opacity : 0.8 ;
54
52
filter : blur (5px );
61
59
.logo {
62
60
display : inline;
63
61
margin-right : 15px ;
64
- }
62
+ }
63
+ # trash {
64
+ background-color : # cc6857 ;
65
+ }
66
+ .newWidget {
67
+ background-color : # 6cad84 ;
68
+ }
65
69
</ style >
66
70
</ head >
67
71
110
114
> Examples</ a
111
115
>
112
116
< div class ="dropdown-menu " aria-labelledby ="moreExamples ">
113
- < a
114
- class ="dropdown-item "
115
- target ="_blank "
116
- href ="demo/serialization.html "
117
- > Save and restore layout</ a
118
- >
119
- < a class ="dropdown-item " href ="demo/nested.html " target ="_blank "
120
- > Nested grids</ a
121
- >
122
- < a class ="dropdown-item " href ="demo/two.html " target ="_blank "
123
- > Drag widgets between two grids</ a
124
- >
125
- < a class ="dropdown-item " target ="_blank " href ="demo/anijs.html "
126
- > Animate widgets</ a
127
- >
117
+ < a class ="dropdown-item " href ="demo/serialization.html " target ="_blank " > Save and restore layout</ a >
118
+ < a class ="dropdown-item " href ="demo/two.html " target ="_blank "> Drag widgets between two grids</ a >
119
+ < a class ="dropdown-item " href ="demo/nested.html " target ="_blank "> Nested grids</ a >
120
+ < a class ="dropdown-item " href ="demo/responsive.html " target ="_blank "> Responsive layout</ a >
121
+ < a class ="dropdown-item " href ="demo/anijs.html " target ="_blank "> Animate widgets</ a >
122
+ < a class ="dropdown-item " href ="demo/index.html " target ="_blank "> more...</ a >
128
123
</ div >
129
124
</ li >
130
125
< li class ="nav-item ">
170
165
< div class ="row bg-dark " id ="hero ">
171
166
< div class ="col-lg-12 ">
172
167
< div class ="jumbotron bg-dark text-white " style ="margin-bottom: 0; ">
173
- < h1 class ="display-3 text-center "> gridstack.js</ h1 >
168
+ < h1 class ="display-3 "> gridstack.js</ h1 >
174
169
< p class ="lead text-center ">
175
170
Build interactive dashboards in minutes.
176
171
</ p >
177
172
< hr class ="my-4 " />
178
173
< p >
179
174
gridstack.js is a JS library designed to help developers create
180
175
beautiful draggable, resizable, responsive bootstrap-friendly
181
- layouts with just a few lines of code. gridstack.js can even be
182
- used to create more advanced grids: allow users to persist
183
- changes, create a sidebar of widgets to drag into your grid, and
184
- much, much more.
176
+ layouts with just a few lines of code.< br >
177
+ You can create more advanced grids: allow users to persist
178
+ changes, create a sidebar of widgets to drag into your grid, and
179
+ much, much more.< br > < br >
180
+ Features:
185
181
</ p >
182
+ < ul >
183
+ < li > pure JS can be used in any UI framework</ li >
184
+ < li > mobile support</ li >
185
+ < li > draggable, resizable items</ li >
186
+ < li > drag'n'drop from sidebar to insert/delete</ li >
187
+ < li > responsive layouts</ li >
188
+ < li > save/restore</ li >
189
+ < li > drag between multiple grids</ li >
190
+ < li > nested grids</ li >
191
+ < li > plugin support for drag'n'drop (JQUI, with more to come...)</ li >
192
+ < li > bootstrap-v4-friendly. external Angular, React, Knockout.js and more bindings</ li >
193
+ </ ul >
186
194
</ div >
187
195
</ div >
188
196
</ div >
@@ -196,12 +204,7 @@ <h1 class="display-3 text-center">gridstack.js</h1>
196
204
name ="grid "
197
205
style ="font-size: 350%; margin-top: 10px "
198
206
> </ ion-icon >
199
- < h1
200
- class ="text-center "
201
- style ="margin-top: 2rem; margin-bottom: 1.5rem; "
202
- >
203
- Basic Demo
204
- </ h1 >
207
+ < h1 > Basic Demo</ h1 >
205
208
< hr />
206
209
</ div >
207
210
</ div >
@@ -356,12 +359,7 @@ <h1 class="display-3 text-center">gridstack.js</h1>
356
359
class ="float-right "
357
360
style ="font-size: 350% "
358
361
> </ ion-icon >
359
- < h1
360
- class ="text-center "
361
- style ="margin-top: 2rem; margin-bottom: 1.5rem; "
362
- >
363
- Getting Started
364
- </ h1 >
362
+ < h1 > Getting Started</ h1 >
365
363
< p >
366
364
Create your first interactive grid by copy-pasting the HTML+JS, as seen below...
367
365
</ p >
@@ -406,12 +404,7 @@ <h3>Code</h3>
406
404
name ="grid "
407
405
style ="font-size: 350%; margin-top: 10px "
408
406
> </ ion-icon >
409
- < h1
410
- class ="text-center "
411
- style ="margin-top: 2rem; margin-bottom: 1.5rem; "
412
- >
413
- Advanced Demo
414
- </ h1 >
407
+ < h1 > Advanced Demo</ h1 >
415
408
< hr />
416
409
</ div >
417
410
</ div >
@@ -423,7 +416,7 @@ <h3>Code</h3>
423
416
< div
424
417
id ="trash "
425
418
style ="padding: 15px; margin-bottom: 15px; "
426
- class ="text-center bg-danger text-white "
419
+ class ="text-center text-white "
427
420
>
428
421
< div >
429
422
< ion-icon name ="trash " style ="font-size: 400% "> </ ion-icon >
@@ -435,7 +428,7 @@ <h3>Code</h3>
435
428
< div
436
429
class ="text-center card text-white newWidget grid-stack-item "
437
430
>
438
- < div class ="card-body bg-success grid-stack-item-content ">
431
+ < div class ="card-body grid-stack-item-content ">
439
432
< div >
440
433
< ion-icon
441
434
name ="add-circle "
@@ -609,13 +602,15 @@ <h3>Code</h3>
609
602
name ="desktop "
610
603
class ="float-right "
611
604
style ="font-size: 350% "
612
- > </ ion-icon >
613
- < h1
614
- class ="text-center "
615
- style ="margin-top: 2rem; margin-bottom: 1.5rem; "
616
- >
617
- Used by
618
- </ h1 >
605
+ > </ ion-icon >
606
+
607
+ < h1 > Why use it</ h1 >
608
+ < hr />
609
+ < ul >
610
+ < li > < a href ="https://www.npmjs.com/package/gridstack " target ="_blank "> npm downloads</ a > </ li >
611
+ < li > < a href ="https://www.formget.com/jquery-layout-plugins/ " target ="_blank "> 6 Best jQuery Layout Plugins 2019</ a > </ li >
612
+ </ ul >
613
+ < h1 > Used by</ h1 >
619
614
< hr />
620
615
< div >
621
616
< div class ="logo ">
0 commit comments