@@ -19,6 +19,7 @@ import Group from '@components/Group/Group.astro'
19
19
import Icon from ' @components/Icon/Icon.astro'
20
20
import Input from ' @components/Input/Input.astro'
21
21
import List from ' @components/List/List.astro'
22
+ import Masonry from ' @components/Masonry/Masonry.astro'
22
23
import Menu from ' @components/Menu/Menu.astro'
23
24
import Pagination from ' @components/Pagination/Pagination.astro'
24
25
import Progress from ' @components/Progress/Progress.astro'
@@ -44,6 +45,7 @@ import {
44
45
avatarGroup ,
45
46
avatarGroupAlt2 ,
46
47
listPreview ,
48
+ masonryItems ,
47
49
themes
48
50
} from ' @data'
49
51
@@ -143,6 +145,7 @@ const tabItems = [{
143
145
' Name'
144
146
]}
145
147
data ={ [[' 1' , ' John Doe' ]]}
148
+ className =" data-table"
146
149
/>
147
150
</CardWrapper >
148
151
<CardWrapper title =" Footer" href =" /footer" >
@@ -193,6 +196,9 @@ const tabItems = [{
193
196
searchBarPlaceholder =" Search items..."
194
197
/>
195
198
</CardWrapper >
199
+ <CardWrapper title =" Masonry" href =" /masonry" >
200
+ <Masonry items ={ masonryItems } className =" masonry" />
201
+ </CardWrapper >
196
202
<CardWrapper title =" Menu" href =" /menu" >
197
203
<Menu className =" menu-example" >
198
204
<Fragment set:html ={ logo } />
@@ -276,6 +282,8 @@ const tabItems = [{
276
282
</Layout >
277
283
278
284
<style is:global lang =" scss" >
285
+ @import '../scss/config.scss';
286
+
279
287
h2.my {
280
288
margin-top: 100px;
281
289
}
@@ -316,7 +324,9 @@ const tabItems = [{
316
324
}
317
325
318
326
.carousel-example {
319
- width: 100%;
327
+ @include position(absolute);
328
+ @include spacing(p-md);
329
+ @include size('w100%');
320
330
}
321
331
322
332
.menu-example {
@@ -327,4 +337,15 @@ const tabItems = [{
327
337
margin: 20px 0;
328
338
justify-content: center;
329
339
}
340
+
341
+ .masonry {
342
+ @include position(absolute);
343
+
344
+ transform: scale(0.75);
345
+ }
346
+
347
+ .data-table {
348
+ @include position(absolute);
349
+ @include spacing(p-default);
350
+ }
330
351
</style >
0 commit comments