Skip to content

Commit f486b4f

Browse files
committed
update media gallery
1 parent 5f5fe27 commit f486b4f

File tree

10 files changed

+66
-8
lines changed

10 files changed

+66
-8
lines changed

src/app/private/about/about.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<div class="container">
22
<div class="row">
3-
<h2>About Us</h2>
3+
<h2>Data Charts</h2>
4+
<hr>
45
<div class="col-md-12">
56

67
</div>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
.thumbImage{
4+
width: 200px;
5+
height: 200px;
6+
margin-bottom: 15%;
7+
}
8+
9+
.videoItem{
10+
width: 200px;
11+
height: 200px;
12+
margin-bottom: 5%;
13+
}
Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
1-
<div class="container">
1+
<div id="mediaGallery" class="container">
22
<div class="row">
3-
<h2>Gallery</h2>
3+
<h2> Image Gallery</h2>
4+
<hr>
45
<div class="col-md-12">
5-
<div [innerHtml]="iframe_html"></div>
6+
<div class="col-md-3" *ngFor="let i of urls">
7+
<img [src]="i" class="thumbImage">
8+
</div>
69
</div>
710
</div>
11+
<hr>
12+
<div class="row">
13+
<h2> Video Gallery</h2>
14+
<hr>
15+
<div class="col-md-12">
16+
<div class="col-md-4" *ngFor="let f of iframes">
17+
<div [innerHtml]="f" class="videoItem"></div>
18+
</div>
19+
<!-- <div [innerHtml]="iframe_html"></div> -->
20+
</div>
21+
</div>
22+
23+
824
</div>

src/app/private/gallery/gallery.component.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ export class GalleryComponent implements OnInit {
1010
public iframe_html:any;
1111
public vimeoUrl = "https://vimeo.com/197933516";
1212
public images:any;
13+
public urls:string[] = [];
14+
public videoUrls:string[] = [];
15+
public iframes:any;
16+
1317
constructor(
1418
private embedService: EmbedVideoService
1519
) {
@@ -31,6 +35,30 @@ export class GalleryComponent implements OnInit {
3135
url:'../../assets/images/3.png',
3236
},
3337
]
38+
39+
this.urls = [
40+
"../../assets/images/1.jpg",
41+
"../../assets/images/2.jpg",
42+
"../../assets/images/3.jpg",
43+
"../../assets/images/1.jpg",
44+
"../../assets/images/2.jpg",
45+
"../../assets/images/3.jpg"
46+
];
47+
48+
this.videoUrls = [
49+
"https://www.youtube.com/watch?v=HgBFtoiEsh4",
50+
"https://vimeo.com/197933516",
51+
"https://www.youtube.com/watch?v=kstz-XYdas0",
52+
"https://www.youtube.com/watch?v=HgBFtoiEsh4",
53+
"https://vimeo.com/197933516",
54+
"https://www.youtube.com/watch?v=kstz-XYdas0"
55+
];
56+
57+
this.iframes = [];
58+
59+
this.videoUrls.forEach( (item) =>{
60+
this.iframes.push(this.embedService.embed(item));
61+
});
3462

3563
}
3664

src/app/private/header/header.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ <h2><i class="fas fa-home"></i> Admin Panel</h2>
2929
<div class="collapse navbar-collapse" id="myNavbar">
3030
<ul class="nav navbar-nav">
3131
<li [routerLinkActive]="['active']" [routerLink]="['/user/home']">
32-
<a>Home</a>
32+
<a>Data Grid</a>
3333
</li>
3434
<li [routerLinkActive]="['active']" [routerLink]="['/user/demo-charts']">
3535
<a>Charts</a>
3636
</li>
3737
<li [routerLinkActive]="['active']" [routerLink]="['/user/about']">
38-
<a>About</a>
38+
<a>Data Charts</a>
3939
</li>
40-
<li>
41-
<a [routerLinkActive]="['active']" [routerLink]="['/user/gallery']">Gallery</a>
40+
<li [routerLinkActive]="['active']" [routerLink]="['/user/gallery']">
41+
<a>Media Gallery</a>
4242
</li>
4343
<li>
4444
<a href="javascript:;">Contact</a>

src/assets/images/1.jpg

34.3 KB
Loading

src/assets/images/1.png

-268 KB
Binary file not shown.

src/assets/images/2.jpg

-65 KB
Loading

src/assets/images/3.jpg

26.7 KB
Loading

src/assets/images/3.png

-182 KB
Binary file not shown.

0 commit comments

Comments
 (0)