Skip to content
Snippets Groups Projects

Resolve "Embed a Youtube video on the home page"

Merged Lukas Mauß requested to merge 287-embed-a-youtube-video-on-the-home-page into master
Viewing commit 8b8fc060
Show latest version
4 files
+ 82
6
Compare changes
  • Side-by-side
  • Inline
Files
4
<p>
demo-video works!
</p>
<div class="video" fxLayout="row" fxLayoutAlign="center">
<h2 [ngClass]="{'mobileText': deviceType === 'mobile', 'desktopText': deviceType === 'desktop'}">Demo Video</h2>
<iframe [ngClass]="{'mobileFrame': deviceType === 'mobile', 'desktopFrame': deviceType === 'desktop'}" src="https://www.youtube.com/embed/gq7LGp5HNIU?autoplay=1" frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<button [ngClass]="{'mobileButton': deviceType === 'mobile', 'desktopButton': deviceType === 'desktop'}" mat-raised-button (click)="closeDialog()">
<mat-icon >exit_to_app</mat-icon>
</button>
</div>