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
176
+ layouts with just a few lines of code.< br >
177
+ You can create more advanced grids: allow users to persist
183
178
changes, create a sidebar of widgets to drag into your grid, and
184
- much, much more.
185
- </ p >
179
+ much, much more.< br > < br >
180
+ Features:
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&drop from sidebar</ 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 > bootstrap-v4-friendly. external Angular, React, Knockout.js and more bindings</ li >
192
+ </ ul >
186
193
</ div >
187
194
</ div >
188
195
</ div >
@@ -196,12 +203,7 @@ <h1 class="display-3 text-center">gridstack.js</h1>
196
203
name ="grid "
197
204
style ="font-size: 350%; margin-top: 10px "
198
205
> </ ion-icon >
199
- < h1
200
- class ="text-center "
201
- style ="margin-top: 2rem; margin-bottom: 1.5rem; "
202
- >
203
- Basic Demo
204
- </ h1 >
206
+ < h1 > Basic Demo</ h1 >
205
207
< hr />
206
208
</ div >
207
209
</ div >
@@ -356,12 +358,7 @@ <h1 class="display-3 text-center">gridstack.js</h1>
356
358
class ="float-right "
357
359
style ="font-size: 350% "
358
360
> </ ion-icon >
359
- < h1
360
- class ="text-center "
361
- style ="margin-top: 2rem; margin-bottom: 1.5rem; "
362
- >
363
- Getting Started
364
- </ h1 >
361
+ < h1 > Getting Started</ h1 >
365
362
< p >
366
363
Create your first interactive grid by copy-pasting the HTML+JS, as seen below...
367
364
</ p >
@@ -406,12 +403,7 @@ <h3>Code</h3>
406
403
name ="grid "
407
404
style ="font-size: 350%; margin-top: 10px "
408
405
> </ ion-icon >
409
- < h1
410
- class ="text-center "
411
- style ="margin-top: 2rem; margin-bottom: 1.5rem; "
412
- >
413
- Advanced Demo
414
- </ h1 >
406
+ < h1 > Advanced Demo</ h1 >
415
407
< hr />
416
408
</ div >
417
409
</ div >
@@ -423,7 +415,7 @@ <h3>Code</h3>
423
415
< div
424
416
id ="trash "
425
417
style ="padding: 15px; margin-bottom: 15px; "
426
- class ="text-center bg-danger text-white "
418
+ class ="text-center text-white "
427
419
>
428
420
< div >
429
421
< ion-icon name ="trash " style ="font-size: 400% "> </ ion-icon >
@@ -435,7 +427,7 @@ <h3>Code</h3>
435
427
< div
436
428
class ="text-center card text-white newWidget grid-stack-item "
437
429
>
438
- < div class ="card-body bg-success grid-stack-item-content ">
430
+ < div class ="card-body grid-stack-item-content ">
439
431
< div >
440
432
< ion-icon
441
433
name ="add-circle "
@@ -609,13 +601,15 @@ <h3>Code</h3>
609
601
name ="desktop "
610
602
class ="float-right "
611
603
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 >
604
+ > </ ion-icon >
605
+
606
+ < h1 > Why use it</ h1 >
607
+ < hr />
608
+ < ul >
609
+ < li > < a href ="https://www.npmjs.com/package/gridstack " target ="_blank "> npm downloads</ a > </ li >
610
+ < li > < a href ="https://www.formget.com/jquery-layout-plugins/ " target ="_blank "> 6 Best jQuery Layout Plugins 2019</ a > </ li >
611
+ </ ul >
612
+ < h1 > Used by</ h1 >
619
613
< hr />
620
614
< div >
621
615
< div class ="logo ">
0 commit comments