+
+
{{ dialogData.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/vripper-ui/src/app/gallery/gallery.component.scss b/vripper-ui/src/app/gallery/gallery.component.scss
new file mode 100644
index 0000000..db089e4
--- /dev/null
+++ b/vripper-ui/src/app/gallery/gallery.component.scss
@@ -0,0 +1,32 @@
+.container {
+ height: 100%;
+}
+
+.masonry {
+ display: flex;
+ flex-flow: row wrap;
+ margin-left: -8px;
+ width: 100%;
+}
+
+.masonry-brick {
+ flex: auto;
+ height: 250px;
+ min-width: 150px;
+ margin: 0 8px 8px 0;
+}
+
+img {
+ object-fit: cover;
+ height: 250px;
+ width: 250px;
+}
+
+figure {
+ // background-image: url('http://localhost:8080/image/56661996/001_0001.jpg');
+ // background-repeat: no-repeat;
+ // background-position: 50% 50%;
+ // background-size: 250px auto;
+ width: 250px;
+ height: 250px;
+}
diff --git a/vripper-ui/src/app/gallery/gallery.component.ts b/vripper-ui/src/app/gallery/gallery.component.ts
new file mode 100644
index 0000000..0fe5342
--- /dev/null
+++ b/vripper-ui/src/app/gallery/gallery.component.ts
@@ -0,0 +1,83 @@
+import { Component, OnInit, ChangeDetectionStrategy, Inject, NgZone, OnDestroy } from '@angular/core';
+import { HttpClient } from '@angular/common/http';
+import { MatDialogRef, MAT_DIALOG_DATA, MatSnackBar } from '@angular/material';
+import { ServerService } from '../server-service';
+import { PostState } from '../posts/post-state.model';
+import { Image, PlainGalleryConfig, PlainGalleryStrategy, AdvancedLayout } from '@ks89/angular-modal-gallery';
+import { ImageData } from '@ks89/angular-modal-gallery/lib/model/image.class';
+import { tap } from 'rxjs/operators';
+import { BehaviorSubject, Subject } from 'rxjs';
+
+@Component({
+ selector: 'app-gallery',
+ templateUrl: './gallery.component.html',
+ styleUrls: ['./gallery.component.scss'],
+ changeDetection: ChangeDetectionStrategy.OnPush
+})
+export class GalleryComponent implements OnInit, OnDestroy {
+ constructor(
+ public dialogRef: MatDialogRef