-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19bdbec
commit 939e256
Showing
4 changed files
with
60 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { LinkTo } from '@ember/routing'; | ||
|
||
function href(youtubeID) { | ||
return `https://www.youtube.com/watch?v=${youtubeID}`; | ||
} | ||
|
||
function thumbnail(youtubeID) { | ||
return `https://img.youtube.com/vi/${youtubeID}/maxresdefault.jpg`; | ||
} | ||
|
||
<template> | ||
<div class="youtube-link"> | ||
<a target="_blank" href={{href @id}}> | ||
<div class="header"> | ||
<div class="talk-title">{{@title}}</div> | ||
<div class="talk-date">{{@date}}</div> | ||
</div> | ||
|
||
<img src={{thumbnail @id}}> | ||
</a> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
import RouteTemplate from 'ember-route-template'; | ||
import YoutubeLink from '../components/youtube-link'; | ||
|
||
export default RouteTemplate( | ||
<template> | ||
<ul> | ||
<li><a href="https://www.youtube.com/watch?v=c5DMXsBTS0E">Strength-finding Interviews, Sean Massa, CTO @ FlashRecruit</a></li> | ||
<li><a href="https://www.youtube.com/watch?v=CcSKlsc_AhQ">EmberConf 2018: MiniTalk - Contributor Rally by Sean Massa</a></li> | ||
</ul> | ||
<div class="link-list"> | ||
<YoutubeLink @id="c5DMXsBTS0E" | ||
@title="Strength-finding Interviews | dojo.live" | ||
@date="2020-03-25" /> | ||
<YoutubeLink @id="CcSKlsc_AhQ" | ||
@title="Ember.js Contributor Rally | EmberConf 2018" | ||
@date="2018-04-06" /> | ||
</div> | ||
</template> | ||
); |