Skip to content

Commit

Permalink
feat: add twitch embed and banner logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan-Shields committed Mar 2, 2019
1 parent 3f0e1ce commit 17ba345
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 2 additions & 0 deletions public/index.html
Expand Up @@ -24,6 +24,8 @@
</style>

<title>HiveAid 2019</title>

<script src="https://embed.twitch.tv/embed/v1.js"></script>
</head>
<body>
<noscript>
Expand Down
Binary file added src/assets/img/banner.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 23 additions & 1 deletion src/views/Announcement.vue
@@ -1,7 +1,8 @@
<template>
<div class="announcement">

<img class="banner" src="../assets/img/banner.png"/>
<Countdown date="March 30, 2019 10:00"/>
<div id="twitch-embed"></div>
</div>
</template>

Expand All @@ -12,6 +13,27 @@ export default {
name: 'announcement',
components: {
Countdown
},
mounted () {
/* eslint-disable */
new Twitch.Embed("twitch-embed", {
width: 760,
height: 428,
layout: "video",
channel: "uomesports"
});
/* eslint-enable */
}
}
</script>

<style lang="scss" scoped>
.announcement {
width: 1000px;
margin: auto;
}
.banner {
width: 90%;
margin-top: 50px;
}
</style>

0 comments on commit 17ba345

Please sign in to comment.