I'm currently working on implementing an image modal, but I've run into several issues.
My goal is to have the first image fill the entire large box (class drop), with the rest displayed below it, as illustrated in the image.
I've experimented with various solutions, but I'm struggling to display only a single image from the array, such as showing only the first one :(
Is there a way to achieve this setup?
Thank you!
Access My StackBlitz
HTML
<div class="drop">
<div class="abc">
<!-- Display 1 image here -->
<section>
<ks-modal-gallery [id]="3" [modalImages]="imagesMixedSizes"></ks-modal-gallery>
</section>
</div>
</div>
<div class="row">
<div class="Upcard">
<!-- Display 2, 3, 4, 5 images here !!! -->
</div>
</div>
Component.ts
imagesMixedSizes: Image[] = [
new Image(0, {
// modal
img: 'https://raw.githubusercontent.com/Ks89/angular-modal-gallery/master/examples/systemjs/assets/images/gallery/pexels-photo-135230.png',
}),
new Image(1, {
// modal
img: 'https://raw.githubusercontent.com/Ks89/angular-modal-gallery/master/examples/systemjs/assets/images/gallery/pexels-photo-547115.jpeg'
})]
Image Problem/Explanation